质量资料收发文调整

This commit is contained in:
2025-12-04 15:38:55 +08:00
parent 07b7d8426a
commit 2b61bbe138
21 changed files with 1388 additions and 206 deletions
@@ -22,16 +22,42 @@
<Toolbars>
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:TextBox runat="server" ID="stxtFileCode" Label="文件号" LabelAlign="Right"></f:TextBox>
<f:TextBox ID="stxtFileName" runat="server" CssClass="textboxStyle"
<f:TextBox runat="server" ID="txtFile" Label="文件号" EmptyText="文件号、文件名称" LabelAlign="Right"></f:TextBox>
<%--<f:TextBox ID="stxtFileName" runat="server" CssClass="textboxStyle"
MaxLength="150" Label="文件名称" LabelAlign="Right">
</f:TextBox>
</f:TextBox>--%>
<f:DropDownList ID="drpFileType" runat="server" Label="文件类别" LabelAlign="Right"></f:DropDownList>
<f:DropDownList ID="drpCNProfessionalId" runat="server" Label="专业" LabelAlign="Right"></f:DropDownList>
<f:DropDownList ID="drpSendUnitId" runat="server" Label="发件单位" LabelAlign="Right">
</f:DropDownList>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnSearch" Icon="SystemSearch" OnClick="btnSearch_Click"
EnablePostBack="true" runat="server">
</f:Button>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnNew" Icon="Add" EnablePostBack="true" ToolTip="新增" Hidden="true" runat="server" OnClick="btnNew_Click">
</f:Button>
</Items>
</f:Toolbar>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DatePicker runat="server" Label="日期" ID="txtReceiveDateStart" LabelAlign="Right"
LabelWidth="100px" Width="220px">
</f:DatePicker>
<f:Label ID="Label5" runat="server" Text="至">
</f:Label>
<f:DatePicker runat="server" ID="txtReceiveDateEnd" LabelAlign="Right" Width="110px">
</f:DatePicker>
<f:DatePicker runat="server" Label="上报日期" ID="txtSendDateStart" LabelAlign="Right"
LabelWidth="100px" Width="220px">
</f:DatePicker>
<f:Label ID="Label4" runat="server" Text="至">
</f:Label>
<f:DatePicker runat="server" ID="txtSendDateEnd" LabelAlign="Right" Width="110px">
</f:DatePicker>
<f:DropDownList ID="drpReceiveUnit" runat="server" LabelWidth="120px" Label="上报接收单位" LabelAlign="Right">
</f:DropDownList>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnImport" ToolTip="导入" Hidden="true" Icon="PackageIn" runat="server" OnClick="btnImport_Click">
</f:Button>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp"
@@ -82,7 +108,7 @@
</f:GroupField>
<f:GroupField ColumnID="GroupField2" runat="server" HeaderText="文件上报信息" HeaderTextAlign="Center">
<Columns>
<f:RenderField ColumnID="SendDate" DataField="SendDate" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="发出日期" TextAlign="Center"
<f:RenderField ColumnID="SendDate" DataField="SendDate" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="上报日期" TextAlign="Center"
HeaderTextAlign="Center" Width="100px">
</f:RenderField>
<f:TemplateField ColumnID="ReceiveUnit" Width="180px" HeaderText="上报接收单位" HeaderTextAlign="Center" TextAlign="Center">
@@ -106,7 +132,7 @@
<f:RenderField ColumnID="RetrunWuhuangCopies" DataField="RetrunWuhuangCopies" FieldType="String" HeaderText="返回五环份数" TextAlign="Center"
HeaderTextAlign="Center" Width="120px">
</f:RenderField>
<f:TemplateField ColumnID="IssueToUnit" Width="180px" HeaderText="下发至单位" HeaderTextAlign="Center" TextAlign="Center">
<f:TemplateField ColumnID="IssueToUnit" Width="180px" HeaderText="下发至单位" HeaderTextAlign="Center" TextAlign="Center">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# ConvertCarryUnit(Eval("IssueToUnit")) %>'></asp:Label>
</ItemTemplate>
@@ -20,6 +20,10 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
if (!IsPostBack)
{
BLL.UnitService.GetUnit(this.drpSendUnitId, this.CurrUser.LoginProjectId, true);//发件单位
BLL.UnitService.GetUnit(this.drpReceiveUnit, this.CurrUser.LoginProjectId, true);//接收单位
BLL.ReceivingDocTypeService.InitReceivingDocType(this.drpFileType, true);//文件类别
BLL.CNProfessionalService.InitCNProfessionalDocDownList(this.drpCNProfessionalId, true);//专业
GetButtonPower();
BindGrid();
}
@@ -62,15 +66,55 @@ namespace FineUIPro.Web.CQMS.Comprehensive
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
if (!string.IsNullOrEmpty(this.stxtFileCode.Text.Trim()))
//if (!string.IsNullOrEmpty(this.stxtFileName.Text.Trim()))
//{
// strSql += " AND doc.FileName LIKE @stxtFileName";
// listStr.Add(new SqlParameter("@stxtFileName", "%" + stxtFileName.Text.Trim() + "%"));
//}
if (!string.IsNullOrEmpty(this.txtFile.Text.Trim()))
{
strSql += " AND doc.FileCode LIKE @stxtFileCode";
listStr.Add(new SqlParameter("@stxtFileCode", "%" + stxtFileCode.Text.Trim() + "%"));
strSql += " AND (doc.FileCode LIKE @txtFile or doc.FileName LIKE @txtFile)";
listStr.Add(new SqlParameter("@txtFile", "%" + txtFile.Text.Trim() + "%"));
}
if (!string.IsNullOrEmpty(this.stxtFileName.Text.Trim()))
if (this.drpFileType.SelectedValue != BLL.Const._Null)
{
strSql += " AND doc.FileName LIKE @stxtFileName";
listStr.Add(new SqlParameter("@stxtFileName", "%" + stxtFileName.Text.Trim() + "%"));
strSql += " AND doc.FileType =@FileType";
listStr.Add(new SqlParameter("@FileType", drpFileType.SelectedValue));
}
if (this.drpCNProfessionalId.SelectedValue != BLL.Const._Null)
{
strSql += " AND doc.CNProfessionalId =@CNProfessionalId";
listStr.Add(new SqlParameter("@CNProfessionalId", drpCNProfessionalId.SelectedValue));
}
if (this.drpSendUnitId.SelectedValue != BLL.Const._Null)
{
strSql += " AND doc.SendUnit = @SendUnit";
listStr.Add(new SqlParameter("@SendUnit", this.drpSendUnitId.SelectedValue));
}
if (this.drpReceiveUnit.SelectedValue != BLL.Const._Null)
{
strSql += " AND doc.ReceiveUnit like @ReceiveUnit";
listStr.Add(new SqlParameter("@ReceiveUnit", "%" + this.drpReceiveUnit.SelectedValue + "%"));
}
if (!string.IsNullOrEmpty(this.txtReceiveDateStart.Text.Trim()))
{
strSql += " AND doc.ReceiveDate >= @ReceiveDateStart";
listStr.Add(new SqlParameter("@ReceiveDateStart", Funs.GetNewDateTime(this.txtReceiveDateStart.Text.Trim())));
}
if (!string.IsNullOrEmpty(this.txtReceiveDateEnd.Text.Trim()))
{
strSql += " AND doc.ReceiveDate <= @ReceiveDateEnd";
listStr.Add(new SqlParameter("@ReceiveDateEnd", Funs.GetNewDateTime(this.txtReceiveDateEnd.Text.Trim())));
}
if (!string.IsNullOrEmpty(txtSendDateStart.Text.Trim()))
{
strSql += " AND doc.SendDate >= @SendDateStart";
listStr.Add(new SqlParameter("@SendDateStart", Funs.GetNewDateTime(txtSendDateStart.Text.Trim())));
}
if (!string.IsNullOrEmpty(txtSendDateEnd.Text.Trim()))
{
strSql += " AND doc.SendDate <= @SendDateEnd";
listStr.Add(new SqlParameter("@SendDateEnd", Funs.GetNewDateTime(txtSendDateEnd.Text.Trim())));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
@@ -339,14 +383,14 @@ namespace FineUIPro.Web.CQMS.Comprehensive
var lists = (from x in Funs.DB.Comprehensive_DataReceivingDoc
where x.ProjectId == this.CurrUser.LoginProjectId
select x);
if (!string.IsNullOrEmpty(this.stxtFileCode.Text.Trim()))
if (!string.IsNullOrEmpty(this.txtFile.Text.Trim()))
{
lists = lists.Where(x => x.FileCode.Contains(stxtFileCode.Text.Trim()));
}
if (!string.IsNullOrEmpty(this.stxtFileName.Text.Trim()))
{
lists = lists.Where(x => x.FileName.Contains(this.stxtFileName.Text.Trim()));
lists = lists.Where(x => x.FileCode.Contains(txtFile.Text.Trim()) || x.FileName.Contains(txtFile.Text.Trim()));
}
//if (!string.IsNullOrEmpty(this.stxtFileName.Text.Trim()))
//{
// lists = lists.Where(x => x.FileName.Contains(this.stxtFileName.Text.Trim()));
//}
lists = lists.OrderBy(x => x.RemarkCode);
if (lists != null)
{
@@ -7,11 +7,13 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.CQMS.Comprehensive {
public partial class DataReceivingDoc {
namespace FineUIPro.Web.CQMS.Comprehensive
{
public partial class DataReceivingDoc
{
/// <summary>
/// form1 控件。
/// </summary>
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// Grid1 控件。
/// </summary>
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// ToolSearch 控件。
/// </summary>
@@ -56,25 +58,43 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar ToolSearch;
/// <summary>
/// stxtFileCode 控件。
/// txtFile 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox stxtFileCode;
protected global::FineUIPro.TextBox txtFile;
/// <summary>
/// stxtFileName 控件。
/// drpFileType 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox stxtFileName;
protected global::FineUIPro.DropDownList drpFileType;
/// <summary>
/// drpCNProfessionalId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpCNProfessionalId;
/// <summary>
/// drpSendUnitId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpSendUnitId;
/// <summary>
/// btnSearch 控件。
/// </summary>
@@ -83,7 +103,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSearch;
/// <summary>
/// btnNew 控件。
/// </summary>
@@ -92,7 +112,79 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnNew;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// txtReceiveDateStart 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtReceiveDateStart;
/// <summary>
/// Label5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label5;
/// <summary>
/// txtReceiveDateEnd 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtReceiveDateEnd;
/// <summary>
/// txtSendDateStart 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtSendDateStart;
/// <summary>
/// Label4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label4;
/// <summary>
/// txtSendDateEnd 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtSendDateEnd;
/// <summary>
/// drpReceiveUnit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpReceiveUnit;
/// <summary>
/// btnImport 控件。
/// </summary>
@@ -101,7 +193,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnImport;
/// <summary>
/// btnOut 控件。
/// </summary>
@@ -110,7 +202,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnOut;
/// <summary>
/// lblPageIndex 控件。
/// </summary>
@@ -119,7 +211,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblPageIndex;
/// <summary>
/// Label3 控件。
/// </summary>
@@ -128,7 +220,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label Label3;
/// <summary>
/// Label1 控件。
/// </summary>
@@ -137,7 +229,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label Label1;
/// <summary>
/// Label2 控件。
/// </summary>
@@ -146,7 +238,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label Label2;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
@@ -155,7 +247,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
@@ -164,7 +256,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// Window1 控件。
/// </summary>
@@ -173,7 +265,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// Window2 控件。
/// </summary>
@@ -182,7 +274,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window2;
/// <summary>
/// Menu1 控件。
/// </summary>
@@ -191,7 +283,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Menu Menu1;
/// <summary>
/// btnMenuModify 控件。
/// </summary>
@@ -200,7 +292,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuModify;
/// <summary>
/// btnMenuDel 控件。
/// </summary>
@@ -323,6 +323,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
select x;
var cns = from x in Funs.DB.Base_CNProfessional select x;
var docType = from x in Funs.DB.Base_ReceivingDocType select x;
var dataInTemp = from x in Funs.DB.Sys_CQMS_DataInTemp
where x.ProjectId == LoginProjectId && x.UserId == UserId && x.Type == "DataReceivingDoc"
@@ -370,7 +371,17 @@ namespace FineUIPro.Web.CQMS.Comprehensive
}
if (!string.IsNullOrEmpty(tempData.Value4.Trim()))
{
Ins.FileType = tempData.Value4.Trim();
//Ins.FileType = tempData.Value4.Trim();
var dType = docType.Where(x => x.TypeName == tempData.Value4.Trim()).FirstOrDefault();
if (dType == null)
{
errInfo += "文件类别[" + tempData.Value4.Trim() + "]不存在;";
}
else
{
Ins.FileType = dType.TypeName;
}
}
else
{
@@ -29,8 +29,9 @@
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtFileType" Label="文件类别" runat="server" LabelAlign="Right" LabelWidth="130px" Required="true" ShowRedStar="true">
</f:TextBox>
<%--<f:TextBox ID="txtFileType" Label="文件类别" runat="server" LabelAlign="Right" LabelWidth="130px" Required="true" ShowRedStar="true">
</f:TextBox>--%>
<f:DropDownList ID="drpFileType" runat="server" Label="文件类别" LabelAlign="Right" LabelWidth="130px" Required="true" ShowRedStar="true" EnableEdit="true" ForceSelection="false" AutoSelectFirstItem="false"></f:DropDownList>
<f:DropDownList ID="drpCNProfessionalId" runat="server" Label="专业" LabelAlign="Right" LabelWidth="130px" Required="true" ShowRedStar="true"></f:DropDownList>
<%--<f:DropDownList ID="drpSendUnit" runat="server" Label="发件单位" EnableCheckBoxSelect="true" EnableMultiSelect="true" AutoSelectFirstItem="false" LabelAlign="Right" LabelWidth="130px"></f:DropDownList>--%>
<f:DropDownList ID="drpSendUnitId" runat="server" Label="发件单位" LabelAlign="Right" LabelWidth="130px" ShowRedStar="true" Required="true"></f:DropDownList>
@@ -119,8 +120,8 @@
<Items>
<%--<f:TextBox ID="txtRemarkCode" runat="server" Label="标志编号" Required="true" ShowRedStar="true" LabelAlign="Right" LabelWidth="130px"></f:TextBox>--%>
<f:NumberBox ID="txtRemarkCode" runat="server" Label="标志编号" Required="true" ShowRedStar="true" LabelAlign="Right" LabelWidth="130px" NoDecimal="true" NoNegative="true"></f:NumberBox>
<f:Label ID="Label1" runat="server"></f:Label>
<f:Label ID="Label3" runat="server"></f:Label>
<f:Label ID="Label1" runat="server"></f:Label>
<f:Label ID="Label3" runat="server"></f:Label>
</Items>
</f:FormRow>
<%--<f:FormRow>
@@ -1,5 +1,7 @@
using BLL;
using FineUIPro.Web.OfficeCheck.Check;
using System;
using System.EnterpriseServices.CompensatingResourceManager;
using System.Linq;
using System.Web.UI.WebControls;
@@ -55,7 +57,8 @@ namespace FineUIPro.Web.CQMS.Comprehensive
this.txtFileCode.Readonly = true;
this.txtFileName.Readonly = true;
this.txtReceiveDate.Readonly = true;
this.txtFileType.Readonly = true;
//this.txtFileType.Readonly = true;
this.drpFileType.Readonly = true;
this.drpCNProfessionalId.Readonly = true;
//this.drpSendUnit.Readonly = true;
this.drpSendUnitId.Readonly = true;
@@ -92,6 +95,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
BLL.UnitService.GetUnit(this.drpSendUnitId, this.CurrUser.LoginProjectId, false);//发件单位
BLL.UnitService.GetUnit(this.drpReceiveUnit, this.CurrUser.LoginProjectId, false);//接收单位
BLL.UnitService.GetUnit(this.drpIssueToUnit, this.CurrUser.LoginProjectId, false);//下发至单位
BLL.ReceivingDocTypeService.InitReceivingDocType(this.drpFileType, false);//文件类别
BLL.CNProfessionalService.InitCNProfessionalDocDownList(this.drpCNProfessionalId, true);//专业
//LoadAuditSelect();
//this.agree.Hidden = true;
@@ -100,33 +104,47 @@ namespace FineUIPro.Web.CQMS.Comprehensive
//this.btnSave.Hidden = true;
//this.btnSubmit.Hidden = true;
this.DataReceivingDocId = Request.Params["DataReceivingDocId"];
Model.Comprehensive_DataReceivingDoc dataReceivingDoc = BLL.DataReceivingDocService.GetDataReceivingDocById(this.DataReceivingDocId);
if (dataReceivingDoc != null)
Model.Comprehensive_DataReceivingDoc model = BLL.DataReceivingDocService.GetDataReceivingDocById(this.DataReceivingDocId);
if (model != null)
{
//this.hdAttachUrl.Text = this.DataReceivingDocId;
this.txtFileCode.Text = dataReceivingDoc.FileCode;
this.txtFileName.Text = dataReceivingDoc.FileName;
this.txtReceiveDate.Text = dataReceivingDoc.ReceiveDate.HasValue ? string.Format("{0:yyyy-MM-dd}", dataReceivingDoc.ReceiveDate) : "";
this.txtFileType.Text = dataReceivingDoc.FileType;
if (!string.IsNullOrEmpty(dataReceivingDoc.SendUnit))
this.txtFileCode.Text = model.FileCode;
this.txtFileName.Text = model.FileName;
this.txtReceiveDate.Text = model.ReceiveDate.HasValue ? string.Format("{0:yyyy-MM-dd}", model.ReceiveDate) : "";
//this.txtFileType.Text = model.FileType;
if (!string.IsNullOrWhiteSpace(model.FileType))
{
//this.drpSendUnit.SelectedValueArray = dataReceivingDoc.SendUnit.Split(',');
this.drpSendUnitId.SelectedValue = dataReceivingDoc.SendUnit;
bool containsValue = drpFileType.Items.FindByValue(model.FileType) != null;
if (containsValue)
{
// 存在指定的值
this.drpFileType.SelectedValue = model.FileType;
}
else
{
// 不存在指定的值
this.drpFileType.Text = model.FileType;
}
}
if (!string.IsNullOrEmpty(dataReceivingDoc.CNProfessionalId))
if (!string.IsNullOrEmpty(model.SendUnit))
{
this.drpCNProfessionalId.SelectedValue = dataReceivingDoc.CNProfessionalId;
//this.drpSendUnit.SelectedValueArray = model.SendUnit.Split(',');
this.drpSendUnitId.SelectedValue = model.SendUnit;
}
this.txtCopies.Text = dataReceivingDoc.Copies.HasValue ? dataReceivingDoc.Copies.ToString() : "";
this.txtSendMan.Text = dataReceivingDoc.SendMan;
this.txtDocumentHandler.Text = dataReceivingDoc.DocumentHandler;
this.txtSendDate.Text = dataReceivingDoc.SendDate.HasValue ? string.Format("{0:yyyy-MM-dd}", dataReceivingDoc.SendDate) : "";
if (!string.IsNullOrEmpty(dataReceivingDoc.ReceiveUnit))
if (!string.IsNullOrEmpty(model.CNProfessionalId))
{
this.drpReceiveUnit.SelectedValueArray = dataReceivingDoc.ReceiveUnit.Split(',');
this.drpCNProfessionalId.SelectedValue = model.CNProfessionalId;
}
this.txtReceiveMan.Text = dataReceivingDoc.ReceiveMan;
if (dataReceivingDoc.IsReply == true)
this.txtCopies.Text = model.Copies.HasValue ? model.Copies.ToString() : "";
this.txtSendMan.Text = model.SendMan;
this.txtDocumentHandler.Text = model.DocumentHandler;
this.txtSendDate.Text = model.SendDate.HasValue ? string.Format("{0:yyyy-MM-dd}", model.SendDate) : "";
if (!string.IsNullOrEmpty(model.ReceiveUnit))
{
this.drpReceiveUnit.SelectedValueArray = model.ReceiveUnit.Split(',');
}
this.txtReceiveMan.Text = model.ReceiveMan;
if (model.IsReply == true)
{
this.rblIsReply.SelectedValue = "true";
}
@@ -134,17 +152,17 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
this.rblIsReply.SelectedValue = "false";
}
this.txtReturnWuhuangDate.Text = dataReceivingDoc.ReturnWuhuangDate.HasValue ? string.Format("{0:yyyy-MM-dd}", dataReceivingDoc.ReturnWuhuangDate) : "";
this.txtRetrunWuhuangCopies.Text = dataReceivingDoc.RetrunWuhuangCopies.HasValue ? dataReceivingDoc.RetrunWuhuangCopies.ToString() : "";
if (!string.IsNullOrEmpty(dataReceivingDoc.IssueToUnit))
this.txtReturnWuhuangDate.Text = model.ReturnWuhuangDate.HasValue ? string.Format("{0:yyyy-MM-dd}", model.ReturnWuhuangDate) : "";
this.txtRetrunWuhuangCopies.Text = model.RetrunWuhuangCopies.HasValue ? model.RetrunWuhuangCopies.ToString() : "";
if (!string.IsNullOrEmpty(model.IssueToUnit))
{
this.drpIssueToUnit.SelectedValueArray = dataReceivingDoc.IssueToUnit.Split(',');
this.drpIssueToUnit.SelectedValueArray = model.IssueToUnit.Split(',');
}
this.txtIssueCopies.Text = dataReceivingDoc.IssueCopies.HasValue ? dataReceivingDoc.IssueCopies.ToString() : "";
this.txtIssueUnitReceiver.Text = dataReceivingDoc.IssueUnitReceiver;
if (dataReceivingDoc.IsOnFile.HasValue)
this.txtIssueCopies.Text = model.IssueCopies.HasValue ? model.IssueCopies.ToString() : "";
this.txtIssueUnitReceiver.Text = model.IssueUnitReceiver;
if (model.IsOnFile.HasValue)
{
if (dataReceivingDoc.IsOnFile == true)
if (model.IsOnFile == true)
{
this.rblIsOnFile.SelectedValue = "true";
}
@@ -153,13 +171,13 @@ namespace FineUIPro.Web.CQMS.Comprehensive
this.rblIsOnFile.SelectedValue = "false";
}
}
this.txtRemarkCode.Text = dataReceivingDoc.RemarkCode.HasValue ? dataReceivingDoc.RemarkCode.ToString() : "";
this.txtRemarkCode.Text = model.RemarkCode.HasValue ? model.RemarkCode.ToString() : "";
//var currApprove = DataReceivingDocApproveService.GetCurrentApprove(dataReceivingDoc.DataReceivingDocId);
//var currApprove = DataReceivingDocApproveService.GetCurrentApprove(model.DataReceivingDocId);
//if (currApprove != null)
//{ //重新编制 编制人 可以 显示 提交 保存按钮
// this.drpAudit.SelectedValue = currApprove.ApproveMan;
// if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile && dataReceivingDoc.CompileMan == CurrUser.UserId)
// if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile && model.CompileMan == CurrUser.UserId)
// {
// this.btnSubmit.Hidden = false;
// this.btnSave.Hidden = false;
@@ -177,7 +195,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
//}//没有当前审核人,已完成状态 或者 待提交状态
//else
//{
// if (dataReceivingDoc.Status == BLL.Const.Comprehensive_Compile && dataReceivingDoc.CompileMan == CurrUser.UserId)
// if (model.Status == BLL.Const.Comprehensive_Compile && model.CompileMan == CurrUser.UserId)
// {
// this.btnSubmit.Hidden = false;
// this.btnSave.Hidden = false;
@@ -202,30 +220,44 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
{
if (drpSendUnitId.SelectedValue==BLL.Const._Null)
if (drpSendUnitId.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("请选择发件单位!", MessageBoxIcon.Warning);
return;
}
if ((string.IsNullOrWhiteSpace(drpFileType.Text) && string.IsNullOrWhiteSpace(drpFileType.SelectedValue)) || drpFileType.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("请选择文件类别!", MessageBoxIcon.Warning);
return;
}
if (drpCNProfessionalId.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("请选择专业!", MessageBoxIcon.Warning);
return;
}
var q = Funs.DB.Comprehensive_DataReceivingDoc.FirstOrDefault(x => x.ProjectId == this.CurrUser.LoginProjectId && x.RemarkCode ==Funs.GetNewInt(this.txtRemarkCode.Text.Trim()) && (x.DataReceivingDocId != this.DataReceivingDocId || (this.DataReceivingDocId == null && x.DataReceivingDocId != null)));
var q = Funs.DB.Comprehensive_DataReceivingDoc.FirstOrDefault(x => x.ProjectId == this.CurrUser.LoginProjectId && x.RemarkCode == Funs.GetNewInt(this.txtRemarkCode.Text.Trim()) && (x.DataReceivingDocId != this.DataReceivingDocId || (this.DataReceivingDocId == null && x.DataReceivingDocId != null)));
if (q != null)
{
Alert.ShowInTop("标志编号已存在!", MessageBoxIcon.Warning);
return;
}
Model.Comprehensive_DataReceivingDoc dataReceivingDoc = new Model.Comprehensive_DataReceivingDoc();
dataReceivingDoc.ProjectId = this.CurrUser.LoginProjectId;
dataReceivingDoc.FileCode = this.txtFileCode.Text.Trim();
dataReceivingDoc.FileName = this.txtFileName.Text.Trim();
dataReceivingDoc.ReceiveDate = Funs.GetNewDateTime(this.txtReceiveDate.Text.Trim());
dataReceivingDoc.FileType = this.txtFileType.Text.Trim();
dataReceivingDoc.CNProfessionalId = this.drpCNProfessionalId.SelectedValue;
Model.Comprehensive_DataReceivingDoc model = new Model.Comprehensive_DataReceivingDoc();
model.ProjectId = this.CurrUser.LoginProjectId;
model.FileCode = this.txtFileCode.Text.Trim();
model.FileName = this.txtFileName.Text.Trim();
model.ReceiveDate = Funs.GetNewDateTime(this.txtReceiveDate.Text.Trim());
//model.FileType = this.txtFileType.Text.Trim();
//model.FileType = this.drpFileType.SelectedValue;
if (this.drpFileType.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpFileType.SelectedValue))
{
model.FileType = this.drpFileType.SelectedValue;
}
else
{
model.FileType = this.drpFileType.Text;
}
model.CNProfessionalId = this.drpCNProfessionalId.SelectedValue;
//string unitIds = string.Empty;
//var unitList = this.drpSendUnit.SelectedValueArray;
//foreach (var item in unitList)
@@ -236,12 +268,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
//{
// unitIds = unitIds.Substring(0, unitIds.LastIndexOf(","));
//}
//dataReceivingDoc.SendUnit = unitIds;
dataReceivingDoc.SendUnit = this.drpSendUnitId.SelectedValue;
dataReceivingDoc.SendMan = this.txtSendMan.Text.Trim();
dataReceivingDoc.Copies = Funs.GetNewInt(this.txtCopies.Text.Trim());
dataReceivingDoc.DocumentHandler = this.txtDocumentHandler.Text.Trim();
dataReceivingDoc.SendDate = Funs.GetNewDateTime(this.txtSendDate.Text);
//model.SendUnit = unitIds;
model.SendUnit = this.drpSendUnitId.SelectedValue;
model.SendMan = this.txtSendMan.Text.Trim();
model.Copies = Funs.GetNewInt(this.txtCopies.Text.Trim());
model.DocumentHandler = this.txtDocumentHandler.Text.Trim();
model.SendDate = Funs.GetNewDateTime(this.txtSendDate.Text);
string receivingUnits = string.Empty;
var receivingUnitList = this.drpReceiveUnit.SelectedValueArray;
foreach (var item in receivingUnitList)
@@ -252,11 +284,11 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
receivingUnits = receivingUnits.Substring(0, receivingUnits.LastIndexOf(","));
}
dataReceivingDoc.ReceiveUnit = receivingUnits;
dataReceivingDoc.ReceiveMan = this.txtReceiveMan.Text.Trim();
dataReceivingDoc.IsReply = Convert.ToBoolean(this.rblIsReply.SelectedValue);
dataReceivingDoc.ReturnWuhuangDate = Funs.GetNewDateTime(this.txtReturnWuhuangDate.Text.Trim());
dataReceivingDoc.RetrunWuhuangCopies = Funs.GetNewInt(this.txtRetrunWuhuangCopies.Text.Trim());
model.ReceiveUnit = receivingUnits;
model.ReceiveMan = this.txtReceiveMan.Text.Trim();
model.IsReply = Convert.ToBoolean(this.rblIsReply.SelectedValue);
model.ReturnWuhuangDate = Funs.GetNewDateTime(this.txtReturnWuhuangDate.Text.Trim());
model.RetrunWuhuangCopies = Funs.GetNewInt(this.txtRetrunWuhuangCopies.Text.Trim());
string issueToUnits = string.Empty;
var issueToUnitLists = this.drpIssueToUnit.SelectedValueArray;
foreach (var item in issueToUnitLists)
@@ -267,53 +299,53 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
issueToUnits = issueToUnits.Substring(0, issueToUnits.LastIndexOf(","));
}
dataReceivingDoc.IssueToUnit = issueToUnits;
dataReceivingDoc.IssueCopies = Funs.GetNewInt(this.txtIssueCopies.Text.Trim());
dataReceivingDoc.IssueUnitReceiver = this.txtIssueUnitReceiver.Text.Trim();
model.IssueToUnit = issueToUnits;
model.IssueCopies = Funs.GetNewInt(this.txtIssueCopies.Text.Trim());
model.IssueUnitReceiver = this.txtIssueUnitReceiver.Text.Trim();
if (!string.IsNullOrEmpty(this.rblIsOnFile.SelectedValue))
{
dataReceivingDoc.IsOnFile = Convert.ToBoolean(this.rblIsOnFile.SelectedValue);
model.IsOnFile = Convert.ToBoolean(this.rblIsOnFile.SelectedValue);
}
dataReceivingDoc.RemarkCode = Funs.GetNewInt(this.txtRemarkCode.Text.Trim());
model.RemarkCode = Funs.GetNewInt(this.txtRemarkCode.Text.Trim());
//if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue))
//{
// dataReceivingDoc.AuditMan = drpAudit.SelectedValue;
// model.AuditMan = drpAudit.SelectedValue;
//} //审核人
if (string.IsNullOrEmpty(this.DataReceivingDocId))
{
//if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
//{
// dataReceivingDoc.DataReceivingDocId = this.hdAttachUrl.Text;
// model.DataReceivingDocId = this.hdAttachUrl.Text;
//}
//else
//{
dataReceivingDoc.DataReceivingDocId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataReceivingDoc));
//this.hdAttachUrl.Text = dataReceivingDoc.DataReceivingDocId;
model.DataReceivingDocId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataReceivingDoc));
//this.hdAttachUrl.Text = model.DataReceivingDocId;
//}
//var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == dataReceivingDoc.DataReceivingDocId);
//var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == model.DataReceivingDocId);
//if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
//{
// Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
// return;
//}
dataReceivingDoc.CompileMan = this.CurrUser.UserId;
dataReceivingDoc.CompileDate = DateTime.Now;
//dataReceivingDoc.Status = BLL.Const.Comprehensive_Compile;
dataReceivingDoc.DataReceivingDocId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataReceivingDoc));
BLL.DataReceivingDocService.AddDataReceivingDoc(dataReceivingDoc);
model.CompileMan = this.CurrUser.UserId;
model.CompileDate = DateTime.Now;
//model.Status = BLL.Const.Comprehensive_Compile;
model.DataReceivingDocId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataReceivingDoc));
BLL.DataReceivingDocService.AddDataReceivingDoc(model);
}
else
{
dataReceivingDoc.DataReceivingDocId = this.DataReceivingDocId;
model.DataReceivingDocId = this.DataReceivingDocId;
//var model = Funs.DB.Comprehensive_DataReceivingDoc.Where(u => u.DataReceivingDocId == this.DataReceivingDocId).FirstOrDefault();
//if (model != null)
//{
// dataReceivingDoc.Status = model.Status;
// model.Status = model.Status;
//}
//else
//{
// dataReceivingDoc.Status = BLL.Const.Comprehensive_Compile;
// model.Status = BLL.Const.Comprehensive_Compile;
//}
//var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DataReceivingDocId);
//if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
@@ -321,7 +353,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
// Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
// return;
//}
BLL.DataReceivingDocService.UpdateDataReceivingDoc(dataReceivingDoc);
BLL.DataReceivingDocService.UpdateDataReceivingDoc(model);
}
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
@@ -339,13 +371,13 @@ namespace FineUIPro.Web.CQMS.Comprehensive
// Alert.ShowInTop("请选择专业!", MessageBoxIcon.Warning);
// return;
// }
// Model.Comprehensive_DataReceivingDoc dataReceivingDoc = new Model.Comprehensive_DataReceivingDoc();
// dataReceivingDoc.ProjectId = this.CurrUser.LoginProjectId;
// dataReceivingDoc.FileCode = this.txtFileCode.Text.Trim();
// dataReceivingDoc.FileName = this.txtFileName.Text.Trim();
// dataReceivingDoc.ReceiveDate = Funs.GetNewDateTime(this.txtReceiveDate.Text.Trim());
// dataReceivingDoc.FileType = this.txtFileType.Text.Trim();
// dataReceivingDoc.CNProfessionalId = this.drpCNProfessionalId.SelectedValue;
// Model.Comprehensive_DataReceivingDoc model = new Model.Comprehensive_DataReceivingDoc();
// model.ProjectId = this.CurrUser.LoginProjectId;
// model.FileCode = this.txtFileCode.Text.Trim();
// model.FileName = this.txtFileName.Text.Trim();
// model.ReceiveDate = Funs.GetNewDateTime(this.txtReceiveDate.Text.Trim());
// model.FileType = this.txtFileType.Text.Trim();
// model.CNProfessionalId = this.drpCNProfessionalId.SelectedValue;
// //string unitIds = string.Empty;
// //var unitList = this.drpSendUnit.SelectedValueArray;
// //foreach (var item in unitList)
@@ -356,11 +388,11 @@ namespace FineUIPro.Web.CQMS.Comprehensive
// //{
// // unitIds = unitIds.Substring(0, unitIds.LastIndexOf(","));
// //}
// dataReceivingDoc.SendUnit = drpSendUnitId.SelectedValue;
// dataReceivingDoc.SendMan = this.txtSendMan.Text.Trim();
// dataReceivingDoc.Copies = Funs.GetNewInt(this.txtCopies.Text.Trim());
// dataReceivingDoc.DocumentHandler = this.txtDocumentHandler.Text.Trim();
// dataReceivingDoc.SendDate = Funs.GetNewDateTime(this.txtSendDate.Text);
// model.SendUnit = drpSendUnitId.SelectedValue;
// model.SendMan = this.txtSendMan.Text.Trim();
// model.Copies = Funs.GetNewInt(this.txtCopies.Text.Trim());
// model.DocumentHandler = this.txtDocumentHandler.Text.Trim();
// model.SendDate = Funs.GetNewDateTime(this.txtSendDate.Text);
// string receivingUnits = string.Empty;
// var receivingUnitList = this.drpReceiveUnit.SelectedValueArray;
// foreach (var item in receivingUnitList)
@@ -371,11 +403,11 @@ namespace FineUIPro.Web.CQMS.Comprehensive
// {
// receivingUnits = receivingUnits.Substring(0, receivingUnits.LastIndexOf(","));
// }
// dataReceivingDoc.ReceiveUnit = receivingUnits;
// dataReceivingDoc.ReceiveMan = this.txtReceiveMan.Text.Trim();
// dataReceivingDoc.IsReply = Convert.ToBoolean(this.rblIsReply.SelectedValue);
// dataReceivingDoc.ReturnWuhuangDate = Funs.GetNewDateTime(this.txtReturnWuhuangDate.Text.Trim());
// dataReceivingDoc.RetrunWuhuangCopies = Funs.GetNewInt(this.txtRetrunWuhuangCopies.Text.Trim());
// model.ReceiveUnit = receivingUnits;
// model.ReceiveMan = this.txtReceiveMan.Text.Trim();
// model.IsReply = Convert.ToBoolean(this.rblIsReply.SelectedValue);
// model.ReturnWuhuangDate = Funs.GetNewDateTime(this.txtReturnWuhuangDate.Text.Trim());
// model.RetrunWuhuangCopies = Funs.GetNewInt(this.txtRetrunWuhuangCopies.Text.Trim());
// string issueToUnits = string.Empty;
// var issueToUnitLists = this.drpIssueToUnit.SelectedValueArray;
// foreach (var item in issueToUnitLists)
@@ -386,40 +418,40 @@ namespace FineUIPro.Web.CQMS.Comprehensive
// {
// issueToUnits = issueToUnits.Substring(0, issueToUnits.LastIndexOf(","));
// }
// dataReceivingDoc.IssueToUnit = issueToUnits;
// dataReceivingDoc.IssueCopies = Funs.GetNewInt(this.txtIssueCopies.Text.Trim());
// dataReceivingDoc.IssueUnitReceiver = this.txtIssueUnitReceiver.Text.Trim();
// dataReceivingDoc.IsOnFile = Convert.ToBoolean(this.rblIsOnFile.SelectedValue);
// model.IssueToUnit = issueToUnits;
// model.IssueCopies = Funs.GetNewInt(this.txtIssueCopies.Text.Trim());
// model.IssueUnitReceiver = this.txtIssueUnitReceiver.Text.Trim();
// model.IsOnFile = Convert.ToBoolean(this.rblIsOnFile.SelectedValue);
// if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue))
// {
// dataReceivingDoc.AuditMan = drpAudit.SelectedValue;
// model.AuditMan = drpAudit.SelectedValue;
// } //审核人
// if (string.IsNullOrEmpty(this.DataReceivingDocId))
// {
// if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
// {
// dataReceivingDoc.DataReceivingDocId = this.hdAttachUrl.Text;
// model.DataReceivingDocId = this.hdAttachUrl.Text;
// }
// else
// {
// dataReceivingDoc.DataReceivingDocId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataReceivingDoc));
// this.hdAttachUrl.Text = dataReceivingDoc.DataReceivingDocId;
// model.DataReceivingDocId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataReceivingDoc));
// this.hdAttachUrl.Text = model.DataReceivingDocId;
// }
// var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == dataReceivingDoc.DataReceivingDocId);
// var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == model.DataReceivingDocId);
// if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
// {
// Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
// return;
// }
// dataReceivingDoc.CompileMan = this.CurrUser.UserId;
// dataReceivingDoc.CompileDate = DateTime.Now;
// dataReceivingDoc.Status = BLL.Const.Comprehensive_Audit;
// BLL.DataReceivingDocService.AddDataReceivingDoc(dataReceivingDoc);
// model.CompileMan = this.CurrUser.UserId;
// model.CompileDate = DateTime.Now;
// model.Status = BLL.Const.Comprehensive_Audit;
// BLL.DataReceivingDocService.AddDataReceivingDoc(model);
// }
// else
// {
// dataReceivingDoc.DataReceivingDocId = this.DataReceivingDocId;
// model.DataReceivingDocId = this.DataReceivingDocId;
// var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DataReceivingDocId);
// if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
// {
@@ -430,38 +462,38 @@ namespace FineUIPro.Web.CQMS.Comprehensive
// if (model.Status == BLL.Const.Comprehensive_Compile)//编制状态提交变审核
// {
// dataReceivingDoc.Status = BLL.Const.Comprehensive_Audit;
// model.Status = BLL.Const.Comprehensive_Audit;
// }
// else if (model.Status == BLL.Const.Comprehensive_ReCompile)//重新编制状态提交变审核
// {
// dataReceivingDoc.Status = BLL.Const.Comprehensive_Audit;
// model.Status = BLL.Const.Comprehensive_Audit;
// }
// else //审核状态 提交 变 完成 或者 重新编制
// {
// if (Convert.ToBoolean(rblIsAgree.SelectedValue))
// {
// dataReceivingDoc.Status = BLL.Const.Comprehensive_Complete;
// model.Status = BLL.Const.Comprehensive_Complete;
// }
// else
// {
// dataReceivingDoc.Status = BLL.Const.Comprehensive_ReCompile;
// model.Status = BLL.Const.Comprehensive_ReCompile;
// }
// }
// BLL.DataReceivingDocService.UpdateDataReceivingDoc(dataReceivingDoc);
// BLL.DataReceivingDocService.UpdateDataReceivingDoc(model);
// }
// #region 审核记录
// var currApprove = DataReceivingDocApproveService.GetCurrentApprove(dataReceivingDoc.DataReceivingDocId);
// var currApprove = DataReceivingDocApproveService.GetCurrentApprove(model.DataReceivingDocId);
// if (currApprove == null) //为获取到为 当前编制状态 直接提交
// {
// var approve = new Model.Comprehensive_DataReceivingDocApprove();
// approve.DataReceivingDocId = dataReceivingDoc.DataReceivingDocId;
// approve.DataReceivingDocId = model.DataReceivingDocId;
// approve.ApproveMan = this.CurrUser.UserId;
// approve.ApproveType = Const.Comprehensive_Compile;
// approve.ApproveDate = DateTime.Now;
// DataReceivingDocApproveService.EditApprove(approve); //新增编制记录
// Model.Comprehensive_DataReceivingDocApprove newApprove = new Model.Comprehensive_DataReceivingDocApprove();
// newApprove.DataReceivingDocId = dataReceivingDoc.DataReceivingDocId;
// newApprove.DataReceivingDocId = model.DataReceivingDocId;
// newApprove.ApproveMan = this.drpAudit.SelectedValue;
// newApprove.ApproveType = Const.InspectionManagement_Audit;
// DataReceivingDocApproveService.EditApprove(newApprove); //新增专业工程师审核记录
@@ -473,7 +505,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
// currApprove.ApproveDate = DateTime.Now;
// DataReceivingDocApproveService.EditApprove(currApprove); //新增专业工程师审核记录
// Model.Comprehensive_DataReceivingDocApprove newApprove = new Model.Comprehensive_DataReceivingDocApprove();
// newApprove.DataReceivingDocId = dataReceivingDoc.DataReceivingDocId;
// newApprove.DataReceivingDocId = model.DataReceivingDocId;
// newApprove.ApproveMan = this.drpAudit.SelectedValue;
// newApprove.ApproveType = Const.InspectionManagement_Audit;
// DataReceivingDocApproveService.EditApprove(newApprove); //新增专业工程师审核记录
@@ -499,7 +531,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
// {
// Model.Comprehensive_DataReceivingDocApprove reApprove = new Model.Comprehensive_DataReceivingDocApprove();
// reApprove.DataReceivingDocId = currApprove.DataReceivingDocId;
// reApprove.ApproveMan = dataReceivingDoc.CompileMan;
// reApprove.ApproveMan = model.CompileMan;
// reApprove.ApproveType = Const.Comprehensive_ReCompile;
// DataReceivingDocApproveService.EditApprove(reApprove);
// }
@@ -522,9 +554,9 @@ namespace FineUIPro.Web.CQMS.Comprehensive
// {
// this.hdAttachUrl.Text = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataReceivingDoc));
// }
// var dataReceivingDoc = BLL.DataReceivingDocService.GetDataReceivingDocById(this.DataReceivingDocId);
// var model = BLL.DataReceivingDocService.GetDataReceivingDocById(this.DataReceivingDocId);
// if (dataReceivingDoc == null || ((dataReceivingDoc.CompileMan == CurrUser.UserId && dataReceivingDoc.Status == BLL.Const.Comprehensive_Compile) || (dataReceivingDoc.CompileMan == CurrUser.UserId && dataReceivingDoc.Status == BLL.Const.Comprehensive_ReCompile)))
// if (model == null || ((model.CompileMan == CurrUser.UserId && model.Status == BLL.Const.Comprehensive_Compile) || (model.CompileMan == CurrUser.UserId && model.Status == BLL.Const.Comprehensive_ReCompile)))
// {
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/CQMS/DataReceivingDoc&menuId={1}", this.hdAttachUrl.Text, BLL.Const.DataReceivingDocMenuId)));
// }
@@ -7,11 +7,13 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.CQMS.Comprehensive {
public partial class DataReceivingDocEdit {
namespace FineUIPro.Web.CQMS.Comprehensive
{
public partial class DataReceivingDocEdit
{
/// <summary>
/// form1 控件。
/// </summary>
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// SimpleForm1 控件。
/// </summary>
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form SimpleForm1;
/// <summary>
/// GroupPanel1 控件。
/// </summary>
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel1;
/// <summary>
/// Form2 控件。
/// </summary>
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form2;
/// <summary>
/// txtFileCode 控件。
/// </summary>
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtFileCode;
/// <summary>
/// txtFileName 控件。
/// </summary>
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtFileName;
/// <summary>
/// txtReceiveDate 控件。
/// </summary>
@@ -74,16 +76,16 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtReceiveDate;
/// <summary>
/// txtFileType 控件。
/// drpFileType 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtFileType;
protected global::FineUIPro.DropDownList drpFileType;
/// <summary>
/// drpCNProfessionalId 控件。
/// </summary>
@@ -92,7 +94,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpCNProfessionalId;
/// <summary>
/// drpSendUnitId 控件。
/// </summary>
@@ -101,7 +103,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpSendUnitId;
/// <summary>
/// txtCopies 控件。
/// </summary>
@@ -110,7 +112,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtCopies;
/// <summary>
/// txtSendMan 控件。
/// </summary>
@@ -119,7 +121,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtSendMan;
/// <summary>
/// txtDocumentHandler 控件。
/// </summary>
@@ -128,7 +130,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtDocumentHandler;
/// <summary>
/// GroupPanel2 控件。
/// </summary>
@@ -137,7 +139,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel2;
/// <summary>
/// Form3 控件。
/// </summary>
@@ -146,7 +148,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form3;
/// <summary>
/// txtSendDate 控件。
/// </summary>
@@ -155,7 +157,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtSendDate;
/// <summary>
/// drpReceiveUnit 控件。
/// </summary>
@@ -164,7 +166,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpReceiveUnit;
/// <summary>
/// txtReceiveMan 控件。
/// </summary>
@@ -173,7 +175,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtReceiveMan;
/// <summary>
/// rblIsReply 控件。
/// </summary>
@@ -182,7 +184,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.RadioButtonList rblIsReply;
/// <summary>
/// Label2 控件。
/// </summary>
@@ -191,7 +193,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label2;
/// <summary>
/// GroupPanel3 控件。
/// </summary>
@@ -200,7 +202,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel3;
/// <summary>
/// Form4 控件。
/// </summary>
@@ -209,7 +211,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form4;
/// <summary>
/// txtReturnWuhuangDate 控件。
/// </summary>
@@ -218,7 +220,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtReturnWuhuangDate;
/// <summary>
/// txtRetrunWuhuangCopies 控件。
/// </summary>
@@ -227,7 +229,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtRetrunWuhuangCopies;
/// <summary>
/// drpIssueToUnit 控件。
/// </summary>
@@ -236,7 +238,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpIssueToUnit;
/// <summary>
/// txtIssueCopies 控件。
/// </summary>
@@ -245,7 +247,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtIssueCopies;
/// <summary>
/// txtIssueUnitReceiver 控件。
/// </summary>
@@ -254,7 +256,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtIssueUnitReceiver;
/// <summary>
/// rblIsOnFile 控件。
/// </summary>
@@ -263,7 +265,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.RadioButtonList rblIsOnFile;
/// <summary>
/// txtRemarkCode 控件。
/// </summary>
@@ -272,7 +274,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtRemarkCode;
/// <summary>
/// Label1 控件。
/// </summary>
@@ -281,7 +283,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label1;
/// <summary>
/// Label3 控件。
/// </summary>
@@ -290,7 +292,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label3;
/// <summary>
/// Toolbar1 控件。
/// </summary>
@@ -299,7 +301,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// btnSave 控件。
/// </summary>