2023-04-19 合同台账修改
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
LabelAlign="right">
|
||||
</f:TextBox>
|
||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||
|
||||
<f:Button ID="btnSearch" Text="查询" Icon="SystemSearch" runat="server" OnClick="btnSearch_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnPrinter" EnablePostBack="true" runat="server"
|
||||
|
||||
@@ -4,13 +4,201 @@
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>合同基本信息</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div>
|
||||
</div>
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="基本信息" EnableCollapse="true" EnableAjax="false"
|
||||
runat="server" BoxFlex="1" DataKeyNames="ContractId" AllowCellEditing="true" AllowColumnLocking="true"
|
||||
ClicksToEdit="2" DataIDField="ContractId" AllowSorting="true" SortField="ContractNum" OnSort="Grid1_Sort"
|
||||
SortDirection="DESC" EnableColumnLines="true" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
AllowPaging="true" IsDatabasePaging="true" PageSize="10" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick"
|
||||
|
||||
EnableTextSelection="True">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:DropDownList ID="drpDepartId" runat="server" Label="主办部门" LabelAlign="Right" LabelWidth="140px"></f:DropDownList>
|
||||
<f:DropDownList ID="dropState" runat="server" Label="状态" LabelWidth="100px">
|
||||
<f:ListItem Text="-请选择-" Value="null" />
|
||||
<f:ListItem Text="未提交" Value="0" />
|
||||
<f:ListItem Text="已提交" Value="1" />
|
||||
</f:DropDownList>
|
||||
<f:TextBox runat="server" Label="合同名称" ID="txtContractName" EmptyText="输入查询条件" Width="300px" LabelWidth="90px"
|
||||
LabelAlign="right">
|
||||
</f:TextBox>
|
||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnSearch" Text="查询" Icon="SystemSearch" runat="server" OnClick="btnSearch_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnReset" ToolTip="重置" Icon="ArrowUndo" runat="server" OnClick="btnReset_Click" Text="重置">
|
||||
</f:Button>
|
||||
<f:Button ID="btnImport" Text="导入" ToolTip="导入" Icon="PackageIn" runat="server" OnClick="btnImport_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="right">
|
||||
<Items>
|
||||
|
||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||
|
||||
<f:Button ID="btnNew" ToolTip="新增" Icon="Add" EnablePostBack="false" runat="server" Text="新增">
|
||||
</f:Button>
|
||||
<f:Button ID="btnEdit" EnablePostBack="true" runat="server" Hidden="true" Text="编辑" Icon="Pencil"
|
||||
OnClick="btnEdit_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp" Text="导出" Hidden="true"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
</f:Button>
|
||||
<f:Button ID="btnDelete" Text="删除" ToolTip="删除" Icon="Delete" runat="server" OnClick="btnDelete_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfPageIndex" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="true">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField ColumnID="EPCCode" EnableLock="true" Locked="true" DataField="EPCCode" Width="120px" FieldType="String" HeaderText="总承包合同编号" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ProjectName" EnableLock="true" Locked="true" DataField="ProjectName" Width="180px" FieldType="String" HeaderText="项目名称" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ProjectCode" EnableLock="true" Locked="true" DataField="ProjectCode" Width="180px" FieldType="String" HeaderText="项目代码" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContractName" EnableLock="true" Locked="true" DataField="ContractName" Width="180px" FieldType="String" HeaderText="合同名称" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContractNum" EnableLock="true" Locked="true" DataField="ContractNum" Width="180px" FieldType="String" HeaderText="合同编号" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:TemplateField ColumnID="States" Width="180px" HeaderText="状态" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lbImageUrl" runat="server" Text='<%# ConvertState(Eval("States")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField ColumnID="Parties" DataField="Parties" Width="120px" FieldType="String" HeaderText="签约方" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Currency" DataField="Currency" Width="100px" FieldType="String" HeaderText="币种" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContractAmount" DataField="ContractAmount" Width="120px" FieldType="String" HeaderText="合同金额" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="DepartName" DataField="DepartName" Width="120px" FieldType="String" HeaderText="主办部门" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Agent" DataField="Agent" Width="120px" FieldType="String" HeaderText="经办人" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContractType" DataField="ContractType" Width="150px" FieldType="String" HeaderText="合同类型" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Status" DataField="Status" Width="150px" FieldType="String" HeaderText="合同状态" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Retentionmoney" DataField="Retentionmoney" Width="150px" FieldType="String" HeaderText="质保金" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="OpeningBank_TT" DataField="OpeningBank_TT" Width="150px" FieldType="String" HeaderText="开户行-电汇" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="BankAccount_TT" DataField="BankAccount_TT" Width="150px" FieldType="String" HeaderText="银行账号-电汇" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="OpeningBank_Electrophore" DataField="OpeningBank_Electrophore" Width="150px" FieldType="String" HeaderText="开户行-电承" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="BankAccount_Electrophore" DataField="BankAccount_Electrophore" Width="150px" FieldType="String" HeaderText="银行账号-电承" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="LineNumber_Electrophore" DataField="LineNumber_Electrophore" Width="150px" FieldType="String" HeaderText="行号-电承" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="ContactUnitOfPartyA" DataField="ContactUnitOfPartyA" Width="150px" FieldType="String" HeaderText="甲方联系单位" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContactPersonOfPartyA" DataField="ContactPersonOfPartyA" Width="150px" FieldType="String" HeaderText="甲方联系人" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContactPersonOfPartyB" DataField="ContactPersonOfPartyB" Width="150px" FieldType="String" HeaderText="乙方联系人" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContactPersonPhoneOfPartyB" DataField="ContactPersonPhoneOfPartyB" Width="150px" FieldType="String" HeaderText="乙方联系人电话" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContactPersonEmailOfPartyB" DataField="ContactPersonEmailOfPartyB" Width="150px" FieldType="String" HeaderText="乙方联系人邮箱" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContractAmountExcludingTax" DataField="ContractAmountExcludingTax" Width="150px" FieldType="String" HeaderText="合同不含税金额" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="PriceMethod" DataField="PriceMethod" Width="150px" FieldType="String" HeaderText="计价方式" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="SignedOnDate" DataField="SignedOnDate" Width="150px" FieldType="String" HeaderText="签订日期" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContractStartDate" DataField="ContractStartDate" Width="150px" FieldType="String" HeaderText="合同起始日期" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContractEndDate" DataField="ContractEndDate" Width="150px" FieldType="String" HeaderText="合同终止日期" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="PricingBasis" DataField="PricingBasis" Width="150px" FieldType="String" HeaderText="计价依据" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="SubcontractingMethod" DataField="SubcontractingMethod" Width="150px" FieldType="String" HeaderText="分包模式" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="IsItACentralizedPurchaseSupplier" DataField="IsItACentralizedPurchaseSupplier" Width="150px" FieldType="String" HeaderText="乙方是否为集采供应商/分包商" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
|
||||
<f:LinkButtonField HeaderText="附件" ColumnID="download" Width="60px" Icon="ArrowDown" CommandName="download" />
|
||||
|
||||
</Columns>
|
||||
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<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:ListItem Text="所有行" Value="100000" />
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="基本信息" Hidden="true" EnableIFrame="true" EnableMaximize="true" Maximized="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true"
|
||||
Width="1000px" Height="420px">
|
||||
</f:Window>
|
||||
<f:Window ID="Window2" Title="附件上传" Hidden="true" EnableIFrame="true"
|
||||
EnableMaximize="true" Target="Top" EnableResize="false" runat="server"
|
||||
IsModal="true" Width="1010px" Height="660px">
|
||||
</f:Window>
|
||||
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
using System;
|
||||
using BLL;
|
||||
using FineUIPro.Web.PHTGL.ContractCompile;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
@@ -7,11 +11,354 @@ using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.PHTGL.Filing
|
||||
{
|
||||
public partial class ContractStandingBook : System.Web.UI.Page
|
||||
public partial class ContractStandingBook : PageBase
|
||||
{
|
||||
#region 加载
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
GetButtonPower();
|
||||
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||
BLL.DepartService.InitDepartDropDownList(this.drpDepartId, true);
|
||||
btnNew.OnClientClick = Window1.GetShowReference("ContractStandingBookEdit.aspx", "基本信息") + "return false;";
|
||||
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 数据绑定
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
var model = new Model.PHTGL_ContractStandingBook();
|
||||
if (drpDepartId.SelectedValue!=Const._Null)
|
||||
{
|
||||
model.DepartId = drpDepartId.SelectedValue;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtContractName.Text.Trim()))
|
||||
{
|
||||
model.ContractName = txtContractName.Text.Trim();
|
||||
}
|
||||
if (dropState.SelectedValue != Const._Null)
|
||||
{
|
||||
model.States = Funs.GetNewInt(dropState.SelectedValue);
|
||||
}
|
||||
var list= BLL.ContractStandingBookService.GetPHTGL_ContractStandingBookByModle( model);
|
||||
//var list= BLL.ContractStandingBookService.getListData( model, Grid1);
|
||||
|
||||
Grid1.RecordCount = list.Count;
|
||||
var table = this.GetPagedDataTable(Grid1, list);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 分页 排序
|
||||
/// <summary>
|
||||
/// 改变索引事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
#region 关闭弹出窗体
|
||||
/// <summary>
|
||||
/// 关闭弹出窗体
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
/// </summary>
|
||||
/// <param name="button"></param>
|
||||
/// <returns></returns>
|
||||
private void GetButtonPower()
|
||||
{
|
||||
if (Request.Params["value"] == "0")
|
||||
{
|
||||
return;
|
||||
}
|
||||
var buttonList = CommonService.GetAllButtonList(CurrUser.LoginProjectId, CurrUser.PersonId, Const.ContractStandingBookMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
if (buttonList.Contains(Const.BtnAdd))
|
||||
{
|
||||
btnNew.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(Const.BtnModify))
|
||||
{
|
||||
btnEdit.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(Const.BtnDelete))
|
||||
{
|
||||
btnDelete.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(Const.BtnIn))
|
||||
{
|
||||
btnImport.Hidden = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region 查询
|
||||
/// <summary>
|
||||
/// 查询按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtContractName.Text = string.Empty;
|
||||
drpDepartId.SelectedValue = Const._Null;
|
||||
dropState.SelectedValue = Const._Null;
|
||||
//txtSubConstruction.Text = string.Empty;
|
||||
}
|
||||
|
||||
public string ConvertState(object State)
|
||||
{
|
||||
string StateName = string.Empty;
|
||||
if (State != null && !string.IsNullOrEmpty(State.ToString()))
|
||||
{
|
||||
switch (State.ToString())
|
||||
{
|
||||
case "0":
|
||||
StateName = "未提交";
|
||||
break;
|
||||
case "1":
|
||||
StateName = "已提交";
|
||||
break;
|
||||
default:
|
||||
StateName = "未提交";
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
StateName = "未提交";
|
||||
}
|
||||
return StateName;
|
||||
}
|
||||
#region 编辑
|
||||
/// <summary>
|
||||
/// 双击事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||
{
|
||||
this.EditData();
|
||||
}
|
||||
protected void btnImport_Click(object sender, EventArgs e)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("ContractStandingBookIn.aspx?", "导入 - ")));
|
||||
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 右键编辑事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.EditData();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 编辑数据方法
|
||||
/// </summary>
|
||||
private void EditData()
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string id = Grid1.SelectedRowID;
|
||||
var model = BLL.ContractStandingBookService.GetContractById(id);
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ContractStandingBookEdit.aspx?ContractId={0}", id, "编辑 - ")));
|
||||
|
||||
}
|
||||
}
|
||||
protected void btnEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
EditData();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 删除
|
||||
|
||||
protected void btnDelete_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length > 0)
|
||||
{
|
||||
bool isShow = false;
|
||||
if (Grid1.SelectedRowIndexArray.Length == 1)
|
||||
{
|
||||
isShow = true;
|
||||
}
|
||||
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
||||
{
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
if (this.judgementDelete(rowID, isShow))
|
||||
{
|
||||
var p = BLL.ContractStandingBookService.GetContractById(rowID);
|
||||
if (p != null)
|
||||
{
|
||||
if (p.States == 1)
|
||||
{
|
||||
ShowNotify(message: "已提交,删除失败!", MessageBoxIcon.Error);
|
||||
return;
|
||||
|
||||
}
|
||||
// BLL.LogService.AddSys_Log(this.CurrUser, p.ContractName, p.ContractId, BLL.Const.ContractMenuId, BLL.Const.BtnDelete);
|
||||
BLL.ContractStandingBookService.DeleteContractById(rowID);
|
||||
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID , Const.ContractStandingBookMenuId);
|
||||
// AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-BidNotice", Const.ProjectBidDocumentsStandingBookMenuId);
|
||||
// AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-ActionPlan", Const.ProjectBidDocumentsStandingBookMenuId);
|
||||
// AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-BidDocuments", Const.ProjectBidDocumentsStandingBookMenuId);
|
||||
// AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-ApprovePersonForm", Const.ProjectBidDocumentsStandingBookMenuId);
|
||||
// AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-SetSubReview", Const.ProjectBidDocumentsStandingBookMenuId);
|
||||
// AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-ShortListApproval", Const.ProjectBidDocumentsStandingBookMenuId);
|
||||
}
|
||||
}
|
||||
}
|
||||
BindGrid();
|
||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
|
||||
/// <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);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 导出按钮
|
||||
/// 导出按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnOut_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.ClearContent();
|
||||
string filename = Funs.GetNewFileName();
|
||||
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("施工分包合同管理台账" + filename, System.Text.Encoding.UTF8) + ".xls");
|
||||
Response.ContentType = "application/excel";
|
||||
Response.ContentEncoding = System.Text.Encoding.UTF8;
|
||||
//this.Grid1.PageSize = this.;
|
||||
BindGrid();
|
||||
Response.Write(GetGridTableHtml(Grid1));
|
||||
Response.End();
|
||||
}
|
||||
|
||||
//#pragma warning disable CS0108 // “PersonList.GetGridTableHtml(Grid)”隐藏继承的成员“PageBase.GetGridTableHtml(Grid)”。如果是有意隐藏,请使用关键字 new。
|
||||
// /// <summary>
|
||||
// /// 导出方法
|
||||
// /// </summary>
|
||||
// /// <param name="grid"></param>
|
||||
// /// <returns></returns>
|
||||
// private string GetGridTableHtml(Grid grid)
|
||||
//#pragma warning restore CS0108 // “PersonList.GetGridTableHtml(Grid)”隐藏继承的成员“PageBase.GetGridTableHtml(Grid)”。如果是有意隐藏,请使用关键字 new。
|
||||
// {
|
||||
// StringBuilder sb = new StringBuilder();
|
||||
// sb.Append("<meta http-equiv=\"content-type\" content=\"application/excel; charset=UTF-8\"/>");
|
||||
// sb.Append("<table cellspacing=\"0\" rules=\"all\" border=\"1\" style=\"border-collapse:collapse;\">");
|
||||
// sb.Append("<tr>");
|
||||
// foreach (GridColumn column in grid.Columns)
|
||||
// {
|
||||
// sb.AppendFormat("<td>{0}</td>", column.HeaderText);
|
||||
// }
|
||||
// sb.Append("</tr>");
|
||||
// foreach (GridRow row in grid.Rows)
|
||||
// {
|
||||
// sb.Append("<tr>");
|
||||
// foreach (GridColumn column in grid.Columns)
|
||||
// {
|
||||
// string html = row.Values[column.ColumnIndex].ToString();
|
||||
// if (column.ColumnID == "tfNumber")
|
||||
// {
|
||||
// html = (row.FindControl("labNumber") as AspNet.Label).Text;
|
||||
// }
|
||||
// if (column.ColumnID == "tfI")
|
||||
// {
|
||||
// html = (row.FindControl("lbI") as AspNet.Label).Text;
|
||||
// }
|
||||
// //sb.AppendFormat("<td>{0}</td>", html);
|
||||
// sb.AppendFormat("<td style='vnd.ms-excel.numberformat:@;width:140px;'>{0}</td>", html);
|
||||
// }
|
||||
|
||||
// sb.Append("</tr>");
|
||||
// }
|
||||
|
||||
// sb.Append("</table>");
|
||||
|
||||
// return sb.ToString();
|
||||
// }
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码是由工具生成的。
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.PHTGL.Filing
|
||||
@@ -22,5 +22,203 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// drpDepartId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpDepartId;
|
||||
|
||||
/// <summary>
|
||||
/// dropState 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList dropState;
|
||||
|
||||
/// <summary>
|
||||
/// txtContractName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContractName;
|
||||
|
||||
/// <summary>
|
||||
/// btnSearch 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSearch;
|
||||
|
||||
/// <summary>
|
||||
/// btnReset 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnReset;
|
||||
|
||||
/// <summary>
|
||||
/// btnImport 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnImport;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
/// <summary>
|
||||
/// btnEdit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnEdit;
|
||||
|
||||
/// <summary>
|
||||
/// btnOut 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnOut;
|
||||
|
||||
/// <summary>
|
||||
/// btnDelete 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnDelete;
|
||||
|
||||
/// <summary>
|
||||
/// lblPageIndex 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblPageIndex;
|
||||
|
||||
/// <summary>
|
||||
/// lbImageUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lbImageUrl;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// Window2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,254 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ContractStandingBookEdit.aspx.cs" Inherits="FineUIPro.Web.PHTGL.Filing.ContractStandingBookEdit" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head runat="server">
|
||||
<title>系统环境设置</title>
|
||||
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
<style type="text/css">
|
||||
.f-grid-row .f-grid-cell-inner {
|
||||
white-space: normal;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.LabelColor {
|
||||
color: Red;
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
.lab {
|
||||
font-weight: bolder;
|
||||
background-color: aliceblue;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Form4" />
|
||||
<f:Form ID="Form4" ShowBorder="false" ShowHeader="false" AutoScroll="true" Title="审批信息"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Items>
|
||||
<f:Panel ID="Panel2" runat="server" ShowHeader="false" ShowBorder="false" ColumnWidth="100%" AutoScroll="true" MarginRight="5px" BoxConfigPadding="10px">
|
||||
<Items>
|
||||
|
||||
<f:TabStrip ID="TabStrip1" CssClass="f-tabstrip-theme-simple" Height="700" ShowBorder="true" AutoScroll="true"
|
||||
TabPosition="Top" MarginBottom="5px" EnableTabCloseMenu="false" runat="server" BoxConfigPadding="5px"
|
||||
ActiveTabIndex="0">
|
||||
<Tabs>
|
||||
<f:Tab ID="Tab1" Title="基本信息" BodyPadding="5px" Layout="Fit" IconFont="Bookmark" runat="server">
|
||||
<Items>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true" Title="基本信息"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtEPCCode" runat="server" Label="总承包合同编号" ShowRedStar="true" Required="true" LabelAlign="Right" AutoPostBack="true" LabelWidth="140px"></f:TextBox>
|
||||
<f:TextBox ID="txtProjectName" runat="server" Label="项目名称" ShowRedStar="true" Required="true" LabelAlign="Right" LabelWidth="140px"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtProjectCode" runat="server" Label="项目代码" ShowRedStar="true" Required="true" LabelAlign="Right" LabelWidth="140px"></f:TextBox>
|
||||
<f:TextBox ID="txtContractName" runat="server" Label="合同名称" ShowRedStar="true" Required="true" LabelAlign="Right" MaxLength="200" LabelWidth="140px"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtContractNum" runat="server" Label="合同编号" ShowRedStar="true" Required="true" LabelAlign="Right" MaxLength="30" LabelWidth="140px"></f:TextBox>
|
||||
<f:TextBox ID="txtContractAttribute" runat="server" Label="合同属性" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtContractType" runat="server" Label="合同类型" ShowRedStar="true" Required="true" LabelAlign="Right" MaxLength="30" LabelWidth="140px"></f:TextBox>
|
||||
<f:TextBox ID="txtStatus" runat="server" Label="合同状态" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtParties" runat="server" Label="签约方" ShowRedStar="true" Required="true" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
<f:TextBox ID="txtBuildUnit" runat="server" Label="建设单位" ShowRedStar="true" Required="true" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtCurrency" runat="server" Label="币种" ShowRedStar="true" Required="true" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
|
||||
<f:TextBox ID="txtContractAmount" runat="server" Label="合同金额" ShowRedStar="true" Required="true" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="25% 25% 50%">
|
||||
<Items>
|
||||
<f:TextBox ID="txtContractAmountExcludingTax" runat="server" Label="合同不含税金额" LabelWidth="140px" LabelAlign="Right" ShowRedStar="true" Required="true" ></f:TextBox>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtSignedOnDate" runat="server" Label="签订日期" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
<f:TextBox ID="txtIsItACentralizedPurchaseSupplier" runat="server" Label="乙方是否为集采供应商" ShowRedStar="true" Required="true" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtContractStartDate" runat="server" Label="合同起始日期" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
<f:TextBox ID="txtContractEndDate" runat="server" Label="合同终止日期" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtConfirmWay" runat="server" Label="确认方式" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
<f:TextBox ID="txtSubcontractingMethod" runat="server" Label="分包模式" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow ColumnWidths="50% 50%">
|
||||
<Items>
|
||||
<f:TextBox ID="txtPriceMethod" runat="server" Label="计价方式" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
<f:TextBox ID="txtPricingBasis" runat="server" Label="计价依据" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtDepart" runat="server" Label="主办部门" LabelAlign="Right" MaxLength="100" Readonly="true" LabelWidth="140px"></f:TextBox>
|
||||
<f:TextBox ID="txtAgent" runat="server" Label="经办人" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtContactUnitOfPartyA" runat="server" Label="甲方联系单位" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
<f:TextBox ID="txtContactPersonOfPartyA" runat="server" Label="甲方联系人" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtContactPersonOfPartyB" runat="server" Label="乙方联系人" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtContactPersonPhoneOfPartyB" runat="server" Label="乙方联系人电话" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
<f:TextBox ID="txtContactPersonEmailOfPartyB" runat="server" Label="乙方联系人邮箱" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtOpeningBank_TT" runat="server" Label="开户行-电汇" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
<f:TextBox ID="txtOpeningBank_Electrophore" runat="server" Label="开户行-电承" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtBankAccount_TT" runat="server" Label="银行账号-电汇" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
<f:TextBox ID="txtBankAccount_Electrophore" runat="server" Label="银行账号-电承" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtRetentionmoney" runat="server" Label="质保金" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
<f:TextBox ID="txtLineNumber_Electrophore" runat="server" Label="行号-电承" LabelAlign="Right" MaxLength="100" LabelWidth="140px"></f:TextBox>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<%-- <f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="NoUseStandardtxtRemark" runat="server" Label="合同文本" LabelAlign="Right" LabelWidth="140px" ColumnWidth="100%" ShowRedStar="true" Required="true" Hidden="true" AutoGrowHeightMax="50px" AutoGrowHeight="true"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>--%>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel17" Layout="Column" ShowHeader="false" ShowBorder="false" runat="server">
|
||||
<Items>
|
||||
<f:Label runat="server" ID="Label" Text=" " LabelAlign="Right" Width="140px"></f:Label>
|
||||
<f:Button ID="btnAttachUrl" Text="上传合同文件" ToolTip="附件" Icon="TableCell" runat="server"
|
||||
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar5" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
|
||||
</Items>
|
||||
|
||||
</f:Tab>
|
||||
|
||||
</Tabs>
|
||||
</f:TabStrip>
|
||||
|
||||
</Items>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
|
||||
|
||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnSubmit" Icon="SystemSaveNew" runat="server" Text="提交" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSubmit_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Form>
|
||||
|
||||
<f:Window ID="Window1" Title="流程步骤设置" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
|
||||
Width="1000px" Height="620">
|
||||
</f:Window>
|
||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
function onGridDataLoad(event) {
|
||||
this.mergeColumns(['FlowStep', 'GroupNum'], { depends: true });
|
||||
}
|
||||
// 同时只能选中一项
|
||||
function onCheckBoxListChange(event, checkbox, isChecked) {
|
||||
var me = this;
|
||||
|
||||
// 当前操作是:选中
|
||||
if (isChecked) {
|
||||
// 仅选中这一项
|
||||
me.setValue(checkbox.getInputValue());
|
||||
}
|
||||
|
||||
|
||||
__doPostBack('', 'CheckBoxList1Change');
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,295 @@
|
||||
using BLL;
|
||||
using Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using FineUIPro.Web.PHTGL.ContractCompile;
|
||||
|
||||
namespace FineUIPro.Web.PHTGL.Filing
|
||||
{
|
||||
public partial class ContractStandingBookEdit : PageBase
|
||||
{
|
||||
#region 定义属性
|
||||
// public Dictionary<string, string> myDictionary = new Dictionary<string, string>();
|
||||
|
||||
public Dictionary<string, string> myDictionary
|
||||
{
|
||||
get
|
||||
{
|
||||
return (Dictionary<string, string>)ViewState["myDictionary"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["myDictionary"] = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 合同基本信息主键
|
||||
/// </summary>
|
||||
public string ContractId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ContractId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ContractId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public bool IsCreate
|
||||
{
|
||||
get
|
||||
{
|
||||
return (bool)ViewState["IsCreate"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["IsCreate"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
ContractId = Request.Params["ContractId"];
|
||||
IsCreate = true;
|
||||
if (!string.IsNullOrEmpty(Request.Params["ContractId"]))
|
||||
{
|
||||
IsCreate = false;
|
||||
}
|
||||
this.GetButtonPower();
|
||||
|
||||
BindingTab1();
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region 基本信息
|
||||
|
||||
void BindingTab1()
|
||||
{
|
||||
|
||||
string contractId = Request.Params["ContractId"];
|
||||
if (!string.IsNullOrEmpty(contractId))
|
||||
{
|
||||
Model.PHTGL_ContractStandingBook contract = BLL.ContractStandingBookService.GetContractById(contractId);
|
||||
if (contract != null)
|
||||
{
|
||||
|
||||
txtEPCCode.Text = contract.EPCCode;
|
||||
txtContractAttribute.Text = contract.ContractAttribute;
|
||||
this.txtContractName.Text = contract.ContractName;
|
||||
this.txtContractNum.Text = contract.ContractNum;
|
||||
this.txtProjectName.Text = contract.ProjectName;
|
||||
this.txtProjectCode.Text = contract.ProjectCode;
|
||||
this.txtParties.Text = contract.Parties;
|
||||
this.txtBuildUnit.Text = contract.BuildUnit;
|
||||
this.txtCurrency.Text= contract.Currency;
|
||||
txtOpeningBank_TT.Text = contract.OpeningBank_TT;
|
||||
txtOpeningBank_Electrophore.Text = contract.OpeningBank_Electrophore;
|
||||
txtBankAccount_TT.Text = contract.BankAccount_TT;
|
||||
txtBankAccount_Electrophore.Text = contract.BankAccount_Electrophore;
|
||||
txtLineNumber_Electrophore.Text = contract.LineNumber_Electrophore;
|
||||
txtRetentionmoney.Text = contract.Retentionmoney;
|
||||
txtContactUnitOfPartyA.Text = contract.ContactUnitOfPartyA;
|
||||
txtContactPersonOfPartyA.Text = contract.ContactPersonOfPartyA;
|
||||
txtContactPersonOfPartyB.Text = contract.ContactPersonOfPartyB;
|
||||
txtContactPersonPhoneOfPartyB.Text = contract.ContactPersonPhoneOfPartyB;
|
||||
txtContactPersonEmailOfPartyB.Text = contract.ContactPersonEmailOfPartyB;
|
||||
txtContractAmountExcludingTax.Text = contract.ContractAmountExcludingTax.ToString();
|
||||
txtPriceMethod.Text = contract.PriceMethod;
|
||||
txtSignedOnDate.Text = contract.SignedOnDate.ToString();
|
||||
txtContractStartDate.Text = contract.ContractStartDate.ToString();
|
||||
txtContractEndDate.Text = contract.ContractEndDate.ToString();
|
||||
txtPricingBasis.Text = contract.PricingBasis;
|
||||
txtStatus.Text = contract.Status;
|
||||
txtSubcontractingMethod.Text = contract.SubcontractingMethod;
|
||||
txtIsItACentralizedPurchaseSupplier.Text = contract.IsItACentralizedPurchaseSupplier.ToString();
|
||||
this.txtAgent.Text = contract.Agent;
|
||||
this.txtContractType.Text = contract.ContractType;
|
||||
this.txtConfirmWay.Text= contract.ConfirmWay;
|
||||
this.txtDepart.Text=BLL.DepartService.getDepartNameById(contract.DepartId);
|
||||
this.txtContractAmount.Text = contract.ContractAmount.ToString();
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtAgent.Text = this.CurrUser.PersonName;
|
||||
this.txtDepart.Text = BLL.DepartService.getDepartNameById(CurrUser.DepartId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#region 附件上传
|
||||
/// <summary>
|
||||
/// 上传附件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttachUrl_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(ContractId))
|
||||
{
|
||||
ContractId = Guid.NewGuid().ToString();
|
||||
}
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/ContractStandingBook&menuId={1}", this.ContractId, BLL.Const.ContractStandingBookMenuId)));
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
Save(Const.BtnSave);
|
||||
|
||||
// PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
|
||||
void Save(string Type)
|
||||
{
|
||||
Model.PHTGL_ContractStandingBook contract = new Model.PHTGL_ContractStandingBook();
|
||||
|
||||
contract.EPCCode = this.txtEPCCode.Text;
|
||||
contract.ContractAttribute = this.txtContractAttribute.Text;
|
||||
contract.ContractName = this.txtContractName.Text;
|
||||
contract.ContractNum = this.txtContractNum.Text;
|
||||
contract.ProjectName = this.txtProjectName.Text;
|
||||
contract.ProjectCode = this.txtProjectCode.Text;
|
||||
contract.Parties = this.txtParties.Text;
|
||||
contract.BuildUnit = this.txtBuildUnit.Text;
|
||||
contract.Currency = this.txtCurrency.Text;
|
||||
contract.OpeningBank_TT = this.txtOpeningBank_TT.Text;
|
||||
contract.OpeningBank_Electrophore = this.txtOpeningBank_Electrophore.Text;
|
||||
contract.BankAccount_TT = this.txtBankAccount_TT.Text;
|
||||
contract.BankAccount_Electrophore = this.txtBankAccount_Electrophore.Text;
|
||||
contract.LineNumber_Electrophore = this.txtLineNumber_Electrophore.Text;
|
||||
contract.Retentionmoney = this.txtRetentionmoney.Text;
|
||||
contract.ContactUnitOfPartyA = this.txtContactUnitOfPartyA.Text;
|
||||
contract.ContactPersonOfPartyA = this.txtContactPersonOfPartyA.Text;
|
||||
contract.ContactPersonOfPartyB = this.txtContactPersonOfPartyB.Text;
|
||||
contract.ContactPersonPhoneOfPartyB = this.txtContactPersonPhoneOfPartyB.Text;
|
||||
contract.ContactPersonEmailOfPartyB = this.txtContactPersonEmailOfPartyB.Text;
|
||||
contract.ContractAmountExcludingTax = this.txtContractAmountExcludingTax.Text;
|
||||
contract.PriceMethod = this.txtPriceMethod.Text;
|
||||
contract.SignedOnDate = this.txtSignedOnDate.Text;
|
||||
contract.ContractStartDate = this.txtContractStartDate.Text;
|
||||
contract.ContractEndDate = this.txtContractEndDate.Text;
|
||||
contract.PricingBasis = this.txtPricingBasis.Text;
|
||||
contract.Status = this.txtStatus.Text;
|
||||
contract.SubcontractingMethod = this.txtSubcontractingMethod.Text;
|
||||
contract.IsItACentralizedPurchaseSupplier = this.txtIsItACentralizedPurchaseSupplier.Text;
|
||||
contract.Agent = this.txtAgent.Text;
|
||||
contract.ContractType = this.txtContractType.Text;
|
||||
contract.ConfirmWay = this.txtConfirmWay.Text;
|
||||
contract.DepartId = this.CurrUser.DepartId;
|
||||
contract.ContractAmount = this.txtContractAmount.Text;
|
||||
if (Type==Const.BtnSubmit)
|
||||
{
|
||||
contract.States = 1;
|
||||
|
||||
}
|
||||
else if (Type == Const.BtnSave)
|
||||
{
|
||||
contract.States = 0;
|
||||
|
||||
}
|
||||
contract.CreateDate = DateTime.Now.ToString();
|
||||
|
||||
contract.CreatUser = this.CurrUser.PersonId;
|
||||
|
||||
if (!string.IsNullOrEmpty(ContractId))
|
||||
{
|
||||
var con = ContractStandingBookService.GetContractById(ContractId);
|
||||
if (con != null)
|
||||
{
|
||||
contract.ContractId = ContractId;
|
||||
contract.ApproveState = con.ApproveState;
|
||||
contract.CreatUser = this.CurrUser.PersonId;
|
||||
contract.CreateDate = DateTime.Now.ToString();
|
||||
BLL.ContractStandingBookService.UpdateContract(contract);
|
||||
ShowNotify("修改成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
else
|
||||
{
|
||||
contract.ContractId = ContractId;
|
||||
contract.ApproveState = Const.ContractCreating;
|
||||
contract.CreatUser = this.CurrUser.PersonId;
|
||||
ContractId = contract.ContractId;
|
||||
contract.CreateDate = DateTime.Now.ToString();
|
||||
BLL.ContractStandingBookService.AddContract(contract);
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
contract.ContractId = SQLHelper.GetNewID(typeof(Model.PHTGL_ContractStandingBook));
|
||||
contract.ApproveState = Const.ContractCreating;
|
||||
contract.CreatUser = this.CurrUser.PersonId;
|
||||
contract.CreateDate = DateTime.Now.ToString();
|
||||
ContractId = contract.ContractId;
|
||||
BLL.ContractStandingBookService.AddContract(contract);
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
protected void btnSubmit_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!BLL.AttachFileService.Getfile(ContractId , BLL.Const.ContractStandingBookMenuId))
|
||||
{
|
||||
ShowNotify("未上传合同文件,无法提交!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
Save(Const.BtnSubmit);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
/// </summary>
|
||||
/// <param name="button"></param>
|
||||
/// <returns></returns>
|
||||
private void GetButtonPower()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(ContractId))
|
||||
{
|
||||
var q = BLL.ContractStandingBookService.GetContractById(ContractId);
|
||||
if (q != null && q.States == 1)
|
||||
{
|
||||
btnSave.Hidden = true;
|
||||
btnSubmit.Hidden = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
// ShowNotify("窗体被关闭了。参数:" + (String.IsNullOrEmpty(e.CloseArgument) ? "无" : e.CloseArgument));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,476 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.PHTGL.Filing
|
||||
{
|
||||
|
||||
|
||||
public partial class ContractStandingBookEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Form4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form4;
|
||||
|
||||
/// <summary>
|
||||
/// Panel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel2;
|
||||
|
||||
/// <summary>
|
||||
/// TabStrip1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TabStrip TabStrip1;
|
||||
|
||||
/// <summary>
|
||||
/// Tab1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tab Tab1;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// txtEPCCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtEPCCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtProjectName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtProjectName;
|
||||
|
||||
/// <summary>
|
||||
/// txtProjectCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtProjectCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtContractName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContractName;
|
||||
|
||||
/// <summary>
|
||||
/// txtContractNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContractNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtContractAttribute 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContractAttribute;
|
||||
|
||||
/// <summary>
|
||||
/// txtContractType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContractType;
|
||||
|
||||
/// <summary>
|
||||
/// txtStatus 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtStatus;
|
||||
|
||||
/// <summary>
|
||||
/// txtParties 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtParties;
|
||||
|
||||
/// <summary>
|
||||
/// txtBuildUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtBuildUnit;
|
||||
|
||||
/// <summary>
|
||||
/// txtCurrency 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCurrency;
|
||||
|
||||
/// <summary>
|
||||
/// txtContractAmount 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContractAmount;
|
||||
|
||||
/// <summary>
|
||||
/// txtContractAmountExcludingTax 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContractAmountExcludingTax;
|
||||
|
||||
/// <summary>
|
||||
/// txtSignedOnDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSignedOnDate;
|
||||
|
||||
/// <summary>
|
||||
/// txtIsItACentralizedPurchaseSupplier 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtIsItACentralizedPurchaseSupplier;
|
||||
|
||||
/// <summary>
|
||||
/// txtContractStartDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContractStartDate;
|
||||
|
||||
/// <summary>
|
||||
/// txtContractEndDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContractEndDate;
|
||||
|
||||
/// <summary>
|
||||
/// txtConfirmWay 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtConfirmWay;
|
||||
|
||||
/// <summary>
|
||||
/// txtSubcontractingMethod 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSubcontractingMethod;
|
||||
|
||||
/// <summary>
|
||||
/// txtPriceMethod 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPriceMethod;
|
||||
|
||||
/// <summary>
|
||||
/// txtPricingBasis 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPricingBasis;
|
||||
|
||||
/// <summary>
|
||||
/// txtDepart 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDepart;
|
||||
|
||||
/// <summary>
|
||||
/// txtAgent 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAgent;
|
||||
|
||||
/// <summary>
|
||||
/// txtContactUnitOfPartyA 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContactUnitOfPartyA;
|
||||
|
||||
/// <summary>
|
||||
/// txtContactPersonOfPartyA 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContactPersonOfPartyA;
|
||||
|
||||
/// <summary>
|
||||
/// txtContactPersonOfPartyB 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContactPersonOfPartyB;
|
||||
|
||||
/// <summary>
|
||||
/// txtContactPersonPhoneOfPartyB 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContactPersonPhoneOfPartyB;
|
||||
|
||||
/// <summary>
|
||||
/// txtContactPersonEmailOfPartyB 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContactPersonEmailOfPartyB;
|
||||
|
||||
/// <summary>
|
||||
/// txtOpeningBank_TT 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtOpeningBank_TT;
|
||||
|
||||
/// <summary>
|
||||
/// txtOpeningBank_Electrophore 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtOpeningBank_Electrophore;
|
||||
|
||||
/// <summary>
|
||||
/// txtBankAccount_TT 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtBankAccount_TT;
|
||||
|
||||
/// <summary>
|
||||
/// txtBankAccount_Electrophore 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtBankAccount_Electrophore;
|
||||
|
||||
/// <summary>
|
||||
/// txtRetentionmoney 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtRetentionmoney;
|
||||
|
||||
/// <summary>
|
||||
/// txtLineNumber_Electrophore 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtLineNumber_Electrophore;
|
||||
|
||||
/// <summary>
|
||||
/// Panel17 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel17;
|
||||
|
||||
/// <summary>
|
||||
/// Label 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label;
|
||||
|
||||
/// <summary>
|
||||
/// btnAttachUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAttachUrl;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar5;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnSubmit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSubmit;
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,178 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ContractStandingBookIn.aspx.cs" Inherits="FineUIPro.Web.PHTGL.Filing.ContractStandingBookIn" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:HiddenField ID="hdFileName" runat="server">
|
||||
</f:HiddenField>
|
||||
<f:Button ID="btnDownLoad" runat="server" Icon="ApplicationGo" ToolTip="下载模板" Text="下载模板" OnClick="btnDownLoad_Click" EnablePostBack="true" EnableAjax="false">
|
||||
</f:Button>
|
||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnAudit" Icon="ApplicationEdit" runat="server" ToolTip="导入" Text="导入" ValidateForms="SimpleForm1"
|
||||
OnClick="btnAudit_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnImport" Icon="ApplicationGet" runat="server" ToolTip="导入" Text="导入" ValidateForms="SimpleForm1" Hidden="true"
|
||||
OnClick="btnImport_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="提交" Text="提交" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:FileUpload runat="server" ID="fuAttachUrl" EmptyText="选择要导入的文件" Label="选择要导入的文件"
|
||||
LabelWidth="150px">
|
||||
</f:FileUpload>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="组件信息"
|
||||
EnableCollapse="true" runat="server" BoxFlex="1" DataKeyNames="ContractId" AllowCellEditing="true"
|
||||
AllowColumnLocking="true" EnableColumnLines="true" ClicksToEdit="2" DataIDField="ContractId"
|
||||
AllowSorting="true" SortField="ContractId" SortDirection="ASC"
|
||||
AllowPaging="true" IsDatabasePaging="true" PageSize="30"
|
||||
EnableTextSelection="True">
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfPageIndex" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" >
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField ColumnID="EPCCode" EnableLock="true" DataField="EPCCode" Width="120px" FieldType="String" HeaderText="总承包合同编号" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ProjectName" EnableLock="true" DataField="ProjectName" Width="180px" FieldType="String" HeaderText="项目名称" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ProjectCode" EnableLock="true" DataField="ProjectCode" Width="180px" FieldType="String" HeaderText="项目代码" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContractName" EnableLock="true" DataField="ContractName" Width="180px" FieldType="String" HeaderText="合同名称" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContractNum" EnableLock="true" DataField="ContractNum" Width="180px" FieldType="String" HeaderText="合同编号" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Parties" DataField="Parties" Width="120px" FieldType="String" HeaderText="签约方" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Currency" DataField="Currency" Width="100px" FieldType="String" HeaderText="币种" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContractAmount" DataField="ContractAmount" Width="120px" FieldType="String" HeaderText="合同金额" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<%-- <f:RenderField ColumnID="DepartName" DataField="DepartName" Width="120px" FieldType="String" HeaderText="主办部门" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="AgentName" DataField="AgentName" Width="120px" FieldType="String" HeaderText="经办人" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>--%>
|
||||
<f:RenderField ColumnID="ContractType" DataField="ContractType" Width="150px" FieldType="String" HeaderText="合同类型" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Status" DataField="Status" Width="150px" FieldType="String" HeaderText="合同状态" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Retentionmoney" DataField="Retentionmoney" Width="150px" FieldType="String" HeaderText="质保金" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="OpeningBank_TT" DataField="OpeningBank_TT" Width="150px" FieldType="String" HeaderText="开户行-电汇" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="BankAccount_TT" DataField="BankAccount_TT" Width="150px" FieldType="String" HeaderText="银行账号-电汇" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="OpeningBank_Electrophore" DataField="OpeningBank_Electrophore" Width="150px" FieldType="String" HeaderText="开户行-电承" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="BankAccount_Electrophore" DataField="BankAccount_Electrophore" Width="150px" FieldType="String" HeaderText="银行账号-电承" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="LineNumber_Electrophore" DataField="LineNumber_Electrophore" Width="150px" FieldType="String" HeaderText="行号-电承" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContactUnitOfPartyA" DataField="ContactUnitOfPartyA" Width="150px" FieldType="String" HeaderText="甲方联系单位" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContactPersonOfPartyA" DataField="ContactPersonOfPartyA" Width="150px" FieldType="String" HeaderText="甲方联系人" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContactPersonOfPartyB" DataField="ContactPersonOfPartyB" Width="150px" FieldType="String" HeaderText="乙方联系人" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContactPersonPhoneOfPartyB" DataField="ContactPersonPhoneOfPartyB" Width="150px" FieldType="String" HeaderText="乙方联系人电话" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContactPersonEmailOfPartyB" DataField="ContactPersonEmailOfPartyB" Width="150px" FieldType="String" HeaderText="乙方联系人邮箱" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContractAmountExcludingTax" DataField="ContractAmountExcludingTax" Width="150px" FieldType="String" HeaderText="合同不含税金额" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="PriceMethod" DataField="PriceMethod" Width="150px" FieldType="String" HeaderText="计价方式" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="SignedOnDate" DataField="SignedOnDate" Width="150px" FieldType="String" HeaderText="签订日期" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContractStartDate" DataField="ContractStartDate" Width="150px" FieldType="String" HeaderText="合同起始日期" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ContractEndDate" DataField="ContractEndDate" Width="150px" FieldType="String" HeaderText="合同终止日期" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="PricingBasis" DataField="PricingBasis" Width="150px" FieldType="String" HeaderText="计价依据" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="SubcontractingMethod" DataField="SubcontractingMethod" Width="150px" FieldType="String" HeaderText="分包模式" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="IsItACentralizedPurchaseSupplier" DataField="IsItACentralizedPurchaseSupplier" Width="150px" FieldType="String" HeaderText="乙方是否为集采供应商/分包商" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
|
||||
</Columns>
|
||||
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<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:ListItem Text="所有行" Value="10000" />
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</form>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,405 @@
|
||||
using BLL;
|
||||
using MiniExcelLibs;
|
||||
using Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.PHTGL.Filing
|
||||
{
|
||||
public partial class ContractStandingBookIn : PageBase
|
||||
{
|
||||
#region 定义变量
|
||||
/// <summary>
|
||||
/// 上传预设的虚拟路径
|
||||
/// </summary>
|
||||
private string initPath = Const.ExcelUrl;
|
||||
|
||||
/// <summary>
|
||||
/// 安装组件集合
|
||||
/// </summary>
|
||||
public static List<Model.PHTGL_ContractStandingBook> ContractStandingBookList = new List<Model.PHTGL_ContractStandingBook>();
|
||||
|
||||
/// <summary>
|
||||
/// 错误集合
|
||||
/// </summary>
|
||||
public static string errorInfos = string.Empty;
|
||||
public string Type
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["Type"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["Type"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.hdFileName.Text = string.Empty;
|
||||
if (ContractStandingBookList != null)
|
||||
{
|
||||
ContractStandingBookList.Clear();
|
||||
}
|
||||
errorInfos = string.Empty;
|
||||
Type = Request.Params["Type"];
|
||||
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 审核
|
||||
/// <summary>
|
||||
/// 审核
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAudit_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
Grid1.DataSource = null;
|
||||
Grid1.DataBind();
|
||||
if (this.fuAttachUrl.HasFile == false)
|
||||
{
|
||||
ShowNotify("请您选择Excel文件!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string IsXls = Path.GetExtension(this.fuAttachUrl.FileName).ToString().Trim().ToLower();
|
||||
if (IsXls != ".xlsx")
|
||||
{
|
||||
ShowNotify("只可以选择Excel文件!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (ContractStandingBookList != null)
|
||||
{
|
||||
ContractStandingBookList.Clear();
|
||||
}
|
||||
if (!string.IsNullOrEmpty(errorInfos))
|
||||
{
|
||||
errorInfos = string.Empty;
|
||||
}
|
||||
string rootPath = Server.MapPath("~/");
|
||||
string initFullPath = rootPath + initPath;
|
||||
if (!Directory.Exists(initFullPath))
|
||||
{
|
||||
Directory.CreateDirectory(initFullPath);
|
||||
}
|
||||
|
||||
this.hdFileName.Text = BLL.Funs.GetNewFileName() + IsXls;
|
||||
string filePath = initFullPath + this.hdFileName.Text;
|
||||
this.fuAttachUrl.PostedFile.SaveAs(filePath);
|
||||
ImportXlsToData(rootPath + initPath + this.hdFileName.Text);
|
||||
|
||||
if (string.IsNullOrEmpty(errorInfos))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.hdFileName.Text))
|
||||
{
|
||||
if (ContractStandingBookList.Count > 0)
|
||||
{
|
||||
this.Grid1.Hidden = false;
|
||||
this.Grid1.DataIDField = "ContractId";
|
||||
this.Grid1.DataSource = ContractStandingBookList;
|
||||
this.Grid1.DataBind();
|
||||
Grid1.RecordCount = ContractStandingBookList.Count;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("请先审核要导入的文件!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("请先将错误数据修正,再重新导入提交!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Alert alert = new Alert
|
||||
{
|
||||
Message = "'" + ex.Message + "'",
|
||||
Target = Target.Self
|
||||
};
|
||||
alert.Show();
|
||||
//ShowNotify("'" + ex.Message + "'", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
#region 读Excel提取数据
|
||||
/// <summary>
|
||||
/// 从Excel提取数据--》Dataset
|
||||
/// </summary>
|
||||
/// <param name="filename">Excel文件路径名</param>
|
||||
private void ImportXlsToData(string fileName)
|
||||
{
|
||||
// var rows =Funs.LINQToDataTable(MiniExcel.Query(fileName).ToList()) ;
|
||||
var ds = MiniExcel.Query(fileName).ToList();
|
||||
var columns = MiniExcel.GetColumns(fileName);
|
||||
var rows = MiniExcel.Query<ContractStandingBooKDtoIn>(fileName).ToList();
|
||||
var cnt = columns.Count;
|
||||
var reposedata = AddDatasetToSQL(rows, cnt);
|
||||
if (reposedata.code == 1)
|
||||
{
|
||||
ShowNotify("审核完成,请点击导入!", MessageBoxIcon.Success);
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert alert = new Alert
|
||||
{
|
||||
Message = reposedata.message,
|
||||
Target = Target.Self
|
||||
};
|
||||
alert.Show();
|
||||
//ShowNotify(responeData.message, MessageBoxIcon.Success);
|
||||
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 将Dataset的数据导入数据库
|
||||
/// <summary>
|
||||
/// 将Dataset的数据导入数据库
|
||||
/// </summary>
|
||||
/// <param name="pds">数据集</param>
|
||||
/// <param name="Cols">数据集行数</param>
|
||||
/// <returns></returns>
|
||||
private Model.ResponeData AddDatasetToSQL(List<ContractStandingBooKDtoIn> pds, int count)
|
||||
{
|
||||
Model.ResponeData responeData = new Model.ResponeData();
|
||||
// string result = string.Empty;
|
||||
List<string> result = new List<string>();
|
||||
//pds = BLL.Funs.FilterBlankLines(pds);
|
||||
if (count < 30)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = "导入Excel格式错误!Excel只有" + count.ToString().Trim() + "列";
|
||||
return responeData;
|
||||
}
|
||||
if (pds.Count > 0 && pds != null)
|
||||
{
|
||||
foreach (var item in pds)
|
||||
{
|
||||
Model.PHTGL_ContractStandingBook _ContractStandingBook = new PHTGL_ContractStandingBook();
|
||||
_ContractStandingBook.ContractId = SQLHelper.GetNewID();
|
||||
_ContractStandingBook.States = 0;
|
||||
_ContractStandingBook.DepartId = this.CurrUser.DepartId;
|
||||
_ContractStandingBook.Agent = this.CurrUser.PersonName;
|
||||
_ContractStandingBook.CreatUser = this.CurrUser.PersonId;
|
||||
_ContractStandingBook.CreateDate = DateTime.Now.ToString() ;
|
||||
if (Type == "1")
|
||||
{
|
||||
_ContractStandingBook.ProjectId = this.CurrUser.LoginProjectId;
|
||||
}
|
||||
_ContractStandingBook.ContractName = item.ContractName;
|
||||
_ContractStandingBook.ContractNum= item.ContractNum;
|
||||
_ContractStandingBook.ProjectName= item.ProjectName;
|
||||
_ContractStandingBook.ProjectCode= item.ProjectCode;
|
||||
_ContractStandingBook.Parties= item.Parties;
|
||||
_ContractStandingBook.Currency= item.Currency;
|
||||
_ContractStandingBook.ContractAmount= item.ContractAmount;
|
||||
_ContractStandingBook.ContractType= item.ContractType;
|
||||
_ContractStandingBook.EPCCode= item.EPCCode;
|
||||
_ContractStandingBook.ContractAttribute= item.ContractAttribute;
|
||||
_ContractStandingBook.OpeningBank_TT = item.OpeningBankTT;
|
||||
_ContractStandingBook.OpeningBank_Electrophore = item.OpeningBankelectrophore;
|
||||
_ContractStandingBook.BankAccount_TT = item.BankAccountTT;
|
||||
_ContractStandingBook.BankAccount_Electrophore = item.BankAccountelectrophore;
|
||||
_ContractStandingBook.LineNumber_Electrophore = item.LineNumberelectrophore;
|
||||
_ContractStandingBook.Retentionmoney= item.Retentionmoney;
|
||||
_ContractStandingBook.Status= item.Status;
|
||||
_ContractStandingBook.ContactUnitOfPartyA= item.ContactUnitOfPartyA;
|
||||
_ContractStandingBook.ContactPersonOfPartyA= item.ContactPersonOfPartyA;
|
||||
_ContractStandingBook.ContactPersonOfPartyB= item.ContactPersonOfPartyB;
|
||||
_ContractStandingBook.ContactPersonPhoneOfPartyB= item.ContactPersonPhoneOfPartyB;
|
||||
_ContractStandingBook.ContactPersonEmailOfPartyB= item.ContactPersonEmailOfPartyB;
|
||||
_ContractStandingBook.ContractAmountExcludingTax= item.ContractAmountExcludingTax;
|
||||
_ContractStandingBook.PriceMethod= item.PriceMethod;
|
||||
_ContractStandingBook.SignedOnDate= item.SignedOnDate;
|
||||
_ContractStandingBook.ContractStartDate= item.ContractStartDate;
|
||||
_ContractStandingBook.ContractEndDate= item.ContractEndDate;
|
||||
_ContractStandingBook.PricingBasis= item.PricingBasis;
|
||||
_ContractStandingBook.SubcontractingMethod= item.SubcontractingMethod;
|
||||
_ContractStandingBook.IsItACentralizedPurchaseSupplier = item.IsItACentralizedPurchaseSupplier;
|
||||
ContractStandingBookList.Add(_ContractStandingBook);
|
||||
|
||||
}
|
||||
|
||||
if (result.Count > 0)
|
||||
{
|
||||
ContractStandingBookList.Clear();
|
||||
// result = result.Substring(0, result.LastIndexOf("|"));
|
||||
errorInfos = string.Join("|", result.Distinct());
|
||||
//Alert alert = new Alert();
|
||||
//alert.Message = result;
|
||||
//alert.Target = Target.Self;
|
||||
//alert.Show();
|
||||
responeData.code = 0;
|
||||
responeData.message = errorInfos;
|
||||
}
|
||||
else
|
||||
{
|
||||
errorInfos = string.Empty;
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = "导入数据为空!";
|
||||
}
|
||||
|
||||
|
||||
return responeData;
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 导入
|
||||
/// <summary>
|
||||
/// 导入
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnImport_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(errorInfos))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.hdFileName.Text))
|
||||
{
|
||||
if (ContractStandingBookList.Count > 0)
|
||||
{
|
||||
this.Grid1.Hidden = false;
|
||||
this.Grid1.DataIDField = "ContractId";
|
||||
this.Grid1.DataSource = ContractStandingBookList;
|
||||
this.Grid1.DataBind();
|
||||
Grid1.RecordCount = ContractStandingBookList.Count;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("请先审核要导入的文件!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("请先将错误数据修正,再重新导入提交!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 提交
|
||||
/// <summary>
|
||||
/// 提交
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(errorInfos))
|
||||
{
|
||||
if (ContractStandingBookList.Count > 0)
|
||||
{
|
||||
ContractStandingBookService.AddBulkPHTGL_ContractStandingBook(ContractStandingBookList);
|
||||
}
|
||||
int a = ContractStandingBookList.Count();
|
||||
string rootPath = Server.MapPath("~/");
|
||||
string initFullPath = rootPath + initPath;
|
||||
string filePath = initFullPath + this.hdFileName.Text;
|
||||
if (filePath != string.Empty && System.IO.File.Exists(filePath))
|
||||
{
|
||||
System.IO.File.Delete(filePath);//删除上传的XLS文件
|
||||
}
|
||||
ShowNotify("导入成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("请先将错误数据修正,再重新导入提交!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取名称
|
||||
public string ConvertPipelineId(object PipelineId)
|
||||
{
|
||||
string StateName = string.Empty;
|
||||
if (!string.IsNullOrEmpty(PipelineId.ToString()))
|
||||
{
|
||||
|
||||
if (PipelineId != null)
|
||||
{
|
||||
string txt = PipelineService.GetPipelineByPipelineId(PipelineId.ToString()).PipelineCode;
|
||||
|
||||
return txt;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
return StateName;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 下载模板
|
||||
/// <summary>
|
||||
/// 下载模板按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnDownLoad_Click(object sender, EventArgs e)
|
||||
{
|
||||
string rootPath = Server.MapPath("~/");
|
||||
string uploadfilepath = rootPath + Const.ContractStandingBookIn;
|
||||
string filePath = Const.ContractStandingBookIn;
|
||||
string fileName = Path.GetFileName(filePath);
|
||||
FileInfo info = new FileInfo(uploadfilepath);
|
||||
long fileSize = info.Length;
|
||||
Response.ClearContent();
|
||||
Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
|
||||
Response.ContentType = "excel/plain";
|
||||
Response.ContentEncoding = System.Text.Encoding.UTF8;
|
||||
Response.AddHeader("Content-Length", fileSize.ToString().Trim());
|
||||
Response.TransmitFile(uploadfilepath, 0, fileSize);
|
||||
Response.End();
|
||||
}
|
||||
#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);
|
||||
this.Grid1.DataSource = ContractStandingBookList;
|
||||
this.Grid1.DataBind();
|
||||
Grid1.RecordCount = ContractStandingBookList.Count;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,152 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.PHTGL.Filing
|
||||
{
|
||||
|
||||
|
||||
public partial class ContractStandingBookIn
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// hdFileName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdFileName;
|
||||
|
||||
/// <summary>
|
||||
/// btnDownLoad 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnDownLoad;
|
||||
|
||||
/// <summary>
|
||||
/// btnAudit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAudit;
|
||||
|
||||
/// <summary>
|
||||
/// btnImport 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnImport;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// fuAttachUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.FileUpload fuAttachUrl;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// lblPageIndex 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblPageIndex;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user