20260211 工程联络单
This commit is contained in:
parent
bfd4192578
commit
3becf06cfe
|
|
@ -0,0 +1,4 @@
|
||||||
|
alter table JGZL_Contact add ContactSortName nvarchar(50)
|
||||||
|
alter table JGZL_Contact add ContactSort int
|
||||||
|
go
|
||||||
|
|
||||||
|
|
@ -21,6 +21,16 @@ namespace BLL
|
||||||
return Funs.DB.JGZL_ConDrawingVerification.FirstOrDefault(e => e.ConDrawingVerificationId == conDrawingVerificationId);
|
return Funs.DB.JGZL_ConDrawingVerification.FirstOrDefault(e => e.ConDrawingVerificationId == conDrawingVerificationId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 根据项目Id获取施工图核查记录
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="projectId"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static Model.JGZL_ConDrawingVerification GetConDrawingVerificationByProjectId(string projectId)
|
||||||
|
{
|
||||||
|
return Funs.DB.JGZL_ConDrawingVerification.FirstOrDefault(e => e.ProjectId == projectId);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 添加
|
/// 添加
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,17 @@ namespace BLL
|
||||||
return Funs.DB.JGZL_Contact.FirstOrDefault(e => e.ContactId == contactId);
|
return Funs.DB.JGZL_Contact.FirstOrDefault(e => e.ContactId == contactId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 根据项目Id获取工程联络单
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="projectId"></param>
|
||||||
|
/// <param name="contactSort"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static Model.JGZL_Contact GetContactByProjectId(string projectId,string contactSort)
|
||||||
|
{
|
||||||
|
return Funs.DB.JGZL_Contact.FirstOrDefault(e => e.ProjectId == projectId && e.ContactSort == Convert.ToInt32(contactSort));
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 添加工程联络单
|
/// 添加工程联络单
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -47,6 +58,8 @@ namespace BLL
|
||||||
newContact.OpinionsDate = contact.OpinionsDate;
|
newContact.OpinionsDate = contact.OpinionsDate;
|
||||||
newContact.CompileMan = contact.CompileMan;
|
newContact.CompileMan = contact.CompileMan;
|
||||||
newContact.CompileDate = contact.CompileDate;
|
newContact.CompileDate = contact.CompileDate;
|
||||||
|
newContact.ContactSort = contact.ContactSort;
|
||||||
|
newContact.ContactSortName = contact.ContactSortName;
|
||||||
db.JGZL_Contact.InsertOnSubmit(newContact);
|
db.JGZL_Contact.InsertOnSubmit(newContact);
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head runat="server">
|
<head runat="server">
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<title>施工图核查记录</title>
|
<title>施工图核查记录</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
@ -39,98 +39,71 @@
|
||||||
<Items>
|
<Items>
|
||||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||||
</f:ToolbarFill>
|
</f:ToolbarFill>
|
||||||
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>
|
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
|
||||||
|
OnClick="btnSave_Click">
|
||||||
|
</f:Button>
|
||||||
|
<%--<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>--%>
|
||||||
<f:Button ID="btnPrint" Text="施工图核查记录打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
<f:Button ID="btnPrint" Text="施工图核查记录打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||||
</f:Button>
|
</f:Button>
|
||||||
</Items>
|
</Items>
|
||||||
</f:Toolbar>
|
</f:Toolbar>
|
||||||
</Toolbars>
|
</Toolbars>
|
||||||
<Items>
|
<Items>
|
||||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="施工图核查记录" EnableCollapse="true"
|
<f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true" BodyPadding="10px"
|
||||||
runat="server" BoxFlex="1" DataKeyNames="ConDrawingVerificationId" AllowCellEditing="true"
|
runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||||
EnableColumnLines="true" ClicksToEdit="1" DataIDField="ConDrawingVerificationId" AllowSorting="true"
|
<Rows>
|
||||||
SortField="VerificationDate" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true"
|
<f:FormRow>
|
||||||
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
<Items>
|
||||||
EnableTextSelection="True" AutoScroll="true" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
|
<f:TextBox ID="txtDesignUnit" runat="server" Label="设计单位" LabelAlign="Right" LabelWidth="110px"></f:TextBox>
|
||||||
<Columns>
|
<f:TextBox ID="txtProfessional" runat="server" Label="专业" LabelAlign="Right" LabelWidth="110px"></f:TextBox>
|
||||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
</Items>
|
||||||
TextAlign="Center" />
|
</f:FormRow>
|
||||||
<f:RenderField HeaderText="设计单位" ColumnID="DesignUnit" DataField="DesignUnit" SortField="DesignUnit"
|
<f:FormRow>
|
||||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
|
<Items>
|
||||||
</f:RenderField>
|
<%--<f:TextBox ID="txtHost" runat="server" Label="主持人" LabelAlign="Right" LabelWidth="110px"></f:TextBox>--%>
|
||||||
<f:RenderField HeaderText="专业" ColumnID="Professional" DataField="Professional" SortField="Professional"
|
<f:DatePicker ID="txtVerificationDate" runat="server" Label="核查时间" LabelAlign="Right" LabelWidth="110px" Required="true" ShowRedStar="true"></f:DatePicker>
|
||||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="110px">
|
<f:TextBox ID="txtConDrawingCode" runat="server" Label="施工图号" LabelAlign="Right" LabelWidth="110px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
|
||||||
</f:RenderField>
|
</Items>
|
||||||
<%--<f:RenderField HeaderText="主持人" ColumnID="Host" DataField="Host" SortField="Host"
|
</f:FormRow>
|
||||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="110px">
|
<%--<f:FormRow>
|
||||||
</f:RenderField>--%>
|
<Items>
|
||||||
<f:RenderField HeaderText="核查时间" ColumnID="VerificationDate" DataField="VerificationDate" SortField="VerificationDate"
|
<f:TextArea ID="txtPersonnel" runat="server" Label="参加核查人员" LabelAlign="Right" LabelWidth="110px" MaxLength="2000"></f:TextArea>
|
||||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
</Items>
|
||||||
</f:RenderField>
|
</f:FormRow>--%>
|
||||||
<f:RenderField HeaderText="施工图号" ColumnID="ConDrawingCode" DataField="ConDrawingCode" SortField="ConDrawingCode"
|
<f:FormRow>
|
||||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
<Items>
|
||||||
</f:RenderField>
|
<f:TextArea ID="txtContents" runat="server" Label="内容记录" LabelAlign="Right" LabelWidth="110px" MaxLength="2000"></f:TextArea>
|
||||||
<f:RenderField HeaderText="内容记录" ColumnID="Contents" DataField="Contents" SortField="Contents"
|
</Items>
|
||||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="180px" ExpandUnusedSpace="true">
|
</f:FormRow>
|
||||||
</f:RenderField>
|
<f:FormRow>
|
||||||
<%--<f:RenderField HeaderText="记录人" ColumnID="Recorder" DataField="Recorder" SortField="Recorder"
|
<Items>
|
||||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
<f:TextArea ID="txtProblems" runat="server" Label="问题情况" LabelAlign="Right" LabelWidth="110px" MaxLength="2000"></f:TextArea>
|
||||||
</f:RenderField>--%>
|
</Items>
|
||||||
<f:RenderField HeaderText="记录时间" ColumnID="RecordDate" DataField="RecordDate" SortField="RecordDate"
|
</f:FormRow>
|
||||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
<f:FormRow>
|
||||||
</f:RenderField>
|
<Items>
|
||||||
<%--<f:RenderField HeaderText="审核人" ColumnID="Reviewer" DataField="Reviewer" SortField="Reviewer"
|
<%--<f:TextBox ID="txtRecorder" runat="server" Label="记录人" LabelAlign="Right" LabelWidth="110px" MaxLength="50"></f:TextBox>--%>
|
||||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
<f:DatePicker ID="txtRecordDate" runat="server" Label="记录时间" LabelAlign="Right" LabelWidth="110px"></f:DatePicker>
|
||||||
</f:RenderField>--%>
|
<f:DatePicker ID="txtReviewDate" runat="server" Label="审核时间" LabelAlign="Right" LabelWidth="110px"></f:DatePicker>
|
||||||
<f:RenderField HeaderText="审核时间" ColumnID="ReviewDate" DataField="ReviewDate" SortField="ReviewDate"
|
</Items>
|
||||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
</f:FormRow>
|
||||||
</f:RenderField>
|
<%--<f:FormRow>
|
||||||
</Columns>
|
<Items>
|
||||||
<Listeners>
|
<f:TextBox ID="txtReviewer" runat="server" Label="审核人" LabelAlign="Right" LabelWidth="110px" MaxLength="50"></f:TextBox>
|
||||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
|
||||||
</Listeners>
|
</Items>
|
||||||
<PageItems>
|
</f:FormRow>--%>
|
||||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
</Rows>
|
||||||
</f:ToolbarSeparator>
|
</f:Form>
|
||||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
|
||||||
</f:ToolbarText>
|
|
||||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
|
||||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
|
||||||
<f:ListItem Text="10" Value="10" />
|
|
||||||
<f:ListItem Text="15" Value="15" />
|
|
||||||
<f:ListItem Text="20" Value="20" />
|
|
||||||
<f:ListItem Text="25" Value="25" />
|
|
||||||
</f:DropDownList>
|
|
||||||
</PageItems>
|
|
||||||
</f:Grid>
|
|
||||||
</Items>
|
</Items>
|
||||||
</f:Panel>
|
</f:Panel>
|
||||||
</Items>
|
</Items>
|
||||||
</f:Panel>
|
</f:Panel>
|
||||||
<f:Window ID="Window1" Title="施工图核查记录" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
|
||||||
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
|
||||||
Width="1100px" Height="620px">
|
|
||||||
</f:Window>
|
|
||||||
<f:Window ID="WindowPrint" Title="打印施工图核查记录" Hidden="true" EnableIFrame="true" EnableMaximize="false"
|
<f:Window ID="WindowPrint" Title="打印施工图核查记录" Hidden="true" EnableIFrame="true" EnableMaximize="false"
|
||||||
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
|
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
|
||||||
Height="600px">
|
Height="600px">
|
||||||
</f:Window>
|
</f:Window>
|
||||||
<f:Menu ID="Menu1" runat="server">
|
|
||||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
|
||||||
runat="server" Text="编辑" Icon="TableEdit">
|
|
||||||
</f:MenuButton>
|
|
||||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
|
||||||
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
|
|
||||||
</f:MenuButton>
|
|
||||||
</f:Menu>
|
|
||||||
</form>
|
</form>
|
||||||
<script type="text/javascript">
|
|
||||||
var menuID = '<%= Menu1.ClientID %>';
|
|
||||||
// 返回false,来阻止浏览器右键菜单
|
|
||||||
function onRowContextMenu(event, rowId) {
|
|
||||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,25 @@ using System.IO;
|
||||||
|
|
||||||
namespace FineUIPro.Web.JGZL
|
namespace FineUIPro.Web.JGZL
|
||||||
{
|
{
|
||||||
public partial class ConDrawingVerification :PageBase
|
public partial class ConDrawingVerification : PageBase
|
||||||
{
|
{
|
||||||
|
#region 定义项
|
||||||
|
/// <summary>
|
||||||
|
/// 主键
|
||||||
|
/// </summary>
|
||||||
|
private string ConDrawingVerificationId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return (string)ViewState["ConDrawingVerificationId"];
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
ViewState["ConDrawingVerificationId"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region 加载页面
|
#region 加载页面
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 加载页面
|
/// 加载页面
|
||||||
|
|
@ -23,8 +40,6 @@ namespace FineUIPro.Web.JGZL
|
||||||
{
|
{
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
|
||||||
|
|
||||||
this.drpProjectId.DataTextField = "ProjectCode";
|
this.drpProjectId.DataTextField = "ProjectCode";
|
||||||
this.drpProjectId.DataValueField = "ProjectId";
|
this.drpProjectId.DataValueField = "ProjectId";
|
||||||
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||||
|
|
@ -34,9 +49,53 @@ namespace FineUIPro.Web.JGZL
|
||||||
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
|
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
|
||||||
this.InitTreeMenu();//加载树
|
this.InitTreeMenu();//加载树
|
||||||
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
||||||
this.BindGrid();
|
PageData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void PageData()
|
||||||
|
{
|
||||||
|
EmptyText();
|
||||||
|
string projectId = this.tvControlItem.SelectedNodeID;
|
||||||
|
if (!string.IsNullOrEmpty(projectId))
|
||||||
|
{
|
||||||
|
var report = BLL.ConDrawingVerificationService.GetConDrawingVerificationByProjectId(projectId);
|
||||||
|
if (report != null)
|
||||||
|
{
|
||||||
|
this.ConDrawingVerificationId = report.ConDrawingVerificationId;
|
||||||
|
this.txtDesignUnit.Text = report.DesignUnit;
|
||||||
|
this.txtProfessional.Text = report.Professional;
|
||||||
|
//this.txtHost.Text = report.Host;
|
||||||
|
this.txtVerificationDate.Text = report.VerificationDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.VerificationDate) : "";
|
||||||
|
this.txtConDrawingCode.Text = report.ConDrawingCode;
|
||||||
|
//this.txtPersonnel.Text = report.Personnel;
|
||||||
|
this.txtContents.Text = report.Contents;
|
||||||
|
this.txtProblems.Text = report.Problems;
|
||||||
|
//this.txtRecorder.Text = report.Recorder;
|
||||||
|
this.txtRecordDate.Text = report.RecordDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.RecordDate) : "";
|
||||||
|
//this.txtReviewer.Text = report.Reviewer;
|
||||||
|
this.txtReviewDate.Text = report.ReviewDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.ReviewDate) : "";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.ConDrawingVerificationId = string.Empty;
|
||||||
|
this.txtVerificationDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
|
||||||
|
this.txtConDrawingCode.Text = BLL.Base_ProjectService.GetProjectCode(projectId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void EmptyText()
|
||||||
|
{
|
||||||
|
txtDesignUnit.Text = string.Empty;
|
||||||
|
txtProfessional.Text = string.Empty;
|
||||||
|
txtVerificationDate.Text = string.Empty;
|
||||||
|
txtConDrawingCode.Text = string.Empty;
|
||||||
|
txtContents.Text = string.Empty;
|
||||||
|
txtProblems.Text = string.Empty;
|
||||||
|
txtRecordDate.Text = string.Empty;
|
||||||
|
txtReviewDate.Text = string.Empty;
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 加载树项目
|
#region 加载树项目
|
||||||
|
|
@ -82,80 +141,11 @@ namespace FineUIPro.Web.JGZL
|
||||||
{
|
{
|
||||||
if (this.tvControlItem.SelectedNodeID != "0")
|
if (this.tvControlItem.SelectedNodeID != "0")
|
||||||
{
|
{
|
||||||
this.BindGrid();
|
PageData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 数据绑定
|
|
||||||
/// <summary>
|
|
||||||
/// 数据绑定
|
|
||||||
/// </summary>
|
|
||||||
private void BindGrid()
|
|
||||||
{
|
|
||||||
//string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1");
|
|
||||||
string strSql = @"SELECT * from JGZL_ConDrawingVerification where 1=1";
|
|
||||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
|
||||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
|
||||||
{
|
|
||||||
strSql += " AND ProjectId = @ProjectId";
|
|
||||||
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
|
|
||||||
}
|
|
||||||
//else
|
|
||||||
//{
|
|
||||||
// strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 ";
|
|
||||||
// listStr.Add(new SqlParameter("@ProjectId", projectIds));
|
|
||||||
//}
|
|
||||||
SqlParameter[] parameter = listStr.ToArray();
|
|
||||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
|
||||||
// 2.获取当前分页数据
|
|
||||||
Grid1.RecordCount = tb.Rows.Count;
|
|
||||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
|
||||||
var table = this.GetPagedDataTable(Grid1, tb);
|
|
||||||
Grid1.DataSource = table;
|
|
||||||
Grid1.DataBind();
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 分页排序
|
|
||||||
#region 页索引改变事件
|
|
||||||
/// <summary>
|
|
||||||
/// 页索引改变事件
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender"></param>
|
|
||||||
/// <param name="e"></param>
|
|
||||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
|
||||||
{
|
|
||||||
BindGrid();
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 排序
|
|
||||||
/// <summary>
|
|
||||||
/// 排序
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender"></param>
|
|
||||||
/// <param name="e"></param>
|
|
||||||
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
|
||||||
{
|
|
||||||
BindGrid();
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 分页选择下拉改变事件
|
|
||||||
/// <summary>
|
|
||||||
/// 分页选择下拉改变事件
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender"></param>
|
|
||||||
/// <param name="e"></param>
|
|
||||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
|
||||||
BindGrid();
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 查询
|
#region 查询
|
||||||
///<summary>
|
///<summary>
|
||||||
///查询
|
///查询
|
||||||
|
|
@ -166,17 +156,7 @@ namespace FineUIPro.Web.JGZL
|
||||||
{
|
{
|
||||||
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
||||||
this.InitTreeMenu();
|
this.InitTreeMenu();
|
||||||
BindGrid();
|
PageData();
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 查询
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender"></param>
|
|
||||||
/// <param name="e"></param>
|
|
||||||
protected void TextBox_TextChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
this.BindGrid();
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
@ -189,16 +169,13 @@ namespace FineUIPro.Web.JGZL
|
||||||
protected void btnPrint_Click(object sender, EventArgs e)
|
protected void btnPrint_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
string projectId = this.tvControlItem.SelectedNodeID;
|
string projectId = this.tvControlItem.SelectedNodeID;
|
||||||
|
|
||||||
if (projectId != null)
|
if (projectId != null)
|
||||||
{
|
|
||||||
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
|
||||||
{
|
{
|
||||||
string initTemplatePath = "";
|
string initTemplatePath = "";
|
||||||
string rootPath = Server.MapPath("~/");
|
string rootPath = Server.MapPath("~/");
|
||||||
BLL.Common.FastReportService.ResetData();
|
BLL.Common.FastReportService.ResetData();
|
||||||
|
|
||||||
var report = BLL.ConDrawingVerificationService.GetConDrawingVerificationById(this.Grid1.SelectedRowID);
|
var report = BLL.ConDrawingVerificationService.GetConDrawingVerificationByProjectId(projectId);
|
||||||
if (report != null)
|
if (report != null)
|
||||||
{
|
{
|
||||||
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||||
|
|
@ -217,7 +194,7 @@ namespace FineUIPro.Web.JGZL
|
||||||
keyValuePairs.Add("ReviewDate", report.ReviewDate.HasValue ? string.Format("{0:yyyy年MM月dd日}", report.ReviewDate) : "");
|
keyValuePairs.Add("ReviewDate", report.ReviewDate.HasValue ? string.Format("{0:yyyy年MM月dd日}", report.ReviewDate) : "");
|
||||||
|
|
||||||
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
||||||
}
|
|
||||||
initTemplatePath = "File\\Fastreport\\JGZL\\施工图核查记录.frx";
|
initTemplatePath = "File\\Fastreport\\JGZL\\施工图核查记录.frx";
|
||||||
if (File.Exists(rootPath + initTemplatePath))
|
if (File.Exists(rootPath + initTemplatePath))
|
||||||
{
|
{
|
||||||
|
|
@ -226,7 +203,7 @@ namespace FineUIPro.Web.JGZL
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
Alert.ShowInTop("请先保存数据!", MessageBoxIcon.Warning);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -238,158 +215,52 @@ namespace FineUIPro.Web.JGZL
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 维护
|
#region 提交按钮
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 增加
|
/// 提交按钮
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="sender"></param>
|
/// <param name="sender"></param>
|
||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
protected void btnAdd_Click(object sender, EventArgs e)
|
protected void btnSave_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_ConDrawingVerificationMenuId, Const.BtnSave))
|
||||||
{
|
{
|
||||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ConDrawingVerificationEidt.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
|
Model.JGZL_ConDrawingVerification newReport = new Model.JGZL_ConDrawingVerification();
|
||||||
|
newReport.DesignUnit = this.txtDesignUnit.Text.Trim();
|
||||||
|
newReport.Professional = this.txtProfessional.Text.Trim();
|
||||||
|
//newReport.Host = this.txtHost.Text.Trim();
|
||||||
|
newReport.VerificationDate = Funs.GetNewDateTime(this.txtVerificationDate.Text);
|
||||||
|
newReport.ConDrawingCode = txtConDrawingCode.Text.Trim();
|
||||||
|
//newReport.Personnel = this.txtPersonnel.Text;
|
||||||
|
newReport.Contents = this.txtContents.Text;
|
||||||
|
newReport.Problems = this.txtProblems.Text;
|
||||||
|
//newReport.Recorder = this.txtRecorder.Text.Trim();
|
||||||
|
newReport.RecordDate = Funs.GetNewDateTime(this.txtRecordDate.Text.Trim());
|
||||||
|
//newReport.Reviewer=this.txtReviewer.Text.Trim();
|
||||||
|
newReport.ReviewDate = Funs.GetNewDateTime(this.txtReviewDate.Text.Trim());
|
||||||
|
if (!string.IsNullOrEmpty(this.ConDrawingVerificationId))
|
||||||
|
{
|
||||||
|
newReport.ConDrawingVerificationId = this.ConDrawingVerificationId;
|
||||||
|
BLL.ConDrawingVerificationService.UpdateConDrawingVerification(newReport);
|
||||||
|
ShowNotify("修改成功!", MessageBoxIcon.Success);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
newReport.ProjectId = this.tvControlItem.SelectedNodeID;
|
||||||
return;
|
newReport.CompileMan = this.CurrUser.UserId;
|
||||||
|
newReport.CompileDate = DateTime.Now;
|
||||||
|
newReport.ConDrawingVerificationId = SQLHelper.GetNewID(typeof(Model.JGZL_ConDrawingVerification));
|
||||||
|
this.ConDrawingVerificationId = newReport.ConDrawingVerificationId;
|
||||||
|
BLL.ConDrawingVerificationService.AddConDrawingVerification(newReport);
|
||||||
|
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||||
}
|
}
|
||||||
}
|
PageData();
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 双击编辑
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender"></param>
|
|
||||||
/// <param name="e"></param>
|
|
||||||
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
|
||||||
{
|
|
||||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_ConDrawingVerificationMenuId, BLL.Const.BtnModify))
|
|
||||||
{
|
|
||||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
|
||||||
{
|
|
||||||
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
|
||||||
{
|
|
||||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ConDrawingVerificationEidt.aspx?conDrawingVerificationId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 右键编辑
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender"></param>
|
|
||||||
/// <param name="e"></param>
|
|
||||||
protected void btnMenuEdit_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_ConDrawingVerificationMenuId, BLL.Const.BtnModify))
|
|
||||||
{
|
|
||||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
|
||||||
{
|
|
||||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ConDrawingVerificationEidt.aspx?conDrawingVerificationId={0}", Grid1.SelectedRowID, "维护 - ")));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 右键删除
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender"></param>
|
|
||||||
/// <param name="e"></param>
|
|
||||||
protected void btnMenuDelete_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_ConDrawingVerificationMenuId, Const.BtnDelete))
|
|
||||||
{
|
|
||||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
|
||||||
{
|
|
||||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isShow = true;
|
|
||||||
if (Grid1.SelectedRowIndexArray.Length > 1)
|
|
||||||
{
|
|
||||||
isShow = false;
|
|
||||||
}
|
|
||||||
bool isDelete = false;
|
|
||||||
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
|
||||||
{
|
|
||||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
|
||||||
if (judgementDelete(rowID, isShow))
|
|
||||||
{
|
|
||||||
isDelete = true;
|
|
||||||
BLL.ConDrawingVerificationService.DeleteConDrawingVerificationById(rowID);
|
|
||||||
BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除施工图核查记录");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isDelete)
|
|
||||||
{
|
|
||||||
ShowNotify("删除成功!", MessageBoxIcon.Success);
|
|
||||||
}
|
|
||||||
this.BindGrid();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#region 判断是否可删除
|
|
||||||
/// <summary>
|
|
||||||
/// 判断是否可以删除
|
|
||||||
/// </summary>
|
|
||||||
/// <returns></returns>
|
|
||||||
private bool judgementDelete(string id, bool isShow)
|
|
||||||
{
|
|
||||||
string content = string.Empty;
|
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(content))
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (isShow)
|
|
||||||
{
|
|
||||||
Alert.ShowInTop(content, MessageBoxIcon.Error);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 关闭弹出窗口及刷新页面
|
|
||||||
/// <summary>
|
|
||||||
/// 关闭弹出窗口
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender"></param>
|
|
||||||
/// <param name="e"></param>
|
|
||||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
|
||||||
{
|
|
||||||
this.InitTreeMenu();//加载树
|
|
||||||
this.BindGrid();
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -105,13 +105,13 @@ namespace FineUIPro.Web.JGZL
|
||||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// btnAdd 控件。
|
/// btnSave 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Button btnAdd;
|
protected global::FineUIPro.Button btnSave;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// btnPrint 控件。
|
/// btnPrint 控件。
|
||||||
|
|
@ -123,49 +123,85 @@ namespace FineUIPro.Web.JGZL
|
||||||
protected global::FineUIPro.Button btnPrint;
|
protected global::FineUIPro.Button btnPrint;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Grid1 控件。
|
/// SimpleForm1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Grid Grid1;
|
protected global::FineUIPro.Form SimpleForm1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ToolbarSeparator1 控件。
|
/// txtDesignUnit 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
protected global::FineUIPro.TextBox txtDesignUnit;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ToolbarText1 控件。
|
/// txtProfessional 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
protected global::FineUIPro.TextBox txtProfessional;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ddlPageSize 控件。
|
/// txtVerificationDate 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
protected global::FineUIPro.DatePicker txtVerificationDate;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Window1 控件。
|
/// txtConDrawingCode 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Window Window1;
|
protected global::FineUIPro.TextBox txtConDrawingCode;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtContents 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtContents;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtProblems 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtProblems;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtRecordDate 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtRecordDate;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtReviewDate 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtReviewDate;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// WindowPrint 控件。
|
/// WindowPrint 控件。
|
||||||
|
|
@ -175,32 +211,5 @@ namespace FineUIPro.Web.JGZL
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Window WindowPrint;
|
protected global::FineUIPro.Window WindowPrint;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Menu1 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.Menu Menu1;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// btnMenuEdit 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// btnMenuDelete 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.MenuButton btnMenuDelete;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,16 +37,72 @@
|
||||||
<Toolbars>
|
<Toolbars>
|
||||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||||
<Items>
|
<Items>
|
||||||
|
<f:DropDownList ID="drpContactSort" runat="server" Width="100px" AutoPostBack="true" OnSelectedIndexChanged="drpContactSort_SelectedIndexChanged"></f:DropDownList>
|
||||||
|
<f:HiddenField ID="hdContactSort" runat="server"></f:HiddenField>
|
||||||
|
<f:HiddenField ID="hdContactSortName" runat="server"></f:HiddenField>
|
||||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||||
</f:ToolbarFill>
|
</f:ToolbarFill>
|
||||||
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>
|
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加新联络单" OnClick="btnAdd_Click"></f:Button>
|
||||||
|
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
|
||||||
|
OnClick="btnSave_Click">
|
||||||
|
</f:Button>
|
||||||
<f:Button ID="btnPrint" Text="工程联络单打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
<f:Button ID="btnPrint" Text="工程联络单打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||||
</f:Button>
|
</f:Button>
|
||||||
</Items>
|
</Items>
|
||||||
</f:Toolbar>
|
</f:Toolbar>
|
||||||
</Toolbars>
|
</Toolbars>
|
||||||
<Items>
|
<Items>
|
||||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="工程联络单" EnableCollapse="true"
|
<f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true" BodyPadding="10px"
|
||||||
|
runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtContractNumber" runat="server" Label="联络单编号" LabelAlign="Right" LabelWidth="110px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
|
||||||
|
<f:TextBox ID="txtDeliveryUnit" runat="server" Label="送达单位" LabelAlign="Right" LabelWidth="110px" MaxLength="50"></f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtSubjectMatter" runat="server" Label="事由" LabelAlign="Right" LabelWidth="110px" MaxLength="1000"></f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtContents" runat="server" Label="内容" LabelAlign="Right" LabelWidth="110px" MaxLength="2000" Required="true" ShowRedStar="true"></f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtHandler" runat="server" Label="经办人" LabelAlign="Right" LabelWidth="110px" MaxLength="50"></f:TextBox>
|
||||||
|
<f:DatePicker ID="txtHandDate" runat="server" Label="日期" LabelAlign="Right" LabelWidth="110px"></f:DatePicker>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtReviewer" runat="server" Label="审核人" LabelAlign="Right" LabelWidth="110px" MaxLength="50"></f:TextBox>
|
||||||
|
<f:DatePicker ID="txtReviewDate" runat="server" Label="日期" LabelAlign="Right" LabelWidth="110px"></f:DatePicker>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtHandlingOpinion" runat="server" Label="接收单位处理意见" LabelAlign="Right" LabelWidth="110px" MaxLength="1000"></f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtOpinionHandler" runat="server" Label="经办人" LabelAlign="Right" LabelWidth="110px" MaxLength="50"></f:TextBox>
|
||||||
|
<f:DatePicker ID="txtOpinionHandDate" runat="server" Label="日期" LabelAlign="Right" LabelWidth="110px"></f:DatePicker>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtOpinionsReviewer" runat="server" Label="审核人" LabelAlign="Right" LabelWidth="110px" MaxLength="50"></f:TextBox>
|
||||||
|
<f:DatePicker ID="txtOpinionsDate" runat="server" Label="日期" LabelAlign="Right" LabelWidth="110px"></f:DatePicker>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
</f:Form>
|
||||||
|
<%--<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="工程联络单" EnableCollapse="true"
|
||||||
runat="server" BoxFlex="1" DataKeyNames="ContactId" AllowCellEditing="true"
|
runat="server" BoxFlex="1" DataKeyNames="ContactId" AllowCellEditing="true"
|
||||||
EnableColumnLines="true" ClicksToEdit="1" DataIDField="ContactId" AllowSorting="true"
|
EnableColumnLines="true" ClicksToEdit="1" DataIDField="ContactId" AllowSorting="true"
|
||||||
SortField="ContractNumber" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true"
|
SortField="ContractNumber" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true"
|
||||||
|
|
@ -84,35 +140,35 @@
|
||||||
<f:ListItem Text="25" Value="25" />
|
<f:ListItem Text="25" Value="25" />
|
||||||
</f:DropDownList>
|
</f:DropDownList>
|
||||||
</PageItems>
|
</PageItems>
|
||||||
</f:Grid>
|
</f:Grid>--%>
|
||||||
</Items>
|
</Items>
|
||||||
</f:Panel>
|
</f:Panel>
|
||||||
</Items>
|
</Items>
|
||||||
</f:Panel>
|
</f:Panel>
|
||||||
<f:Window ID="Window1" Title="工程联络单" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
<%--<f:Window ID="Window1" Title="工程联络单" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||||
Width="1100px" Height="620px">
|
Width="1100px" Height="620px">
|
||||||
</f:Window>
|
</f:Window>--%>
|
||||||
<f:Window ID="WindowPrint" Title="打印工程联络单" Hidden="true" EnableIFrame="true" EnableMaximize="false"
|
<f:Window ID="WindowPrint" Title="打印工程联络单" Hidden="true" EnableIFrame="true" EnableMaximize="false"
|
||||||
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
|
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
|
||||||
Height="600px">
|
Height="600px">
|
||||||
</f:Window>
|
</f:Window>
|
||||||
<f:Menu ID="Menu1" runat="server">
|
<%--<f:Menu ID="Menu1" runat="server">
|
||||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
||||||
runat="server" Text="编辑" Icon="TableEdit">
|
runat="server" Text="编辑" Icon="TableEdit">
|
||||||
</f:MenuButton>
|
</f:MenuButton>
|
||||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||||
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
|
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
|
||||||
</f:MenuButton>
|
</f:MenuButton>
|
||||||
</f:Menu>
|
</f:Menu>--%>
|
||||||
</form>
|
</form>
|
||||||
<script type="text/javascript">
|
<%--<script type="text/javascript">
|
||||||
var menuID = '<%= Menu1.ClientID %>';
|
var menuID = '<%= Menu1.ClientID %>';
|
||||||
// 返回false,来阻止浏览器右键菜单
|
// 返回false,来阻止浏览器右键菜单
|
||||||
function onRowContextMenu(event, rowId) {
|
function onRowContextMenu(event, rowId) {
|
||||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
</script>
|
</script>--%>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,30 @@ using System.Web;
|
||||||
using System.Web.UI;
|
using System.Web.UI;
|
||||||
using System.Web.UI.WebControls;
|
using System.Web.UI.WebControls;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using FineUIPro.Web.common.BaseInfo;
|
||||||
|
|
||||||
namespace FineUIPro.Web.JGZL
|
namespace FineUIPro.Web.JGZL
|
||||||
{
|
{
|
||||||
public partial class Contact : PageBase
|
public partial class Contact : PageBase
|
||||||
{
|
{
|
||||||
|
#region 定义项
|
||||||
|
/// <summary>
|
||||||
|
/// 主键
|
||||||
|
/// </summary>
|
||||||
|
private string ContactId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return (string)ViewState["ContactId"];
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
ViewState["ContactId"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region 加载页面
|
#region 加载页面
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 加载页面
|
/// 加载页面
|
||||||
|
|
@ -23,7 +42,7 @@ namespace FineUIPro.Web.JGZL
|
||||||
{
|
{
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
//this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||||
|
|
||||||
this.drpProjectId.DataTextField = "ProjectCode";
|
this.drpProjectId.DataTextField = "ProjectCode";
|
||||||
this.drpProjectId.DataValueField = "ProjectId";
|
this.drpProjectId.DataValueField = "ProjectId";
|
||||||
|
|
@ -34,11 +53,109 @@ namespace FineUIPro.Web.JGZL
|
||||||
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
|
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
|
||||||
this.InitTreeMenu();//加载树
|
this.InitTreeMenu();//加载树
|
||||||
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
||||||
this.BindGrid();
|
|
||||||
|
this.drpContactSort.DataTextField = "ContactSortName";
|
||||||
|
this.drpContactSort.DataValueField = "ContactSort";
|
||||||
|
this.drpContactSort.DataSource = (from x in Funs.DB.JGZL_Contact where x.ProjectId== this.tvControlItem.SelectedNodeID orderby x.ContactSort select x).ToList();
|
||||||
|
this.drpContactSort.DataBind();
|
||||||
|
|
||||||
|
PageData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
private void PageData()
|
||||||
|
{
|
||||||
|
EmptyText();
|
||||||
|
string projectId = this.tvControlItem.SelectedNodeID;
|
||||||
|
if (!string.IsNullOrEmpty(projectId))
|
||||||
|
{
|
||||||
|
int isoCount = (from x in Funs.DB.HJGL_PW_IsoInfo where x.ProjectId == projectId select x).Count();
|
||||||
|
int jointCount = (from x in Funs.DB.HJGL_PW_JointInfo where x.ProjectId == projectId select x).Count();
|
||||||
|
var project = BLL.Base_ProjectService.GetProjectByProjectId(projectId);
|
||||||
|
var report = BLL.ContactService.GetContactByProjectId(projectId, this.drpContactSort.SelectedValue);
|
||||||
|
if (report != null)
|
||||||
|
{
|
||||||
|
this.hdContactSort.Text = report.ContactSort.ToString();
|
||||||
|
this.hdContactSortName.Text = report.ContactSortName;
|
||||||
|
this.ContactId = report.ContactId;
|
||||||
|
if (!string.IsNullOrEmpty(report.ContractNumber))
|
||||||
|
{
|
||||||
|
this.txtContractNumber.Text = report.ContractNumber;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.txtContractNumber.Text = project.ProjectCode;
|
||||||
|
}
|
||||||
|
this.txtDeliveryUnit.Text = report.DeliveryUnit;
|
||||||
|
if (!string.IsNullOrEmpty(report.SubjectMatter))
|
||||||
|
{
|
||||||
|
this.txtSubjectMatter.Text = report.SubjectMatter;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.txtSubjectMatter.Text = project.ProjectName + ",以下问题请设计单位审核:";
|
||||||
|
}
|
||||||
|
if (!string.IsNullOrEmpty(report.Contents))
|
||||||
|
{
|
||||||
|
this.txtContents.Text = report.Contents;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.txtContents.Text = "本次" + project.ProjectName + "于" + string.Format("{0:yyyy年MM月dd日}", project.StartDate) + "开工,到" + string.Format("{0:yyyy年MM月dd日}", project.EndDate) + "施工结束。该项目共计安装管道" + isoCount + "条,管道焊缝共计" + jointCount + "道,已按图纸要求的比例进行焊缝无损检测,检测结果均符合设计规定的合格等级。该项目配套的各类管道组成件、支撑件安装质量均满足设计文件以及标准规范要求。目前,管道系统已完成水压试验及压缩空气吹扫工序,试验压力降、管道洁净度等关键指标均符合标准规范的规定标准并已通过业主方验收。";
|
||||||
|
}
|
||||||
|
this.txtHandler.Text = report.Handler;
|
||||||
|
this.txtHandDate.Text = report.HandDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.HandDate) : "";
|
||||||
|
this.txtReviewer.Text = report.Reviewer;
|
||||||
|
this.txtReviewDate.Text = report.ReviewDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.ReviewDate) : "";
|
||||||
|
this.txtHandlingOpinion.Text = report.HandlingOpinion;
|
||||||
|
this.txtOpinionHandler.Text = report.OpinionHandler;
|
||||||
|
this.txtOpinionHandDate.Text = report.OpinionHandDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.OpinionHandDate) : "";
|
||||||
|
this.txtOpinionsReviewer.Text = report.OpinionsReviewer;
|
||||||
|
this.txtOpinionsDate.Text = report.OpinionsDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.OpinionsDate) : "";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var con = (from x in Funs.DB.JGZL_Contact where x.ProjectId == project.ProjectId select x).ToList();
|
||||||
|
if (con.Count == 0)
|
||||||
|
{
|
||||||
|
this.drpContactSort.Hidden = true;
|
||||||
|
this.btnAdd.Hidden = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.drpContactSort.Hidden = false;
|
||||||
|
this.btnAdd.Hidden = false;
|
||||||
|
}
|
||||||
|
this.ContactId = string.Empty;
|
||||||
|
this.txtContractNumber.Text = project.ProjectCode;
|
||||||
|
this.txtSubjectMatter.Text = project.ProjectName + ",以下问题请设计单位审核:";
|
||||||
|
this.txtContents.Text = "本次" + project.ProjectName + "于" + string.Format("{0:yyyy年MM月dd日}", project.StartDate) + "开工,到" + string.Format("{0:yyyy年MM月dd日}", project.EndDate) + "施工结束。该项目共计安装管道" + isoCount + "条,管道焊缝共计" + jointCount + "道,已按图纸要求的比例进行焊缝无损检测,检测结果均符合设计规定的合格等级。该项目配套的各类管道组成件、支撑件安装质量均满足设计文件以及标准规范要求。目前,管道系统已完成水压试验及压缩空气吹扫工序,试验压力降、管道洁净度等关键指标均符合标准规范的规定标准并已通过业主方验收。";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 清空文本框
|
||||||
|
/// </summary>
|
||||||
|
/// <exception cref="NotImplementedException"></exception>
|
||||||
|
private void EmptyText()
|
||||||
|
{
|
||||||
|
txtContractNumber.Text = string.Empty;
|
||||||
|
txtDeliveryUnit.Text = string.Empty;
|
||||||
|
txtSubjectMatter.Text = string.Empty;
|
||||||
|
txtContents.Text = string.Empty;
|
||||||
|
txtHandler.Text = string.Empty;
|
||||||
|
txtHandDate.Text = string.Empty;
|
||||||
|
txtReviewer.Text = string.Empty;
|
||||||
|
txtReviewDate.Text = string.Empty;
|
||||||
|
txtHandlingOpinion.Text = string.Empty;
|
||||||
|
txtOpinionHandler.Text = string.Empty;
|
||||||
|
txtOpinionHandDate.Text = string.Empty;
|
||||||
|
txtOpinionsReviewer.Text = string.Empty;
|
||||||
|
txtOpinionsDate.Text = string.Empty;
|
||||||
|
}
|
||||||
|
|
||||||
#region 加载树项目
|
#region 加载树项目
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 加载树
|
/// 加载树
|
||||||
|
|
@ -82,7 +199,8 @@ namespace FineUIPro.Web.JGZL
|
||||||
{
|
{
|
||||||
if (this.tvControlItem.SelectedNodeID != "0")
|
if (this.tvControlItem.SelectedNodeID != "0")
|
||||||
{
|
{
|
||||||
this.BindGrid();
|
//this.BindGrid();
|
||||||
|
PageData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
@ -91,30 +209,30 @@ namespace FineUIPro.Web.JGZL
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 数据绑定
|
/// 数据绑定
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void BindGrid()
|
//private void BindGrid()
|
||||||
{
|
|
||||||
//string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1");
|
|
||||||
string strSql = @"SELECT * from JGZL_Contact where 1=1";
|
|
||||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
|
||||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
|
||||||
{
|
|
||||||
strSql += " AND ProjectId = @ProjectId";
|
|
||||||
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
|
|
||||||
}
|
|
||||||
//else
|
|
||||||
//{
|
//{
|
||||||
// strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 ";
|
// //string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1");
|
||||||
// listStr.Add(new SqlParameter("@ProjectId", projectIds));
|
// string strSql = @"SELECT * from JGZL_Contact where 1=1";
|
||||||
|
// List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
|
// if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||||
|
// {
|
||||||
|
// strSql += " AND ProjectId = @ProjectId";
|
||||||
|
// listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
|
||||||
|
// }
|
||||||
|
// //else
|
||||||
|
// //{
|
||||||
|
// // strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 ";
|
||||||
|
// // listStr.Add(new SqlParameter("@ProjectId", projectIds));
|
||||||
|
// //}
|
||||||
|
// SqlParameter[] parameter = listStr.ToArray();
|
||||||
|
// DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
|
// // 2.获取当前分页数据
|
||||||
|
// Grid1.RecordCount = tb.Rows.Count;
|
||||||
|
// //tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||||
|
// var table = this.GetPagedDataTable(Grid1, tb);
|
||||||
|
// Grid1.DataSource = table;
|
||||||
|
// Grid1.DataBind();
|
||||||
//}
|
//}
|
||||||
SqlParameter[] parameter = listStr.ToArray();
|
|
||||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
|
||||||
// 2.获取当前分页数据
|
|
||||||
Grid1.RecordCount = tb.Rows.Count;
|
|
||||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
|
||||||
var table = this.GetPagedDataTable(Grid1, tb);
|
|
||||||
Grid1.DataSource = table;
|
|
||||||
Grid1.DataBind();
|
|
||||||
}
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 分页排序
|
#region 分页排序
|
||||||
|
|
@ -124,10 +242,10 @@ namespace FineUIPro.Web.JGZL
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="sender"></param>
|
/// <param name="sender"></param>
|
||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
//protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||||
{
|
//{
|
||||||
BindGrid();
|
// BindGrid();
|
||||||
}
|
//}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 排序
|
#region 排序
|
||||||
|
|
@ -136,10 +254,10 @@ namespace FineUIPro.Web.JGZL
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="sender"></param>
|
/// <param name="sender"></param>
|
||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
//protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||||
{
|
//{
|
||||||
BindGrid();
|
// BindGrid();
|
||||||
}
|
//}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 分页选择下拉改变事件
|
#region 分页选择下拉改变事件
|
||||||
|
|
@ -148,11 +266,11 @@ namespace FineUIPro.Web.JGZL
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="sender"></param>
|
/// <param name="sender"></param>
|
||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
//protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
{
|
//{
|
||||||
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
// Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||||
BindGrid();
|
// BindGrid();
|
||||||
}
|
//}
|
||||||
#endregion
|
#endregion
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
@ -166,7 +284,7 @@ namespace FineUIPro.Web.JGZL
|
||||||
{
|
{
|
||||||
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
||||||
this.InitTreeMenu();
|
this.InitTreeMenu();
|
||||||
BindGrid();
|
PageData();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -174,10 +292,10 @@ namespace FineUIPro.Web.JGZL
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="sender"></param>
|
/// <param name="sender"></param>
|
||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
protected void TextBox_TextChanged(object sender, EventArgs e)
|
//protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||||
{
|
//{
|
||||||
this.BindGrid();
|
// this.BindGrid();
|
||||||
}
|
//}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 打印
|
#region 打印
|
||||||
|
|
@ -189,16 +307,13 @@ namespace FineUIPro.Web.JGZL
|
||||||
protected void btnPrint_Click(object sender, EventArgs e)
|
protected void btnPrint_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
string projectId = this.tvControlItem.SelectedNodeID;
|
string projectId = this.tvControlItem.SelectedNodeID;
|
||||||
|
|
||||||
if (projectId != null)
|
if (projectId != null)
|
||||||
{
|
|
||||||
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
|
||||||
{
|
{
|
||||||
string initTemplatePath = "";
|
string initTemplatePath = "";
|
||||||
string rootPath = Server.MapPath("~/");
|
string rootPath = Server.MapPath("~/");
|
||||||
BLL.Common.FastReportService.ResetData();
|
BLL.Common.FastReportService.ResetData();
|
||||||
|
|
||||||
var report = BLL.ContactService.GetContactById(this.Grid1.SelectedRowID);
|
var report = BLL.ContactService.GetContactByProjectId(projectId,this.drpContactSort.SelectedValue);
|
||||||
if (report != null)
|
if (report != null)
|
||||||
{
|
{
|
||||||
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||||
|
|
@ -217,7 +332,7 @@ namespace FineUIPro.Web.JGZL
|
||||||
keyValuePairs.Add("OpinionsReviewer", report.OpinionsReviewer);
|
keyValuePairs.Add("OpinionsReviewer", report.OpinionsReviewer);
|
||||||
keyValuePairs.Add("OpinionsDate", report.OpinionsDate.HasValue ? string.Format("{0:yyyy年MM月dd日}", report.OpinionsDate) : "");
|
keyValuePairs.Add("OpinionsDate", report.OpinionsDate.HasValue ? string.Format("{0:yyyy年MM月dd日}", report.OpinionsDate) : "");
|
||||||
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
||||||
}
|
|
||||||
initTemplatePath = "File\\Fastreport\\JGZL\\工程联络单.frx";
|
initTemplatePath = "File\\Fastreport\\JGZL\\工程联络单.frx";
|
||||||
if (File.Exists(rootPath + initTemplatePath))
|
if (File.Exists(rootPath + initTemplatePath))
|
||||||
{
|
{
|
||||||
|
|
@ -226,7 +341,7 @@ namespace FineUIPro.Web.JGZL
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
Alert.ShowInTop("请先保存记录!", MessageBoxIcon.Warning);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -248,7 +363,26 @@ namespace FineUIPro.Web.JGZL
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||||
{
|
{
|
||||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ContactEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
|
this.ContactId = string.Empty;
|
||||||
|
this.hdContactSort.Text = string.Empty;
|
||||||
|
this.hdContactSortName.Text = string.Empty;
|
||||||
|
this.drpContactSort.SelectedValue = BLL.Const._Null;
|
||||||
|
int? maxCon = (from x in Funs.DB.JGZL_Contact where x.ProjectId == this.tvControlItem.SelectedNodeID select x.ContactSort).Max();
|
||||||
|
if (maxCon != null)
|
||||||
|
{
|
||||||
|
this.hdContactSort.Text = (maxCon + 1).ToString();
|
||||||
|
this.hdContactSortName.Text = "联络单" + this.hdContactSort.Text;
|
||||||
|
}
|
||||||
|
EmptyText();
|
||||||
|
var project = BLL.Base_ProjectService.GetProjectByProjectId(this.tvControlItem.SelectedNodeID);
|
||||||
|
if (project != null)
|
||||||
|
{
|
||||||
|
int isoCount = (from x in Funs.DB.HJGL_PW_IsoInfo where x.ProjectId == project.ProjectId select x).Count();
|
||||||
|
int jointCount = (from x in Funs.DB.HJGL_PW_JointInfo where x.ProjectId == project.ProjectId select x).Count();
|
||||||
|
this.txtContractNumber.Text = project.ProjectCode;
|
||||||
|
this.txtSubjectMatter.Text = project.ProjectName + ",以下问题请设计单位审核:";
|
||||||
|
this.txtContents.Text = "本次" + project.ProjectName + "于" + string.Format("{0:yyyy年MM月dd日}", project.StartDate) + "开工,到" + string.Format("{0:yyyy年MM月dd日}", project.EndDate) + "施工结束。该项目共计安装管道" + isoCount + "条,管道焊缝共计" + jointCount + "道,已按图纸要求的比例进行焊缝无损检测,检测结果均符合设计规定的合格等级。该项目配套的各类管道组成件、支撑件安装质量均满足设计文件以及标准规范要求。目前,管道系统已完成水压试验及压缩空气吹扫工序,试验压力降、管道洁净度等关键指标均符合标准规范的规定标准并已通过业主方验收。";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -262,121 +396,121 @@ namespace FineUIPro.Web.JGZL
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="sender"></param>
|
/// <param name="sender"></param>
|
||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
//protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||||
{
|
//{
|
||||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_ContactMenuId, BLL.Const.BtnModify))
|
// if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_ContactMenuId, BLL.Const.BtnModify))
|
||||||
{
|
// {
|
||||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
// if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||||
{
|
// {
|
||||||
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
// if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||||
{
|
// {
|
||||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ContactEdit.aspx?contactId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
|
// PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ContactEdit.aspx?contactId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
// Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
// Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
// ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 右键编辑
|
/// 右键编辑
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="sender"></param>
|
/// <param name="sender"></param>
|
||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
protected void btnMenuEdit_Click(object sender, EventArgs e)
|
//protected void btnMenuEdit_Click(object sender, EventArgs e)
|
||||||
{
|
//{
|
||||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_ContactMenuId, BLL.Const.BtnModify))
|
// if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_ContactMenuId, BLL.Const.BtnModify))
|
||||||
{
|
// {
|
||||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
// if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||||
{
|
// {
|
||||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
// Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ContactEdit.aspx?contactId={0}", Grid1.SelectedRowID, "维护 - ")));
|
// PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ContactEdit.aspx?contactId={0}", Grid1.SelectedRowID, "维护 - ")));
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
// Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 右键删除
|
/// 右键删除
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="sender"></param>
|
/// <param name="sender"></param>
|
||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
protected void btnMenuDelete_Click(object sender, EventArgs e)
|
//protected void btnMenuDelete_Click(object sender, EventArgs e)
|
||||||
{
|
//{
|
||||||
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_ContactMenuId, Const.BtnDelete))
|
// if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_ContactMenuId, Const.BtnDelete))
|
||||||
{
|
// {
|
||||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
// if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||||
{
|
// {
|
||||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
// Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
bool isShow = true;
|
// bool isShow = true;
|
||||||
if (Grid1.SelectedRowIndexArray.Length > 1)
|
// if (Grid1.SelectedRowIndexArray.Length > 1)
|
||||||
{
|
// {
|
||||||
isShow = false;
|
// isShow = false;
|
||||||
}
|
// }
|
||||||
bool isDelete = false;
|
// bool isDelete = false;
|
||||||
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
// foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
||||||
{
|
// {
|
||||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
// string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||||
if (judgementDelete(rowID, isShow))
|
// if (judgementDelete(rowID, isShow))
|
||||||
{
|
// {
|
||||||
isDelete = true;
|
// isDelete = true;
|
||||||
BLL.ContactService.DeleteContactById(rowID);
|
// BLL.ContactService.DeleteContactById(rowID);
|
||||||
BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除工程联络单");
|
// BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除工程联络单");
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
if (isDelete)
|
// if (isDelete)
|
||||||
{
|
// {
|
||||||
ShowNotify("删除成功!", MessageBoxIcon.Success);
|
// ShowNotify("删除成功!", MessageBoxIcon.Success);
|
||||||
}
|
// }
|
||||||
this.BindGrid();
|
// this.BindGrid();
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
// Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
#region 判断是否可删除
|
#region 判断是否可删除
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 判断是否可以删除
|
/// 判断是否可以删除
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
private bool judgementDelete(string id, bool isShow)
|
//private bool judgementDelete(string id, bool isShow)
|
||||||
{
|
//{
|
||||||
string content = string.Empty;
|
// string content = string.Empty;
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(content))
|
// if (string.IsNullOrEmpty(content))
|
||||||
{
|
// {
|
||||||
return true;
|
// return true;
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
if (isShow)
|
// if (isShow)
|
||||||
{
|
// {
|
||||||
Alert.ShowInTop(content, MessageBoxIcon.Error);
|
// Alert.ShowInTop(content, MessageBoxIcon.Error);
|
||||||
}
|
// }
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
#endregion
|
#endregion
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
@ -386,11 +520,89 @@ namespace FineUIPro.Web.JGZL
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="sender"></param>
|
/// <param name="sender"></param>
|
||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
//protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||||
|
//{
|
||||||
|
// this.InitTreeMenu();//加载树
|
||||||
|
// this.BindGrid();
|
||||||
|
//}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 提交按钮
|
||||||
|
/// <summary>
|
||||||
|
/// 提交按钮
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnSave_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
this.InitTreeMenu();//加载树
|
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_ContactMenuId, Const.BtnSave))
|
||||||
this.BindGrid();
|
{
|
||||||
|
Model.JGZL_Contact newReport = new Model.JGZL_Contact();
|
||||||
|
newReport.ContractNumber = this.txtContractNumber.Text.Trim();
|
||||||
|
newReport.DeliveryUnit = this.txtDeliveryUnit.Text.Trim();
|
||||||
|
newReport.SubjectMatter = this.txtSubjectMatter.Text.Trim();
|
||||||
|
newReport.Contents = this.txtContents.Text.Trim();
|
||||||
|
newReport.Handler = this.txtHandler.Text.Trim();
|
||||||
|
newReport.HandDate = Funs.GetNewDateTime(this.txtHandDate.Text);
|
||||||
|
newReport.Reviewer = this.txtReviewer.Text.Trim();
|
||||||
|
newReport.ReviewDate = Funs.GetNewDateTime(this.txtReviewDate.Text);
|
||||||
|
newReport.HandlingOpinion = this.txtHandlingOpinion.Text;
|
||||||
|
newReport.OpinionHandler = this.txtOpinionHandler.Text;
|
||||||
|
newReport.OpinionHandDate = Funs.GetNewDateTime(this.txtOpinionHandDate.Text);
|
||||||
|
newReport.OpinionsReviewer = this.txtOpinionsReviewer.Text;
|
||||||
|
newReport.OpinionsDate = Funs.GetNewDateTime(this.txtOpinionsDate.Text);
|
||||||
|
if (!string.IsNullOrEmpty(this.ContactId))
|
||||||
|
{
|
||||||
|
newReport.ContactId = this.ContactId;
|
||||||
|
BLL.ContactService.UpdateContact(newReport);
|
||||||
|
ShowNotify("修改成功!", MessageBoxIcon.Success);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var con = (from x in Funs.DB.JGZL_Contact where x.ProjectId == this.tvControlItem.SelectedNodeID select x).ToList();
|
||||||
|
if (con.Count > 0)
|
||||||
|
{
|
||||||
|
newReport.ContactSort = Funs.GetNewInt(hdContactSort.Text.Trim());
|
||||||
|
newReport.ContactSortName = hdContactSortName.Text.Trim();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
newReport.ContactSort = 1;
|
||||||
|
newReport.ContactSortName = "联络单1";
|
||||||
|
this.hdContactSort.Text = "1";
|
||||||
|
this.hdContactSortName.Text = "联络单1";
|
||||||
|
}
|
||||||
|
newReport.ProjectId = this.tvControlItem.SelectedNodeID;
|
||||||
|
newReport.CompileMan = this.CurrUser.UserId;
|
||||||
|
newReport.CompileDate = DateTime.Now;
|
||||||
|
newReport.ContactId = SQLHelper.GetNewID(typeof(Model.JGZL_Contact));
|
||||||
|
this.ContactId = newReport.ContactId;
|
||||||
|
BLL.ContactService.AddContact(newReport);
|
||||||
|
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||||
|
}
|
||||||
|
//PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||||
|
this.drpContactSort.Items.Clear();
|
||||||
|
this.drpContactSort.DataTextField = "ContactSortName";
|
||||||
|
this.drpContactSort.DataValueField = "ContactSort";
|
||||||
|
this.drpContactSort.DataSource = (from x in Funs.DB.JGZL_Contact where x.ProjectId == this.tvControlItem.SelectedNodeID orderby x.ContactSort select x).ToList();
|
||||||
|
this.drpContactSort.DataBind();
|
||||||
|
this.drpContactSort.SelectedValue = this.hdContactSort.Text.Trim();
|
||||||
|
PageData();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
protected void drpContactSort_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(this.drpContactSort.SelectedValue))
|
||||||
|
{
|
||||||
|
PageData();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -95,6 +95,33 @@ namespace FineUIPro.Web.JGZL
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Toolbar Toolbar2;
|
protected global::FineUIPro.Toolbar Toolbar2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// drpContactSort 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList drpContactSort;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// hdContactSort 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.HiddenField hdContactSort;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// hdContactSortName 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.HiddenField hdContactSortName;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ToolbarFill1 控件。
|
/// ToolbarFill1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -113,6 +140,15 @@ namespace FineUIPro.Web.JGZL
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Button btnAdd;
|
protected global::FineUIPro.Button btnAdd;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnSave 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnSave;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// btnPrint 控件。
|
/// btnPrint 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -123,49 +159,130 @@ namespace FineUIPro.Web.JGZL
|
||||||
protected global::FineUIPro.Button btnPrint;
|
protected global::FineUIPro.Button btnPrint;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Grid1 控件。
|
/// SimpleForm1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Grid Grid1;
|
protected global::FineUIPro.Form SimpleForm1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ToolbarSeparator1 控件。
|
/// txtContractNumber 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
protected global::FineUIPro.TextBox txtContractNumber;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ToolbarText1 控件。
|
/// txtDeliveryUnit 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
protected global::FineUIPro.TextBox txtDeliveryUnit;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ddlPageSize 控件。
|
/// txtSubjectMatter 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
protected global::FineUIPro.TextArea txtSubjectMatter;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Window1 控件。
|
/// txtContents 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Window Window1;
|
protected global::FineUIPro.TextArea txtContents;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtHandler 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtHandler;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtHandDate 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtHandDate;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtReviewer 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtReviewer;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtReviewDate 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtReviewDate;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtHandlingOpinion 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtHandlingOpinion;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOpinionHandler 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtOpinionHandler;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOpinionHandDate 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtOpinionHandDate;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOpinionsReviewer 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtOpinionsReviewer;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOpinionsDate 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtOpinionsDate;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// WindowPrint 控件。
|
/// WindowPrint 控件。
|
||||||
|
|
@ -175,32 +292,5 @@ namespace FineUIPro.Web.JGZL
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Window WindowPrint;
|
protected global::FineUIPro.Window WindowPrint;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Menu1 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.Menu Menu1;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// btnMenuEdit 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// btnMenuDelete 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.MenuButton btnMenuDelete;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -83458,6 +83458,10 @@ namespace Model
|
||||||
|
|
||||||
private System.Nullable<System.DateTime> _CompileDate;
|
private System.Nullable<System.DateTime> _CompileDate;
|
||||||
|
|
||||||
|
private string _ContactSortName;
|
||||||
|
|
||||||
|
private System.Nullable<int> _ContactSort;
|
||||||
|
|
||||||
private EntityRef<Base_Project> _Base_Project;
|
private EntityRef<Base_Project> _Base_Project;
|
||||||
|
|
||||||
private EntityRef<Sys_User> _Sys_User;
|
private EntityRef<Sys_User> _Sys_User;
|
||||||
|
|
@ -83500,6 +83504,10 @@ namespace Model
|
||||||
partial void OnCompileManChanged();
|
partial void OnCompileManChanged();
|
||||||
partial void OnCompileDateChanging(System.Nullable<System.DateTime> value);
|
partial void OnCompileDateChanging(System.Nullable<System.DateTime> value);
|
||||||
partial void OnCompileDateChanged();
|
partial void OnCompileDateChanged();
|
||||||
|
partial void OnContactSortNameChanging(string value);
|
||||||
|
partial void OnContactSortNameChanged();
|
||||||
|
partial void OnContactSortChanging(System.Nullable<int> value);
|
||||||
|
partial void OnContactSortChanged();
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public JGZL_Contact()
|
public JGZL_Contact()
|
||||||
|
|
@ -83857,6 +83865,46 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContactSortName", DbType="NVarChar(50)")]
|
||||||
|
public string ContactSortName
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._ContactSortName;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._ContactSortName != value))
|
||||||
|
{
|
||||||
|
this.OnContactSortNameChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._ContactSortName = value;
|
||||||
|
this.SendPropertyChanged("ContactSortName");
|
||||||
|
this.OnContactSortNameChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContactSort", DbType="Int")]
|
||||||
|
public System.Nullable<int> ContactSort
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._ContactSort;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._ContactSort != value))
|
||||||
|
{
|
||||||
|
this.OnContactSortChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._ContactSort = value;
|
||||||
|
this.SendPropertyChanged("ContactSort");
|
||||||
|
this.OnContactSortChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_Contact_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_Contact_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
|
||||||
public Base_Project Base_Project
|
public Base_Project Base_Project
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue