2026821
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSBJYLZDMX", Umid = 100860124, IsWorkFlow = false, UseWhr = false)]
|
||||
public class BJCPBZFSCD : EntityManager
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
||||
Codebehind="BJCPBZFSCDList.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJCPBZFSCDList"
|
||||
Title="报价产品包装方式包装长度" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentForm" ContentPlaceHolderID="CPHForm" runat="server">
|
||||
<gtc:gtGridView ID="ContentGrid" runat="server" EnableViewState="false" AutoGenerateColumns="False"
|
||||
CellPadding="2" CellSpacing="2" AllowPaging="True" AllowSorting="True">
|
||||
<Columns>
|
||||
<asp:BoundField HeaderText="序号" DataField="XLXSBJDMX_XH">
|
||||
<itemstyle width="50px" horizontalalign="Right"></itemstyle>
|
||||
<headerstyle width="50px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="型号" DataField="XLXSBJDMX_XLXHID">
|
||||
<itemstyle width="120px"></itemstyle>
|
||||
<headerstyle width="120px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="规格" DataField="XLXSBJDMX_XLGGID">
|
||||
<itemstyle width="120px"></itemstyle>
|
||||
<headerstyle width="120px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="标准" DataField="XLBZ">
|
||||
<itemstyle width="50px"></itemstyle>
|
||||
<headerstyle width="50px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="电压等级" DataField="XLXSBJDMX_DYDJID">
|
||||
<itemstyle width="72px"></itemstyle>
|
||||
<headerstyle width="72px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="包装方式" DataField="BZFS">
|
||||
<itemstyle width="120px"></itemstyle>
|
||||
<headerstyle width="120px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="包装长度" DataField="BZCD">
|
||||
<itemstyle width="100px"></itemstyle>
|
||||
<headerstyle width="100px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="盘具价格" DataField="PJJG">
|
||||
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
|
||||
<headerstyle width="72px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
</Columns>
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_XH" EditType="etString" ShowHint ="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_XLXHID" EditType="etString" ShowHint ="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_XLGGID" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLBZ" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_DYDJID" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="BZFS" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="BZCD" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="PJJG" EditType="etNumber" NumberDecimalPlace="3">
|
||||
</gtc:gtGridView_Column>
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
<asp:HiddenField ID="txtOpen" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentSync" ContentPlaceHolderID="CPHSync" runat="server">
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,140 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using System.Collections.Generic;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using GThinking.N_CONTROL;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using GThinking.N_MISPRO;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class BJCPBZFSCDList : SingleGridBase
|
||||
{
|
||||
BJCPBZFSCD entity = new BJCPBZFSCD();
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860124;
|
||||
this.UMName = "报价产品包装方式包装长度";
|
||||
this.CurMaster = Master;
|
||||
this.ModuleGV = ContentGrid;
|
||||
this.CurEntity = entity;
|
||||
this.PageHeight = 600;
|
||||
this.PageWidth = 750;
|
||||
//base.DataKeyNames = new string[] { "XLXSBJCL_BJCLID" };
|
||||
Master.EnableNewBtn = false;
|
||||
Master.EnableCopyBtn = false;
|
||||
Master.EnableViewBtn = false;
|
||||
Master.EnableEditBtn = false;
|
||||
Master.EnableDeleteBtn = false;
|
||||
Master.EnableQueryBtn = false;
|
||||
|
||||
base.InitPage();
|
||||
|
||||
this.ModuleGV.OnClientDblClick = "return false;";
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
Master_OnStandardQuery(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
#region 模板继承事件
|
||||
|
||||
protected override void Master_OnStandardQuery(object sender, EventArgs e)
|
||||
{
|
||||
entity.EntityTable.QuerySelSql = "select top 1 XLXSBJDMX_BJDID from XLXSBJDMX where 1<>1";
|
||||
base.Master_OnStandardQuery(sender, e);
|
||||
DataSet ds = GetSQLDataSet();
|
||||
entity.GridDataBind(ContentGrid, tSession);
|
||||
entity.GridDataBind(ContentGrid, ds.Tables[0], ds.Tables[0].Rows.Count);
|
||||
ContentGrid.DataSource = ds;
|
||||
}
|
||||
|
||||
protected override void moduleGV_PageIndexChanging(object sender, GridViewPageEventArgs e)
|
||||
{
|
||||
entity.EntityTable.QuerySelSql = "select top 1 XLXSBJDMX_BJDID from XLXSBJDMX where 1<>1";
|
||||
ContentGrid.SelectedIndex = -1;
|
||||
base.moduleGV_PageIndexChanging(sender, e);
|
||||
DataSet ds = GetSQLDataSet();
|
||||
if (entity.ShowRecordCount)
|
||||
{
|
||||
GetLMTJColumn(ContentGrid);
|
||||
}
|
||||
entity.GridDataBind(ContentGrid, tSession);
|
||||
entity.GridDataBind(ContentGrid, ds.Tables[0], ds.Tables[0].Rows.Count);
|
||||
ContentGrid.DataSource = ds;
|
||||
}
|
||||
|
||||
protected override void ReportRecordSetAdd()
|
||||
{
|
||||
DataSet ds = GetSQLDataSet();
|
||||
AddUserReportDataSet("BJCPBFSBZCD", ds);
|
||||
base.ReportRecordSetAdd();
|
||||
|
||||
}
|
||||
|
||||
protected override void ReportDataSetAdd()
|
||||
{
|
||||
DataSet ds = GetSQLDataSet();
|
||||
for (int i = 0; i < ContentGrid.Columns.Count; i++)
|
||||
{
|
||||
string sDataField = ((System.Web.UI.WebControls.BoundField)(ContentGrid.Columns[i])).DataField.ToString().Trim();
|
||||
string sHeaderText = ContentGrid.Columns[i].HeaderText;
|
||||
AddUserReportField("BJCPBFSBZCD", sDataField, sHeaderText, "S");
|
||||
}
|
||||
|
||||
base.ReportDataSetAdd();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义方法
|
||||
|
||||
private DataSet GetSQLDataSet()
|
||||
{
|
||||
string sBJDID = PageParam.GetRTrimString("BJDID");
|
||||
string sBJDXHList = PageParam.GetRTrimString("BJDXHList");
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
DataSet dsQry = new DataSet();
|
||||
SQL.Clear();
|
||||
//SQL语句自测:黄文波 2025/3/19 20:16:00
|
||||
SQL.Add(@"SELECT XLXSBJDMX_XH,XLXSBJDMX_XLXHID,XLXSBJDMX_XLGGID,
|
||||
CASE WHEN ISNULL(XLXSBJDMX_XLBZID,' ')=' ' THEN XLXSBJDMX_XLBZID ELSE RTRIM(XLXSBJDMX_XLBZID)||'|'||XLBZ_XLBZLXMC END AS XLBZ,
|
||||
XLXSBJDMX_DYDJID,XLXHJGCZBNR_BZFS AS BZFS,XLXHJGCZBNR_DC AS BZCD,PJJG
|
||||
FROM XLXSBJDMX LEFT JOIN XLXSCLQD ON XLXSCLQD_XLXHID=XLXSBJDMX_XLXHID AND XLXSCLQD_XLGGID=XLXSBJDMX_XLGGID
|
||||
AND XLXSCLQD_XLBZID=XLXSBJDMX_XLBZID AND XLXSCLQD_DYDJID=XLXSBJDMX_DYDJID
|
||||
LEFT JOIN XLXHJGCZBNR ON XLXHJGCZBNR_JGCZBID=XLXSCLQD_JGCZBID AND XLXHJGCZBNR_JGCZBBBID=XLXSCLQD_JGCZBBBID
|
||||
AND XLXHJGCZBNR_JGCZBXH=XLXSCLQD_JGCZBXH AND XLXHJGCZBNR_DRHH=XLXSCLQD_DRHH
|
||||
LEFT JOIN XLBMYSMX ON XLBMYSMX_YSBM='DC' AND XLBMYSMX_YSID=XLXHJGCZBNR_DC
|
||||
left join XLBZ ON XLBZ_XLBZID=XLXSBJDMX_XLBZID
|
||||
LEFT JOIN (SELECT XLZPPJFL_PJFLMC,MAX(XLZPPJJG_PJJG) AS PJJG FROM XLZPPJFL
|
||||
LEFT JOIN XLZPPJJG ON XLZPPJJG_PJCZ=XLZPPJFL_PJFLID
|
||||
WHERE 1=1 and XLZPPJJG_YXQS <= :pDtNow and (XLZPPJJG_YXQZ>=:pDtNow or XLZPPJJG_YXQZ is null)
|
||||
GROUP BY XLZPPJFL_PJFLMC) PJ ON RTRIM(XLZPPJFL_PJFLMC)=RTRIM(XLXHJGCZBNR_BZFS)
|
||||
WHERE XLXSBJDMX_BJDID=:pBJDID ");
|
||||
if (!sBJDXHList.Equals(""))
|
||||
{
|
||||
SQL.Add(" and " + CMISproDataBase.GetWhereEqual("XLXSBJDMX_XH", sBJDXHList));
|
||||
}
|
||||
SQL.Add(" order by XLXSBJDMX_BJDID,XLXSBJDMX_XH ");
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
SQL.ParamByName("pDtNow").Value = DateTime.Now;
|
||||
dsQry = dberp.OpenDataSet(SQL);
|
||||
|
||||
return dsQry;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+52
@@ -0,0 +1,52 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJCPBZFSCDList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJCPBZFSCDList {
|
||||
|
||||
/// <summary>
|
||||
/// ContentGrid 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView ContentGrid;
|
||||
|
||||
/// <summary>
|
||||
/// txtOpen 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtOpen;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleGrid Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleGrid)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSBJYLZDMX", Umid = 100860122, IsWorkFlow = false, UseWhr = false)]
|
||||
public class BJCPFZGX : EntityManager
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
||||
Codebehind="BJCPFZGXList.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJCPFZGXList"
|
||||
Title="报价产品工艺工序" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
<asp:Table ID="CustomButton" runat="server" CellPadding="0" CellSpacing="0">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="NotSet">
|
||||
<gtc:gtToolButton ID="btnLRFZF" runat="server" Caption="录 入" OnClick="btnLRFZF_Click"
|
||||
ShowCaption="True" Width="58px" Height="19px">
|
||||
</gtc:gtToolButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnAutoClose" OnClick="btnAutoClose_Click"
|
||||
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentForm" ContentPlaceHolderID="CPHForm" runat="server">
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="right" style="width: 120px" id="tdlblBZKH" runat="server">
|
||||
<gtc:gtLabel ID="lblGG" runat="server" Width="120px" Text="规格:"></gtc:gtLabel>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr style="height: 3px">
|
||||
</tr>
|
||||
</table>
|
||||
<gtc:gtGridView ID="ContentGrid" runat="server" EnableViewState="false" AutoGenerateColumns="False"
|
||||
CellPadding="2" CellSpacing="2" AllowPaging="True" AllowSorting="True">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="XLXHGGGXB_BZGXID" HeaderText="标准工序">
|
||||
<itemstyle width="100px"></itemstyle>
|
||||
<headerstyle width="100px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXHGGGXB_XLCPZLID" HeaderText="产品种类">
|
||||
<itemstyle width="100px"></itemstyle>
|
||||
<headerstyle width="100px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXHGGGXB_XLCLZLID" HeaderText="材料种类">
|
||||
<itemstyle width="100px"></itemstyle>
|
||||
<headerstyle width="100px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXHGGGXB_JSXH" HeaderText="计算序号">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle width="80px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLCLMC" HeaderText="线缆材料">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle width="80px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXHGGGXB_XXFZH" HeaderText="芯线分组号">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle width="80px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXHGGJSJGB_BXWJ" HeaderText="本序外径">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle width="80px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
</Columns>
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="XLXHGGGXB_BZGXID" EditType="etString" ShowHint ="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXHGGGXB_XLCPZLID" EditType="etString" ShowHint ="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXHGGGXB_XLCLZLID" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<%--<gtc:gtGridView_Column DataField="XLXHGGGXB_GYFLJSXH" EditType="etString">
|
||||
</gtc:gtGridView_Column>--%>
|
||||
<gtc:gtGridView_Column DataField="XLXHGGGXB_JSXH" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLCLMC" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXHGGGXB_XXFZH" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<%--<gtc:gtGridView_Column DataField="XLXHGGGXB_ZLJSGS" EditType="etString">
|
||||
</gtc:gtGridView_Column>--%>
|
||||
<gtc:gtGridView_Column DataField="XLXHGGJSJGB_BXWJ" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
<asp:HiddenField ID="txtOpen" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentSync" ContentPlaceHolderID="CPHSync" runat="server">
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,216 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using System.Collections.Generic;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using GThinking.N_CONTROL;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using GThinking.N_MISPRO;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class BJCPFZGXList : SingleGridBase
|
||||
{
|
||||
BJCPFZGX entity = new BJCPFZGX();
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860122;
|
||||
this.UMName = "报价产品工艺工序";
|
||||
this.CurMaster = Master;
|
||||
this.ModuleGV = ContentGrid;
|
||||
this.CurEntity = entity;
|
||||
this.PageHeight = 600;
|
||||
this.PageWidth = 750;
|
||||
//base.DataKeyNames = new string[] { "XLXSBJCL_BJCLID" };
|
||||
Master.EnableNewBtn = false;
|
||||
Master.EnableCopyBtn = false;
|
||||
Master.EnableViewBtn = false;
|
||||
Master.EnableEditBtn = false;
|
||||
Master.EnableDeleteBtn = false;
|
||||
Master.EnableQueryBtn = false;
|
||||
|
||||
base.InitPage();
|
||||
|
||||
this.ModuleGV.OnClientDblClick = "return false;";
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
Init();
|
||||
Master_OnStandardQuery(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
#region 模板继承事件
|
||||
|
||||
protected override void Master_OnStandardQuery(object sender, EventArgs e)
|
||||
{
|
||||
entity.EntityTable.QuerySelSql = "select top 1 XLXSBJDMX_BJDID from XLXSBJDMX where 1<>1";
|
||||
base.Master_OnStandardQuery(sender, e);
|
||||
DataSet ds = GetSQLDataSet();
|
||||
entity.GridDataBind(ContentGrid, tSession);
|
||||
entity.GridDataBind(ContentGrid, ds.Tables[0], ds.Tables[0].Rows.Count);
|
||||
ContentGrid.DataSource = ds;
|
||||
}
|
||||
|
||||
protected override void moduleGV_PageIndexChanging(object sender, GridViewPageEventArgs e)
|
||||
{
|
||||
entity.EntityTable.QuerySelSql = "select top 1 XLXSBJDMX_BJDID from XLXSBJDMX where 1<>1";
|
||||
ContentGrid.SelectedIndex = -1;
|
||||
base.moduleGV_PageIndexChanging(sender, e);
|
||||
DataSet ds = GetSQLDataSet();
|
||||
if (entity.ShowRecordCount)
|
||||
{
|
||||
GetLMTJColumn(ContentGrid);
|
||||
}
|
||||
entity.GridDataBind(ContentGrid, tSession);
|
||||
entity.GridDataBind(ContentGrid, ds.Tables[0], ds.Tables[0].Rows.Count);
|
||||
ContentGrid.DataSource = ds;
|
||||
}
|
||||
|
||||
protected override void ReportRecordSetAdd()
|
||||
{
|
||||
DataSet ds = GetSQLDataSet();
|
||||
AddUserReportDataSet("BJCPBZGX", ds);
|
||||
base.ReportRecordSetAdd();
|
||||
|
||||
}
|
||||
|
||||
protected override void ReportDataSetAdd()
|
||||
{
|
||||
DataSet ds = GetSQLDataSet();
|
||||
for (int i = 0; i < ContentGrid.Columns.Count; i++)
|
||||
{
|
||||
string sDataField = ((System.Web.UI.WebControls.BoundField)(ContentGrid.Columns[i])).DataField.ToString().Trim();
|
||||
string sHeaderText = ContentGrid.Columns[i].HeaderText;
|
||||
AddUserReportField("BJCPBZGX", sDataField, sHeaderText, "S");
|
||||
}
|
||||
|
||||
base.ReportDataSetAdd();
|
||||
}
|
||||
|
||||
protected void btnLRFZF_Click(object sender, EventArgs e)
|
||||
{
|
||||
TPageParams pageParams = new TPageParams();
|
||||
pageParams.UrlPath = "BJCPFZGX_SZFZFInfo.aspx";
|
||||
pageParams.Title = "设置辐照费";
|
||||
pageParams.AddString("BJDID", PageParam.GetRTrimString("BJDID"));
|
||||
pageParams.AddString("BJFLID", PageParam.GetRTrimString("BJFLID"));
|
||||
pageParams.AddString("XLXHID", PageParam.GetRTrimString("XLXHID"));
|
||||
pageParams.AddString("XLGGID", PageParam.GetRTrimString("XLGGID"));
|
||||
pageParams.AddString("XLBZID", PageParam.GetRTrimString("XLBZID"));
|
||||
pageParams.AddString("DYDJID", PageParam.GetRTrimString("DYDJID"));
|
||||
pageParams.AddString("txtOpen", txtOpen.ClientID);
|
||||
OpenDialogClickBtn(pageParams, btnAutoClose.ClientID);
|
||||
}
|
||||
protected void btnAutoClose_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (txtOpen.Value.Trim().Equals("CLOSE"))
|
||||
{
|
||||
CloseWindow();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义方法
|
||||
|
||||
private DataSet GetSQLDataSet()
|
||||
{
|
||||
string sXLXHID = PageParam.GetRTrimString("XLXHID");
|
||||
string sXLGGID = PageParam.GetRTrimString("XLGGID").Replace("*","×");
|
||||
string sXLBZID = PageParam.GetRTrimString("XLBZID");
|
||||
string sDYDJID = PageParam.GetRTrimString("DYDJID");
|
||||
string sJGCZBID = "";
|
||||
string sJGCZBBBID = "";
|
||||
string sJGCZBXH = "";
|
||||
string sDRHH = "";
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
DataSet dsQry = new DataSet();
|
||||
SQL.Clear();
|
||||
SQL.Add(@"select top 1 XLXHJGCZBNR_JGCZBID,XLXHJGCZBNR_JGCZBBBID,XLXHJGCZBNR_JGCZBXH,XLXHJGCZBNR_DRHH from XLXHJGCZBNR
|
||||
left join XLXHJGCZBML on XLXHJGCZBML_JGCZBID=XLXHJGCZBNR_JGCZBID and XLXHJGCZBML_JGCZBXH=XLXHJGCZBNR_JGCZBXH
|
||||
where XLXHJGCZBML_XLXHID=:pBJDXHID and XLXHJGCZBNR_XLGGID=:pBJDXLGGID
|
||||
and XLXHJGCZBML_XLBZID=:pBJDBZID and XLXHJGCZBML_DYDJID=:pBJDDYDJID ");
|
||||
|
||||
SQL.ParamByName("pBJDXHID").Value = sXLXHID;
|
||||
SQL.ParamByName("pBJDXLGGID").Value = sXLGGID;
|
||||
SQL.ParamByName("pBJDBZID").Value = sXLBZID;
|
||||
SQL.ParamByName("pBJDDYDJID").Value = sDYDJID;
|
||||
dsQry = dberp.OpenDataSet(SQL);
|
||||
if (dsQry.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
sJGCZBID = dsQry.Tables[0].Rows[0]["XLXHJGCZBNR_JGCZBID"].ToString().Trim();
|
||||
sJGCZBBBID = dsQry.Tables[0].Rows[0]["XLXHJGCZBNR_JGCZBBBID"].ToString().Trim();
|
||||
sJGCZBXH = dsQry.Tables[0].Rows[0]["XLXHJGCZBNR_JGCZBXH"].ToString().Trim();
|
||||
sDRHH = dsQry.Tables[0].Rows[0]["XLXHJGCZBNR_DRHH"].ToString().Trim();
|
||||
SQL.Clear();
|
||||
SQL.Add(@"select distinct XLXHGGGXB_JGCZBID,XLXHGGGXB_JSXH,rtrim(XLXHGGGXB_BZGXID)||'|'||BZGX_MC AS XLXHGGGXB_BZGXID,XLXHGGGXB_XLCPZLID,XLXHGGGXB_XLCLZLID,
|
||||
XLXHGGGXB_GYFLJSXH,
|
||||
XLXHGGGXB_XXFZH, isnull(XLXHGGGXB_SFXXFS,'N') as XLXHGGGXB_SFXXFS,XLXHGGGXB_ZLJSGS,
|
||||
case when rtrim(XLXHGGGXB_XLCLID) <> ' ' then
|
||||
case when (XLXHGGGXB_XLCLZLID='DTCL') or (XLXHGGGXB_XLCLZLID='DTCP') or (XLXHGGGXB_XLCLZLID='JQCL') then 'DTCL_' + rtrim(XLXHGGGXB_XLCLID)
|
||||
when XLXHGGGXB_XLCLZLID='JYCL' then 'JYCL_' + rtrim(XLXHGGGXB_XLCLID)
|
||||
when XLXHGGGXB_XLCLZLID='HTCL' then 'HTCL_' + rtrim(XLXHGGGXB_XLCLID)
|
||||
when XLXHGGGXB_XLCLZLID='KZCL' then 'KZCL_' + rtrim(XLXHGGGXB_XLCLID)
|
||||
when XLXHGGGXB_XLCLZLID='WHCL' then 'WHCL_' + rtrim(XLXHGGGXB_XLCLID)
|
||||
when XLXHGGGXB_XLCLZLID='PBCL' then 'PBCL_' + rtrim(XLXHGGGXB_XLCLID)
|
||||
when XLXHGGGXB_XLCLZLID='TCCL' then 'TCCL_' + rtrim(XLXHGGGXB_XLCLID)
|
||||
when XLXHGGGXB_XLCLZLID='RBCL' then 'RBCL_' + rtrim(XLXHGGGXB_XLCLID)
|
||||
when XLXHGGGXB_XLCLZLID='FZCL' then 'FZCL_' + rtrim(XLXHGGGXB_XLCLID)
|
||||
else XLXHGGGXB_XLCLID end
|
||||
else ' ' end as XLXHGGGXB_XLCLID ,XLCLMC,XLXHGGJSJGB_BXWJ
|
||||
from XLXHGGGXB
|
||||
LEFT JOIN (select 'DTCL' as XLCLZLID,XLDTCLB_DTCLID as XLCLID,XLDTCLB_WLMC as XLCLMC from XLDTCLB where XLDTCLB_WLID=' '
|
||||
union all
|
||||
select 'JYCL' as XLCLZLID,XLJYCLB_JYCLID as XLCLID,XLJYCLB_WLMC as XLCLMC from XLJYCLB where XLJYCLB_WLID=' '
|
||||
union all
|
||||
select 'HTCL' as XLCLZLID,XLHTCLB_HTCLID as XLCLID,XLHTCLB_WLMC as XLCLMC from XLHTCLB where XLHTCLB_WLID=' '
|
||||
union all
|
||||
select 'KZCL' as XLCLZLID,XLKZCLB_KZCLID as XLCLID,XLKZCLB_WLMC as XLCLMC from XLKZCLB where XLKZCLB_WLID=' '
|
||||
union all
|
||||
select 'WHCL' as XLCLZLID,XLWHCLB_WHCLID as XLCLID,XLWHCLB_WLMC as XLCLMC from XLWHCLB where XLWHCLB_WLID=' '
|
||||
union all
|
||||
select 'PBCL' as XLCLZLID,XLPBCLB_PBCLID as XLCLID,XLPBCLB_WLMC as XLCLMC from XLPBCLB where XLPBCLB_WLID=' '
|
||||
union all
|
||||
select 'TCCL' as XLCLZLID,XLTCCLB_TCCLID as XLCLID,XLTCCLB_WLMC as XLCLMC from XLTCCLB where XLTCCLB_WLID=' '
|
||||
union all
|
||||
select 'RBCL' as XLCLZLID,XLRBCLB_RBCLID as XLCLID,XLRBCLB_WLMC as XLCLMC from XLRBCLB where XLRBCLB_WLID=' '
|
||||
union all
|
||||
select 'FZCL' as XLCLZLID,XLFZCLB_FZCLID as XLCLID,XLFZCLB_WLMC as XLCLMC from XLFZCLB where XLFZCLB_WLID=' '
|
||||
)CL ON CL.XLCLZLID=case when XLXHGGGXB_XLCLZLID='DTCP' then 'DTCL' else XLXHGGGXB_XLCLZLID end
|
||||
AND CL.XLCLID=XLXHGGGXB_XLCLID
|
||||
left join BZGX on BZGX_BZGXID=XLXHGGGXB_BZGXID
|
||||
left join XLXHGGJSJGB on XLXHGGJSJGB_JGCZBID=XLXHGGGXB_JGCZBID and XLXHGGJSJGB_JGCZBBBID=XLXHGGGXB_JGCZBBBID
|
||||
and XLXHGGJSJGB_JGCZBXH=XLXHGGGXB_JGCZBXH and XLXHGGJSJGB_DRHH=XLXHGGGXB_DRHH and XLXHGGJSJGB_JSXH=XLXHGGGXB_JSXH
|
||||
where XLXHGGGXB_JGCZBID=:pJGCZBID
|
||||
and XLXHGGGXB_JGCZBBBID=:pJGCZBBBID
|
||||
and XLXHGGGXB_JGCZBXH=:pJGCZBXH
|
||||
and XLXHGGGXB_DRHH=:pDRHH
|
||||
order by XLXHGGGXB_JSXH ");
|
||||
SQL.ParamByName("pJGCZBID").Value = sJGCZBID;
|
||||
SQL.ParamByName("pJGCZBBBID").Value = sJGCZBBBID;
|
||||
SQL.ParamByName("pJGCZBXH").Value = sJGCZBXH;
|
||||
SQL.ParamByName("pDRHH").Value = sDRHH;
|
||||
dsQry = dberp.OpenDataSet(SQL);
|
||||
}
|
||||
return dsQry;
|
||||
}
|
||||
|
||||
private void Init()
|
||||
{
|
||||
lblGG.Text = lblGG.Text + PageParam.GetRTrimString("XLGGID");
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+97
@@ -0,0 +1,97 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJCPFZGXList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJCPFZGXList {
|
||||
|
||||
/// <summary>
|
||||
/// CustomButton 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table CustomButton;
|
||||
|
||||
/// <summary>
|
||||
/// btnLRFZF 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnLRFZF;
|
||||
|
||||
/// <summary>
|
||||
/// btnAutoClose 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnAutoClose;
|
||||
|
||||
/// <summary>
|
||||
/// tdlblBZKH 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlTableCell tdlblBZKH;
|
||||
|
||||
/// <summary>
|
||||
/// lblGG 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblGG;
|
||||
|
||||
/// <summary>
|
||||
/// ContentGrid 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView ContentGrid;
|
||||
|
||||
/// <summary>
|
||||
/// txtOpen 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtOpen;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleGrid Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleGrid)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSBJYLZDMX", Umid = 100860122, IsWorkFlow = false, UseWhr = false)]
|
||||
public class BJCPFZGX_SZFZF : EntityManager
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleCard.Master" AutoEventWireup="true"
|
||||
Codebehind="BJCPFZGX_SZFZFInfo.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJCPFZGX_SZFZFInfo"
|
||||
Title="因子值调整" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleCard.Master " %>
|
||||
<asp:Content ID="cntTool" ContentPlaceHolderID="cphUserToolbar" runat="server">
|
||||
<asp:Table CellPadding="0" CellSpacing="0" runat="server" ID="tbl1">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnQD" runat="server" Caption="确 定" ShowCaption="true" OnClick="btnOK_Click"
|
||||
Width="58px" Height="19px" />
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnQX" runat="server" Caption="取 消" ShowCaption="true" OnClick="btnQX_Click"
|
||||
Width="58px" Height="19px" />
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
<asp:Content ID="cntForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||
<center>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr id="tr1" style="height: 40px;">
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblYZID" runat="server" Text="调价因子:"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left" colspan="2">
|
||||
<gtc:gtNumTextBox ID="txtYZZ" DecimalPlaces="2" runat="server" Width="130px"></gtc:gtNumTextBox>
|
||||
<gtc:gtLabel ID="lblDW" runat="server" Text="%/元"></gtc:gtLabel>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</center>
|
||||
<asp:HiddenField ID="txtYZID" runat="server" />
|
||||
<asp:HiddenField ID="txtYZJGBID" runat="server" />
|
||||
<asp:HiddenField ID="txtTJYS" runat="server" />
|
||||
<asp:HiddenField ID="txtHasYZJL" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ID="cntHiFZRen" ContentPlaceHolderID="cphBrand" runat="server">
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,249 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MISPRO;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using GThinking.N_CONTROL;
|
||||
using GThinking.N_PUBLIC;
|
||||
using GThinking.N_MISPRO.Caching;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class BJCPFZGX_SZFZFInfo : SingleCardBase
|
||||
{
|
||||
BJCPFZGX_SZFZF entity = new BJCPFZGX_SZFZF();
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860122;
|
||||
this.UMName = "报价产品工艺工序";
|
||||
base.CurMaster = Master;
|
||||
base.CurEntity = entity;
|
||||
this.PageHeight = 180;
|
||||
this.PageWidth = 420;
|
||||
Master.EnableAttachBtn = false;
|
||||
Master.EnableCancelBtn = false;
|
||||
Master.EnableCopyBtn = false;
|
||||
Master.EnableDeleteBtn = false;
|
||||
Master.EnableEditBtn = false;
|
||||
Master.EnableInsertBtn = false;
|
||||
Master.EnablePrintBtn = false;
|
||||
Master.EnableRefreshBtn = false;
|
||||
Master.EnableSaveBtn = false;
|
||||
|
||||
base.InitPage();
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
InitControl();
|
||||
}
|
||||
}
|
||||
|
||||
#region 模板
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义函数
|
||||
|
||||
private void InitControl()
|
||||
{
|
||||
txtHasYZJL.Value = "N";
|
||||
string sXLXHID = PageParam.GetRTrimString("XLXHID");
|
||||
string sXLGGID = PageParam.GetRTrimString("XLGGID").Replace('*', '×');
|
||||
string sXLBZID = PageParam.GetRTrimString("XLBZID");
|
||||
string sDYDJID = PageParam.GetRTrimString("DYDJID");
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
SQL.Clear();
|
||||
SQL.Add(" SELECT XLXSTZYZ_JGBID,XLXSTZYZ_YZID,XLXSTZYZ_TJYS,XLXSTZYZ_YZMC,XLXSTZYZ_JJFS FROM XLXSTZYZ WHERE XLXSTZYZ_MXBH='BJD' AND XLXSTZYZ_TJYS='A' AND ISNULL(XLXSTZYZ_QYGYGXXD,'N')='Y' ");
|
||||
DataSet ds = dberp.OpenDataSet(SQL);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
lblYZID.Text = ds.Tables[0].Rows[0]["XLXSTZYZ_YZMC"].ToString().Trim();
|
||||
string sJJFS = ds.Tables[0].Rows[0]["XLXSTZYZ_JJFS"].ToString().Trim();
|
||||
string sYZID = ds.Tables[0].Rows[0]["XLXSTZYZ_YZID"].ToString().Trim();
|
||||
txtYZJGBID.Value = ds.Tables[0].Rows[0]["XLXSTZYZ_JGBID"].ToString().Trim();
|
||||
txtTJYS.Value = ds.Tables[0].Rows[0]["XLXSTZYZ_TJYS"].ToString().Trim();
|
||||
txtYZID.Value = sYZID;
|
||||
if (sJJFS.Equals("JD") || sJJFS.Equals("KD") || sJJFS.Equals("SX") || sJJFS.Equals("DD") || sJJFS.Equals("MD"))
|
||||
{
|
||||
lblDW.Text = "%";
|
||||
}
|
||||
else if (sJJFS.Equals("JJ"))
|
||||
{
|
||||
if (XLBJDUtils.GetYZXXByYZID(sYZID).XLXSTZYZ_TJLX == "1")
|
||||
lblDW.Text = "元";
|
||||
else
|
||||
lblDW.Text = "";
|
||||
}
|
||||
else if (sJJFS.Equals("MX") || sJJFS.Equals("DX"))
|
||||
{
|
||||
//乘以系数/除以系数
|
||||
lblDW.Text = "";
|
||||
txtYZZ.DecimalPlaces = 4;
|
||||
}
|
||||
bool bUseXLXSBJXLGGTHB = XLBJDUtils.UseXLXSBJXLGGTHB();
|
||||
SQL.Clear();
|
||||
SQL.Add(" select XLXSBJDYZZA_YZZ from XLXSBJDYZZA ");
|
||||
if (bUseXLXSBJXLGGTHB)
|
||||
{
|
||||
SQL.Add(" left join XLXSBJXLGGTHB on XLXSBJXLGGTHB.XLXSBJXLGGTHB_XLGGID = XLXSBJDYZZA_XLGGID ");
|
||||
}
|
||||
SQL.Add(" where XLXSBJDYZZA_JGBID=:pJGBID AND XLXSBJDYZZA_YZID=:pYZID AND XLXSBJDYZZA_XLXHID=:pXLXHID ");
|
||||
if (bUseXLXSBJXLGGTHB)
|
||||
{
|
||||
SQL.Add(" AND isnull(XLXSBJXLGGTHB.XLXSBJXLGGTHB_XLGGIDCH,' ')=:pXLGGID ");
|
||||
}
|
||||
else
|
||||
{
|
||||
SQL.Add(" AND REPLACE(XLXSBJDYZZA_XLGGID,'*','×')=:pXLGGID ");
|
||||
}
|
||||
SQL.Add(" AND XLXSBJDYZZA_XLBZID=:pXLBZID AND XLXSBJDYZZA_DYDJID=:pDYDJID ");
|
||||
SQL.ParamByName("pJGBID").Value = txtYZJGBID.Value;
|
||||
SQL.ParamByName("pYZID").Value = sYZID;
|
||||
SQL.ParamByName("pXLXHID").Value = sXLXHID;
|
||||
SQL.ParamByName("pXLGGID").Value = sXLGGID;
|
||||
SQL.ParamByName("pXLBZID").Value = sXLBZID;
|
||||
SQL.ParamByName("pDYDJID").Value = sDYDJID;
|
||||
ds = dberp.OpenDataSet(SQL);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
txtYZZ.Value = CMISproConvert.StrToFloat(ds.Tables[0].Rows[0]["XLXSBJDYZZA_YZZ"].ToString().Trim());
|
||||
txtHasYZJL.Value = "Y";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义按钮
|
||||
|
||||
protected void btnOK_Click(object sender, EventArgs e)
|
||||
{
|
||||
string sBJDID = PageParam.GetRTrimString("BJDID");
|
||||
string sBJFLID = PageParam.GetRTrimString("BJFLID");
|
||||
string sXLXHID = PageParam.GetRTrimString("XLXHID");
|
||||
string sXLGGID = PageParam.GetRTrimString("XLGGID").Replace('*','×');
|
||||
string sXLBZID = PageParam.GetRTrimString("XLBZID");
|
||||
string sDYDJID = PageParam.GetRTrimString("DYDJID");
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
SQL.Clear();
|
||||
bool bUseXLXSBJXLGGTHB = XLBJDUtils.UseXLXSBJXLGGTHB();
|
||||
if (txtHasYZJL.Value.Equals("Y"))
|
||||
{
|
||||
SQL.Add("UPDATE XLXSBJDYZZA SET XLXSBJDYZZA_YZZ=:pYZZ,XLXSBJDYZZA_WHR=:pWHR,XLXSBJDYZZA_WHRID=:pWHRID,XLXSBJDYZZA_WHSJ=:pWHSJ ");
|
||||
SQL.Add(" where XLXSBJDYZZA_JGBID=:pJGBID AND XLXSBJDYZZA_YZID=:pYZID AND XLXSBJDYZZA_XLXHID=:pXLXHID ");
|
||||
if (bUseXLXSBJXLGGTHB)
|
||||
{
|
||||
SQL.Add(" AND exists(select 1 from XLXSBJXLGGTHB where XLXSBJXLGGTHB_XLGGID = XLXSBJDYZZA_XLGGID and XLXSBJXLGGTHB_XLGGIDCH=:pXLGGID) ");
|
||||
}
|
||||
else
|
||||
{
|
||||
SQL.Add(" AND REPLACE(XLXSBJDYZZA_XLGGID,'*','×')=:pXLGGID ");
|
||||
}
|
||||
SQL.Add(" AND XLXSBJDYZZA_XLBZID=:pXLBZID AND XLXSBJDYZZA_DYDJID=:pDYDJID ");
|
||||
SQL.ParamByName("pJGBID").Value = txtYZJGBID.Value;
|
||||
SQL.ParamByName("pYZID").Value = txtYZID.Value;
|
||||
SQL.ParamByName("pXLXHID").Value = sXLXHID;
|
||||
SQL.ParamByName("pXLGGID").Value = sXLGGID;
|
||||
SQL.ParamByName("pXLBZID").Value = sXLBZID;
|
||||
SQL.ParamByName("pDYDJID").Value = sDYDJID;
|
||||
SQL.ParamByName("pYZZ").Value = txtYZZ.Value;
|
||||
SQL.ParamByName("pWHR").Value = tSession.UserName;
|
||||
SQL.ParamByName("pWHRID").Value = tSession.UserId;
|
||||
SQL.ParamByName("pWHSJ").Value = DateTime.Now;
|
||||
dberp.ExecSQL(SQL);
|
||||
// 同步XLXSBJXLGGTHB表
|
||||
if (!string.IsNullOrEmpty(sXLGGID) && !sXLGGID.Trim().Equals(""))
|
||||
{
|
||||
XLBJDUtils.SyncXLXSBJXLGGTHB_Single(dberp, sXLGGID, tSession);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
SQL.Add("insert into XLXSBJDYZZA(XLXSBJDYZZA_JGBID,XLXSBJDYZZA_YZID,XLXSBJDYZZA_XLXHID,XLXSBJDYZZA_XLGGID,XLXSBJDYZZA_XLBZID,XLXSBJDYZZA_DYDJID,XLXSBJDYZZA_YZZ,XLXSBJDYZZA_WHR,XLXSBJDYZZA_WHRID,XLXSBJDYZZA_WHSJ)");
|
||||
SQL.Add(" VALUES(:XLXSBJDYZZA_JGBID,:XLXSBJDYZZA_YZID,:XLXSBJDYZZA_XLXHID,:XLXSBJDYZZA_XLGGID,:XLXSBJDYZZA_XLBZID,:XLXSBJDYZZA_DYDJID,:XLXSBJDYZZA_YZZ,:XLXSBJDYZZA_WHR,:XLXSBJDYZZA_WHRID,:XLXSBJDYZZA_WHSJ) ");
|
||||
SQL.ParamByName("XLXSBJDYZZA_JGBID").Value = txtYZJGBID.Value;
|
||||
SQL.ParamByName("XLXSBJDYZZA_YZID").Value = txtYZID.Value;
|
||||
SQL.ParamByName("XLXSBJDYZZA_XLXHID").Value = sXLXHID;
|
||||
SQL.ParamByName("XLXSBJDYZZA_XLGGID").Value = sXLGGID;
|
||||
SQL.ParamByName("XLXSBJDYZZA_XLBZID").Value = sXLBZID;
|
||||
SQL.ParamByName("XLXSBJDYZZA_DYDJID").Value = sDYDJID;
|
||||
SQL.ParamByName("XLXSBJDYZZA_YZZ").Value = txtYZZ.Value;
|
||||
SQL.ParamByName("XLXSBJDYZZA_WHR").Value = tSession.UserName;
|
||||
SQL.ParamByName("XLXSBJDYZZA_WHRID").Value = tSession.UserId;
|
||||
SQL.ParamByName("XLXSBJDYZZA_WHSJ").Value = DateTime.Now;
|
||||
dberp.ExecSQL(SQL);
|
||||
// 同步XLXSBJXLGGTHB表
|
||||
if (!string.IsNullOrEmpty(sXLGGID) && !sXLGGID.Trim().Equals(""))
|
||||
{
|
||||
XLBJDUtils.SyncXLXSBJXLGGTHB_Single(dberp, sXLGGID, tSession);
|
||||
}
|
||||
}
|
||||
string sBJDXHList = "";
|
||||
SQL.Clear();
|
||||
SQL.Add(" select XLXSBJDMX_XH from XLXSBJDMX left join XLXSBJXLGGTHB on XLXSBJXLGGTHB.XLXSBJXLGGTHB_XLGGID = XLXSBJDMX_XLGGID");
|
||||
SQL.Add(" where XLXSBJDMX_BJDID=:pBJDID and XLXSBJDMX_XLXHID=:pXLXHID AND XLXSBJXLGGTHB.XLXSBJXLGGTHB_XLGGIDCH =:pXLGGID ");
|
||||
SQL.Add(" AND XLXSBJDMX_XLBZID=:pXLBZID AND XLXSBJDMX_DYDJID=:pDYDJID ");
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
SQL.ParamByName("pXLXHID").Value = sXLXHID;
|
||||
SQL.ParamByName("pXLGGID").Value = sXLGGID;
|
||||
SQL.ParamByName("pXLBZID").Value = sXLBZID;
|
||||
SQL.ParamByName("pDYDJID").Value = sDYDJID;
|
||||
DataSet ds = dberp.OpenDataSet(SQL);
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
sBJDXHList += ds.Tables[0].Rows[i]["XLXSBJDMX_XH"].ToString().Trim() + ",";
|
||||
}
|
||||
sBJDXHList = sBJDXHList.TrimEnd(',');
|
||||
string sErrorMsg = "";
|
||||
try
|
||||
{
|
||||
Dictionary<string, string> dicTJYZList = new Dictionary<string, string>();
|
||||
dicTJYZList.Add("sTJYSList" + txtTJYS.Value.Trim(),txtYZID.Value.Trim());
|
||||
dberp.BeginTrans();
|
||||
XLBJDUtils.AddXLXSBJDYZZ0(dberp, sBJDID, sBJFLID, GetOption(100860000, "BJU003"), dicTJYZList, false, sBJDXHList, 0, false, false, false, ref sErrorMsg);
|
||||
XLBJDCalcUtils.CalcAfterBJDYZZChange(dberp, SQL, sBJDID, 1, sBJDXHList, false, false, false, "", DateTime.MinValue, GetOption(100860000, "BJU002"), GetOption(100860000, "BJU003"), tSession.UserId, tSession.UserName, ref sErrorMsg);
|
||||
if (!sErrorMsg.Trim().Equals(""))
|
||||
{
|
||||
throw new Exception(sErrorMsg);
|
||||
}
|
||||
dberp.CommitTrans();
|
||||
}
|
||||
catch (Exception eX)
|
||||
{
|
||||
dberp.RollbackTrans();
|
||||
ShowMessage(eX.Message);
|
||||
return;
|
||||
}
|
||||
DialogOperationScript dos = new DialogOperationScript(this);
|
||||
dos.SetOwnerControlValue(PageParam.GetRTrimString("txtOpen"), "CLOSE");
|
||||
dos.CloseSelf();
|
||||
dos.Execute();
|
||||
}
|
||||
|
||||
protected void btnQX_Click(object sender, EventArgs e)
|
||||
{
|
||||
CloseWindow();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 控件事件
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+124
@@ -0,0 +1,124 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJCPFZGX_SZFZFInfo 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJCPFZGX_SZFZFInfo {
|
||||
|
||||
/// <summary>
|
||||
/// tbl1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table tbl1;
|
||||
|
||||
/// <summary>
|
||||
/// btnQD 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnQD;
|
||||
|
||||
/// <summary>
|
||||
/// btnQX 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnQX;
|
||||
|
||||
/// <summary>
|
||||
/// lblYZID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblYZID;
|
||||
|
||||
/// <summary>
|
||||
/// txtYZZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtYZZ;
|
||||
|
||||
/// <summary>
|
||||
/// lblDW 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblDW;
|
||||
|
||||
/// <summary>
|
||||
/// txtYZID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtYZID;
|
||||
|
||||
/// <summary>
|
||||
/// txtYZJGBID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtYZJGBID;
|
||||
|
||||
/// <summary>
|
||||
/// txtTJYS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtTJYS;
|
||||
|
||||
/// <summary>
|
||||
/// txtHasYZJL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtHasYZJL;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleCard Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleCard)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+957
@@ -0,0 +1,957 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BJCPJXDR.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJCPJXDR" Title="线缆报价深度解析导入" %>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>线缆报价深度解析导入</title>
|
||||
<link rel="stylesheet" href="images/elmentindex.css">
|
||||
<link rel="stylesheet" href="images/BJCPJXDR.css?mod=20260527_colresize3">
|
||||
<script src="images/vue@3.js"></script>
|
||||
<script src="images/element-plus.js"></script>
|
||||
<script src="images/icons-vue.js"></script>
|
||||
<script src="images/zhCn.js"></script>
|
||||
<script src="images/h5player.min.js"></script>
|
||||
<!-- 使用可靠的SheetJS CDN -->
|
||||
<script src="images/xlsx.full.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true"></asp:ScriptManager>
|
||||
<gtc:gtTextBox ID="txtBJDID" runat="server" Width="120px" style="display: none"></gtc:gtTextBox>
|
||||
<gtc:gtTextBox ID="txtBJU059" runat="server" Width="120px" style="display: none"></gtc:gtTextBox>
|
||||
<div id="app">
|
||||
<el-container class="container">
|
||||
<el-header height="auto">
|
||||
<el-row :gutter="8" class="toolbar">
|
||||
<el-col :span="24" style="display: flex; gap: 8px;justify-content: space-between;">
|
||||
<div style="display: flex; gap: 8px;">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
plain
|
||||
@click="pasteData"
|
||||
:disabled="isLoading"
|
||||
icon="DocumentCopy">
|
||||
点击粘贴数据
|
||||
</el-button>
|
||||
<el-button
|
||||
type="danger"
|
||||
size="small"
|
||||
plain
|
||||
@click="deleteData"
|
||||
:disabled="isLoading"
|
||||
icon="DocumentCopy">
|
||||
删除当前数据
|
||||
</el-button>
|
||||
|
||||
<!-- 新增导入Excel按钮 -->
|
||||
<el-button
|
||||
type="success"
|
||||
size="small"
|
||||
plain
|
||||
:disabled="isLoading"
|
||||
@click="showImportDialog('excel')"
|
||||
icon="Upload">
|
||||
导入Excel
|
||||
</el-button>
|
||||
<!-- 新增导出Excel按钮 -->
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
plain
|
||||
:disabled="tableData.length === 0"
|
||||
@click="exportExcel"
|
||||
icon="Download">
|
||||
导出Excel
|
||||
</el-button>
|
||||
<!-- 新增PDF导入按钮 -->
|
||||
<el-button
|
||||
type="success"
|
||||
size="small"
|
||||
plain
|
||||
:disabled="isLoading"
|
||||
@click="showImportDialog('pdf')"
|
||||
icon="Document">
|
||||
导入PDF
|
||||
</el-button>
|
||||
<el-button
|
||||
type="success"
|
||||
size="small"
|
||||
plain
|
||||
@click="showRuleDialog"
|
||||
icon="Plus"
|
||||
:disabled="!selectedProduct">
|
||||
新增解析规则
|
||||
</el-button>
|
||||
|
||||
<el-button
|
||||
type="warning"
|
||||
size="small"
|
||||
plain
|
||||
@click="showEXRuleDialog"
|
||||
:disabled="isLoading"
|
||||
icon="Connection">
|
||||
按已有规则解析
|
||||
</el-button>
|
||||
<el-button
|
||||
type="warning"
|
||||
size="small"
|
||||
plain
|
||||
:disabled="isLoading"
|
||||
@click="InsertBJDMX"
|
||||
icon="CirclePlusFilled">
|
||||
导入报价单明细
|
||||
</el-button>
|
||||
</div>
|
||||
<div>
|
||||
<el-button
|
||||
type="danger"
|
||||
size="small"
|
||||
plain
|
||||
:disabled="isLoading"
|
||||
@click="closePage"
|
||||
icon="Close">
|
||||
关闭
|
||||
</el-button>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="8" class="toolbar toolbar-batch">
|
||||
<el-col :span="24">
|
||||
<div class="toolbar-batch-row">
|
||||
<el-button
|
||||
type="info"
|
||||
size="small"
|
||||
plain
|
||||
:disabled="!hasSelectedRows"
|
||||
@click="showBatchUpdateDialog('standard')"
|
||||
icon="Edit">
|
||||
批量调整标准
|
||||
</el-button>
|
||||
<el-button
|
||||
type="info"
|
||||
size="small"
|
||||
plain
|
||||
:disabled="!hasSelectedRows"
|
||||
@click="showBatchUpdateDialog('voltage')"
|
||||
icon="Edit">
|
||||
批量调整电压
|
||||
</el-button>
|
||||
<el-button
|
||||
type="info"
|
||||
size="small"
|
||||
plain
|
||||
:disabled="!hasSelectedRows"
|
||||
@click="showBatchUpdateDialog('model')"
|
||||
icon="Edit">
|
||||
批量调整型号
|
||||
</el-button>
|
||||
<el-button
|
||||
type="info"
|
||||
size="small"
|
||||
plain
|
||||
:disabled="!hasSelectedRows"
|
||||
@click="showBatchUpdateDialog('spec')"
|
||||
icon="Edit">
|
||||
批量调整规格
|
||||
</el-button>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="24" class="toolbar" style="display: flex; align-items: center;margin-bottom: 12px; margin-top: 18px;">
|
||||
<!-- 解析规则 -->
|
||||
<el-form :inline="true" label-position="middle" style="margin-right: 16px;">
|
||||
<el-form-item
|
||||
label="解析规则:"
|
||||
style="margin-left: 10px; display: flex; align-items: center;"
|
||||
label-width="auto">
|
||||
<el-select
|
||||
v-model="filterRule"
|
||||
clearable
|
||||
@focus="loadRuleOptions"
|
||||
@change="loadTableData"
|
||||
placeholder="请选择解析规则"
|
||||
style=" min-width: 180px;">
|
||||
<el-option
|
||||
v-for="rule in ruleOptions"
|
||||
:key="rule.value"
|
||||
:label="rule.label"
|
||||
:value="rule.value">
|
||||
<template #default>
|
||||
<div style="display: flex; justify-content: space-between; align-items: center; width: 100%;">
|
||||
<span>{{ rule.label }}</span>
|
||||
<el-button
|
||||
v-if="rule.value !== '0' && rule.value !== '-1' && rule.value !== '-2'"
|
||||
type="danger"
|
||||
size="small"
|
||||
text
|
||||
@click.stop="deleteRule(rule.value)"
|
||||
style="padding: 2px 6px; font-size: 12px;">
|
||||
删除
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<!-- 通用解析规则 -->
|
||||
<el-form :inline="true" label-position="middle" style="margin-right: 16px;">
|
||||
<el-form-item
|
||||
label="通用解析规则:"
|
||||
style="margin-left: 10px; display: flex; align-items: center;"
|
||||
label-width="auto">
|
||||
<el-select
|
||||
v-model="ExRule"
|
||||
clearable
|
||||
@focus="loadCommonRuleOptions"
|
||||
@change="loadTableData"
|
||||
placeholder="请选择通用解析规则"
|
||||
style=" min-width: 180px;">
|
||||
<el-option
|
||||
v-for="rule in commonRuleOptions"
|
||||
:key="rule.value"
|
||||
:label="rule.label"
|
||||
:value="rule.value">
|
||||
<template #default>
|
||||
<div style="display: flex; justify-content: space-between; align-items: center; width: 100%;">
|
||||
<span>{{ rule.label }}</span>
|
||||
<el-button
|
||||
v-if="rule.value !== '0'"
|
||||
type="danger"
|
||||
size="small"
|
||||
text
|
||||
@click.stop="deleteCommonRule(rule.value)"
|
||||
style="padding: 2px 6px; font-size: 12px;">
|
||||
删除
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<!-- 导入情况 -->
|
||||
<el-form :inline="true" label-position="middle">
|
||||
<el-form-item
|
||||
label="导入情况:"
|
||||
style="display: flex; align-items: center; "
|
||||
label-width="auto">
|
||||
<el-select
|
||||
v-model="filterStatus"
|
||||
clearable
|
||||
placeholder="请选择导入情况"
|
||||
@change="loadTableData"
|
||||
style="margin-left: 8px; min-width: 180px;">
|
||||
<el-option
|
||||
v-for="Statu in statusOptions"
|
||||
:key="Statu.value"
|
||||
:label="Statu.label"
|
||||
:value="Statu.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<!-- 新增查询条件 -->
|
||||
<!-- 报价产品(模糊查询) -->
|
||||
<el-form :inline="true" label-position="middle">
|
||||
<el-form-item
|
||||
label="报价产品:"
|
||||
style="display: flex; align-items: center; margin-left: 16px;"
|
||||
label-width="auto">
|
||||
<el-input
|
||||
v-model="productQuery"
|
||||
placeholder="请输入报价产品"
|
||||
clearable
|
||||
@change="loadTableData"
|
||||
style="margin-left: 8px; width: 150px;">
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<!-- 线缆型号(模糊查询) -->
|
||||
<el-form :inline="true" label-position="middle">
|
||||
<el-form-item
|
||||
label="线缆型号:"
|
||||
style="display: flex; align-items: center; margin-left: 16px;"
|
||||
label-width="auto">
|
||||
<el-input
|
||||
v-model="modelQuery"
|
||||
placeholder="请输入线缆型号"
|
||||
clearable
|
||||
@change="loadTableData"
|
||||
style="margin-left: 8px; width: 150px;">
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<!-- 线缆规格(模糊查询) -->
|
||||
<el-form :inline="true" label-position="middle">
|
||||
<el-form-item
|
||||
label="线缆规格:"
|
||||
style="display: flex; align-items: center; margin-left: 16px;"
|
||||
label-width="auto">
|
||||
<el-input
|
||||
v-model="specQuery"
|
||||
placeholder="请输入线缆规格"
|
||||
clearable
|
||||
@change="loadTableData"
|
||||
style="margin-left: 8px; width: 150px;">
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<!-- 线缆标准(精确查询) -->
|
||||
<el-form :inline="true" label-position="middle">
|
||||
<el-form-item
|
||||
label="线缆标准:"
|
||||
style="display: flex; align-items: center; margin-left: 16px;"
|
||||
label-width="auto">
|
||||
<el-select
|
||||
v-model="standardQuery"
|
||||
placeholder="请选择线缆标准"
|
||||
clearable
|
||||
@change="loadTableData"
|
||||
style="margin-left: 8px; width: 150px;">
|
||||
<el-option
|
||||
v-for="option in standardOptions"
|
||||
:key="option.value"
|
||||
:label="option.label"
|
||||
:value="option.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<!-- 电压等级(精确查询) -->
|
||||
<el-form :inline="true" label-position="middle">
|
||||
<el-form-item
|
||||
label="电压等级:"
|
||||
style="display: flex; align-items: center; margin-left: 16px;"
|
||||
label-width="auto">
|
||||
<el-select
|
||||
v-model="voltageQuery"
|
||||
placeholder="请选择电压等级"
|
||||
clearable
|
||||
@change="loadTableData"
|
||||
style="margin-left: 8px; width: 150px;">
|
||||
<el-option
|
||||
v-for="option in voltageOptions"
|
||||
:key="option.value"
|
||||
:label="option.label"
|
||||
:value="option.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<!-- 缺失要素(多选,对应解析字段为空) -->
|
||||
<el-form :inline="true" label-position="middle">
|
||||
<el-form-item
|
||||
label="缺失要素:"
|
||||
style="display: flex; align-items: center; margin-left: 16px;"
|
||||
label-width="auto">
|
||||
<el-select
|
||||
v-model="missingElementQuery"
|
||||
multiple
|
||||
collapse-tags
|
||||
collapse-tags-tooltip
|
||||
placeholder="请选择缺失要素"
|
||||
clearable
|
||||
@change="loadTableData"
|
||||
style="margin-left: 8px; min-width: 220px;">
|
||||
<el-option
|
||||
v-for="option in missingElementOptions"
|
||||
:key="option.value"
|
||||
:label="option.label"
|
||||
:value="option.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-form :inline="true" label-position="middle">
|
||||
<el-form-item
|
||||
label=""
|
||||
style="display: flex; align-items: center; margin-left: 16px;"
|
||||
label-width="auto">
|
||||
<el-checkbox
|
||||
v-model="filterEquivalent"
|
||||
@change="loadTableData"
|
||||
style="margin-left: 8px;">
|
||||
仅显示等效数据
|
||||
</el-checkbox>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
|
||||
</el-row>
|
||||
</el-header>
|
||||
|
||||
<el-main class="table-container" style="height: calc(100vh - 200px);">
|
||||
<!-- 使用 el-table-v2 替换原有表格 -->
|
||||
<el-table-v2
|
||||
:columns="tableColumnsV2"
|
||||
:data="tableData"
|
||||
:width="tableWidth"
|
||||
:height="tableHeight"
|
||||
fixed
|
||||
:row-height="42"
|
||||
:estimated-row-height="42"
|
||||
:header-height="42"
|
||||
:row-class="getRowClass"
|
||||
:row-event-handlers="{onClick:handleRowClick}"
|
||||
v-loading="loading"
|
||||
element-loading-background="rgba(245, 245, 245, 0.8)"
|
||||
element-loading-spinner="el-icon-loading">
|
||||
</el-table-v2>
|
||||
</el-main>
|
||||
|
||||
<!-- 规则配置对话框 -->
|
||||
<el-dialog
|
||||
v-model="ruleDialogVisible"
|
||||
width="950px"
|
||||
align-center="false"
|
||||
custom-class="rule-config-dialog"
|
||||
:close-on-click-modal="false"
|
||||
:show-close="false">
|
||||
<template #header>
|
||||
<div class="rule-config-header">
|
||||
<i class="el-icon-setting"></i>
|
||||
解析规则配置
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<div class="rule-config-content">
|
||||
<!-- 规则串部分 -->
|
||||
<div class="rule-string-section">
|
||||
<div class="rule-string-label">解析规则串:</div>
|
||||
<textarea
|
||||
ref="ruleEditor"
|
||||
v-model="ruleString"
|
||||
class="rule-string-textarea"
|
||||
placeholder="在此输入解析规则串..."
|
||||
@select="saveSelection"></textarea>
|
||||
<button type="button" class="unmark-button" @click="unmarkAll">取消标记</button>
|
||||
</div>
|
||||
|
||||
<!-- 规则配置项 -->
|
||||
<div class="rule-config-item">
|
||||
<div class="rule-item-label"><span class="rule-syntax-link" @click="showXlxhDialog">线缆型号</span></div>
|
||||
<div class="rule-input-container">
|
||||
<div class="rule-input rule-input-with-arrow">
|
||||
<span>{{ modelValue }}</span>
|
||||
<i class="el-icon-arrow-down rule-input-arrow"></i>
|
||||
</div>
|
||||
<div class="rule-input rule-input-with-arrow">
|
||||
<span class="rule-highlight">{{ modelActualValue }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rule-tags-container">
|
||||
<span class="rule-tag" @click="markPrefixCode">前缀码</span>
|
||||
<span class="rule-tag" @click="markModelCode">型号码</span>
|
||||
<span class="rule-tag" @click="markSuffixCode">后缀码</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rule-config-item">
|
||||
<div class="rule-item-label"><span class="rule-syntax-link" @click="showXLGGDialog">线缆规格</span></div>
|
||||
<div class="rule-input-container">
|
||||
<div class="rule-input rule-input-with-arrow">
|
||||
<span>{{ specValue }}</span>
|
||||
<i class="el-icon-arrow-down rule-input-arrow"></i>
|
||||
</div>
|
||||
<div class="rule-input rule-input-with-arrow">
|
||||
<span class="rule-highlight">{{ specActualValue }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="rule-tags-container">
|
||||
<span class="rule-tag" @click="markWireCount">芯数</span>
|
||||
<span class="rule-tag" @click="markSection">截面</span>
|
||||
<span class="rule-tag" @click="markWireGroup">线组数</span>
|
||||
<span class="rule-tag" @click="markWirePair">线对数</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rule-config-item">
|
||||
<div class="rule-item-label"><span class="rule-syntax-link" @click="showDYDJDialog">电压等级</span></div>
|
||||
<div class="rule-input-container">
|
||||
<div class="rule-input rule-input-with-arrow">
|
||||
<span>{{ voltageValue }}</span>
|
||||
<i class="el-icon-arrow-down rule-input-arrow"></i>
|
||||
</div>
|
||||
<div class="rule-input rule-input-with-arrow">
|
||||
<span class="rule-highlight">{{ voltageActualValue }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="rule-tags-container">
|
||||
<span class="rule-tag" @click="markVoltagePhase">相电压</span>
|
||||
<span class="rule-tag" @click="markVoltageLine">线电压</span>
|
||||
<span class="rule-tag" @click="markVoltageUnit">电压单位</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rule-config-item">
|
||||
<div class="rule-item-label"><span class="rule-syntax-link" @click="showXlBZDialog">线缆标准</span></div>
|
||||
<div class="rule-input-container">
|
||||
<div class="rule-input rule-input-with-arrow">
|
||||
<span>{{ standardValue }}</span>
|
||||
<i class="el-icon-arrow-down rule-input-arrow"></i>
|
||||
</div>
|
||||
<div class="rule-input rule-input-with-arrow">
|
||||
<span class="rule-highlight">{{ standardActualValue }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="rule-tags-container">
|
||||
<span class="rule-tag" @click="markStandardName">标准名</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button
|
||||
type="danger"
|
||||
size="small"
|
||||
@click="closeRuleDialog"
|
||||
plain
|
||||
icon="close">
|
||||
取 消
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
plain
|
||||
@click="saveRuleConfig('N')"
|
||||
:disabled="isLoading"
|
||||
icon="check">
|
||||
保 存
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
plain
|
||||
@click="saveRuleConfig('Y')"
|
||||
:disabled="isLoading"
|
||||
icon="check">
|
||||
保存为通用解析规则
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
<!-- todo 线缆型号语法dialog改造-->
|
||||
<el-dialog
|
||||
v-model="YFGZDialogVisible"
|
||||
width="950px"
|
||||
align-center="false"
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<iframe
|
||||
:src="iframeUrl"
|
||||
frameborder="0"
|
||||
style="width: 920px; height: 590px"
|
||||
></iframe>
|
||||
</el-dialog>
|
||||
|
||||
<!-- todo end -->
|
||||
<!-- Excel导入对话框 -->
|
||||
<el-dialog
|
||||
v-model="importDialogVisible"
|
||||
width="800px"
|
||||
custom-class="import-dialog"
|
||||
:close-on-click-modal="false"
|
||||
:show-close="false">
|
||||
|
||||
<template #header>
|
||||
<div class="import-header">
|
||||
<i class="el-icon-document-add"></i>
|
||||
Excel数据导入
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<div class="import-content">
|
||||
<!-- 文件上传区域 -->
|
||||
<div class="upload-section" @click="triggerFileInput" style="cursor: pointer;">
|
||||
<input
|
||||
type="file"
|
||||
ref="fileInput"
|
||||
style="display: none"
|
||||
accept=".xlsx, .xls"
|
||||
@change="handleFileChange">
|
||||
|
||||
<div class="upload-icon">
|
||||
<i class="el-icon-upload"></i>
|
||||
</div>
|
||||
|
||||
<div class="upload-text">
|
||||
<div>点击或将Excel文件拖拽到此区域</div>
|
||||
<div style="font-size: 14px; margin-top: 5px; color: #909399;">支持扩展名: .xlsx, .xls</div>
|
||||
</div>
|
||||
|
||||
<div class="file-info" v-if="excelFile">
|
||||
<div class="file-name">{{ excelFile.name }}</div>
|
||||
<div class="file-size">{{ formatFileSize(excelFile.size) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 列映射区域 -->
|
||||
<div class="mapping-section" v-if="excelColumns.length > 0">
|
||||
<div class="mapping-title">
|
||||
<i class="el-icon-set-up"></i>列映射配置 (将Excel列与系统字段对应)
|
||||
</div>
|
||||
<div class="mapping-grid">
|
||||
<template v-for="(col, index) in tableColumns" :key="index">
|
||||
<div class="system-column">{{ col }}</div>
|
||||
<div class="mapping-arrow">→</div>
|
||||
<el-select
|
||||
v-model="columnMapping[col]"
|
||||
clearable
|
||||
placeholder="请选择Excel列"
|
||||
class="column-select"
|
||||
size="small">
|
||||
<el-option
|
||||
v-for="(excelCol, idx) in excelColumns"
|
||||
:key="idx"
|
||||
:label="excelCol"
|
||||
:value="excelCol">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 预览区域 -->
|
||||
<div class="preview-section" v-if="previewData.length > 0">
|
||||
<div class="mapping-title">
|
||||
<i class="el-icon-view"></i>数据预览 (前10行)
|
||||
</div>
|
||||
<div class="preview-table">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th v-for="(col, index) in excelColumns" :key="index">{{ col }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(row, rowIndex) in previewData" :key="rowIndex">
|
||||
<td v-for="(col, colIndex) in excelColumns" :key="colIndex">
|
||||
{{ row[col] || '-' }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 进度条 -->
|
||||
<div class="import-progress" v-if="importing">
|
||||
<el-progress
|
||||
:percentage="importProgress"
|
||||
:stroke-width="18"
|
||||
:status="importStatus"
|
||||
text-inside>
|
||||
</el-progress>
|
||||
<div style="text-align: center; margin-top: 10px; color: #606266;">
|
||||
处理中: 已导入 {{ importedCount }} / {{ totalRows }} 条记录
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 消息区域 -->
|
||||
<div class="success-message" v-if="successMessage">
|
||||
<i class="el-icon-success" style="margin-right: 5px;"></i> {{ successMessage }}
|
||||
</div>
|
||||
|
||||
<div class="error-message" v-if="errorMessage">
|
||||
<i class="el-icon-error" style="margin-right: 5px;"></i> {{ errorMessage }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<template #footer>
|
||||
<div class="dialog-footer" style="display: flex; justify-content: space-between;">
|
||||
<div>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="resetImport"
|
||||
plain>
|
||||
重置
|
||||
</el-button>
|
||||
</div>
|
||||
<div>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="closeImportDialog"
|
||||
plain>
|
||||
取 消
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
:disabled="!canImport"
|
||||
:loading="importing"
|
||||
@click="startImport"
|
||||
plain>
|
||||
{{ importing ? '导入中...' : '开始导入' }}
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<div v-if="showCenterProgress" class="progress-overlay">
|
||||
<div class="progress-container">
|
||||
<el-progress
|
||||
type="circle"
|
||||
:percentage="centerProgressPercentage"
|
||||
:width="120"
|
||||
:status="centerProgressStatus">
|
||||
</el-progress>
|
||||
<p class="progress-text">{{ centerProgressText }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<el-dialog
|
||||
v-model="EXRuleDialogVisible"
|
||||
width="500px"
|
||||
custom-class="filter-dialog"
|
||||
title="按已有规则解析"
|
||||
:close-on-click-modal="false">
|
||||
<template #title>
|
||||
<div class="dialog-header">
|
||||
<i class="el-icon-filter" style="margin-right:8px"></i>
|
||||
按已有规则解析
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<el-form label-position="top">
|
||||
<el-form-item label="解析规则">
|
||||
<el-select
|
||||
v-model="ExRule"
|
||||
clearable
|
||||
placeholder="请选择解析规则">
|
||||
<el-option
|
||||
v-for="rule in ruleOptions"
|
||||
:key="rule.value"
|
||||
:label="rule.label"
|
||||
:value="rule.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button
|
||||
type="danger"
|
||||
size="small"
|
||||
@click="closeEXRuleDialog"
|
||||
plain
|
||||
icon="close">
|
||||
取 消
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
plain
|
||||
@click="applyRule"
|
||||
icon="check">
|
||||
应 用
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
<!-- 手动粘贴对话框 -->
|
||||
<el-dialog
|
||||
v-model="manualPasteDialogVisible"
|
||||
title="手动粘贴数据"
|
||||
width="800px"
|
||||
:close-on-click-modal="false"
|
||||
@close="pasteStep = 'input'">
|
||||
|
||||
<template #header>
|
||||
<div style="display: flex; align-items: center;">
|
||||
<el-icon style="margin-right: 8px;"><DocumentCopy /></el-icon>
|
||||
<span>手动粘贴数据</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<div v-show="pasteStep === 'input'">
|
||||
<div style="margin-bottom: 16px; color: #f56c6c;">
|
||||
<el-icon><Warning /></el-icon>
|
||||
<span style="margin-left: 8px;">当前为非HTTPS环境,请将数据粘贴到下方文本框</span>
|
||||
</div>
|
||||
|
||||
<el-input
|
||||
v-model="manualPasteText"
|
||||
type="textarea"
|
||||
:rows="10"
|
||||
placeholder="请将Excel或表格数据粘贴到这里,支持制表符分隔的多列数据..."
|
||||
resize="none"
|
||||
></el-input>
|
||||
</div>
|
||||
|
||||
<div v-show="pasteStep === 'mapping'" style="display: none;">
|
||||
<div style="margin-bottom: 8px; color: #606266;">
|
||||
检测到 {{ detectedColumnCount }} 列数据,请为每列选择对应的字段。"报价产品"为必填项。
|
||||
</div>
|
||||
|
||||
<div style="margin-bottom: 16px;">
|
||||
<div style="font-weight: bold; margin-bottom: 8px; color: #606266;">数据预览(前5行):</div>
|
||||
<el-table :data="detectedPreviewRows" border size="small" max-height="200">
|
||||
<el-table-column prop="rowIndex" label="行号" width="60" align="center" />
|
||||
<el-table-column
|
||||
v-for="n in visibleColumns"
|
||||
:key="n"
|
||||
:label="'列' + n"
|
||||
min-width="100">
|
||||
<template #default="scope">
|
||||
{{ scope.row['col' + (n - 1)] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div style="font-weight: bold; margin-bottom: 8px; color: #606266;">列映射设置:</div>
|
||||
<el-row :gutter="15">
|
||||
<el-col :span="8" v-for="n in visibleColumns" :key="n" style="margin-bottom: 10px;">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<span style="width: 50px; font-size: 13px; color: #409eff; font-weight: bold;">列 {{ n }}</span>
|
||||
<el-select
|
||||
v-model="columnFieldMapping[n]"
|
||||
placeholder="选择字段"
|
||||
style="flex: 1;"
|
||||
size="small">
|
||||
<el-option
|
||||
v-for="option in pasteFieldOptions"
|
||||
:key="option.value"
|
||||
:label="option.label"
|
||||
:value="option.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button
|
||||
@click="handleManualPasteCancel"
|
||||
plain>
|
||||
取 消
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="pasteStep === 'input'"
|
||||
type="primary"
|
||||
@click="handleManualPasteConfirm"
|
||||
:disabled="!manualPasteText.trim()"
|
||||
plain>
|
||||
下一步:设置列映射
|
||||
</el-button>
|
||||
<template v-if="pasteStep === 'mapping'">
|
||||
<el-button
|
||||
@click="handleMappingBack"
|
||||
plain>
|
||||
上一步
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="handleMappingConfirm"
|
||||
plain>
|
||||
确 定 导 入
|
||||
</el-button>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 批量调整对话框 -->
|
||||
<el-dialog
|
||||
v-model="batchUpdateDialogVisible"
|
||||
width="500px"
|
||||
:title="batchUpdateTitle"
|
||||
:close-on-click-modal="false">
|
||||
|
||||
<template #header>
|
||||
<div class="dialog-header">
|
||||
<i class="el-icon-edit" style="margin-right:8px"></i>
|
||||
{{ batchUpdateTitle }}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<el-form label-position="top">
|
||||
<!-- 标准/电压:保持原下拉选择(与改版前一致) -->
|
||||
<el-form-item
|
||||
v-if="batchUpdateType === 'standard' || batchUpdateType === 'voltage'"
|
||||
:label="batchUpdateType === 'standard' ? '线缆标准' : '电压等级'">
|
||||
<el-select
|
||||
v-model="batchUpdateValue"
|
||||
:placeholder="batchUpdateType === 'standard' ? '请输入或选择线缆标准' : '请输入或选择电压等级'"
|
||||
filterable
|
||||
:filter-method="filterBatchUpdateOptions"
|
||||
default-first-option
|
||||
clearable
|
||||
style="width: 100%;">
|
||||
<el-option
|
||||
v-for="option in batchUpdateFilteredOptions"
|
||||
:key="option.value"
|
||||
:label="option.label"
|
||||
:value="option.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- 型号/规格:文本输入 -->
|
||||
<el-form-item
|
||||
v-else-if="batchUpdateType === 'model' || batchUpdateType === 'spec'"
|
||||
:label="batchUpdateType === 'model' ? '线缆型号' : '线缆规格'">
|
||||
<el-input
|
||||
v-model="batchUpdateValue"
|
||||
:placeholder="batchUpdateType === 'model' ? '请输入线缆型号' : '请输入线缆规格'"
|
||||
clearable
|
||||
style="width: 100%;" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="选中的记录数量">
|
||||
<div style="color: #606266; font-size: 14px;">
|
||||
已选中 {{ selectedRowsCount }} 条记录
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button
|
||||
type="danger"
|
||||
size="small"
|
||||
@click="closeBatchUpdateDialog"
|
||||
plain>
|
||||
取 消
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
@click="confirmBatchUpdate"
|
||||
:disabled="!batchUpdateValue.trim()"
|
||||
plain>
|
||||
确 定
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</el-container>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script src='images/BJCPJXDR.js?ver=<%=GThinking.N_MISPROAS.Web.ResFile.GetVer("Q_YCGL8") %>&mod=20260527_batchfilter'></script>
|
||||
</html>
|
||||
@@ -0,0 +1,85 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using System.Collections.Generic;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class BJCPJXDR : HelpBase
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860140;
|
||||
this.UMName = "线缆报价深度解析导入";
|
||||
if (PageParam.ContainsKey("BJDID"))
|
||||
{
|
||||
string BJDID = PageParam.GetRTrimString("BJDID").Trim();
|
||||
if (!BJDID.Equals(""))
|
||||
txtBJDID.Text = BJDID;
|
||||
|
||||
}
|
||||
base.InitPage();
|
||||
|
||||
// 供 BJCPJXDR.js getDefaultPasteFieldOrder() 读取:报价业务配置「深度解析导入默认排序」
|
||||
if (!IsPostBack)
|
||||
txtBJU059.Text = GetDefaultColumnOrderFromConfigTable();
|
||||
}
|
||||
|
||||
private string GetDefaultColumnOrderFromConfigTable()
|
||||
{
|
||||
string defaultOrder = "包号,报价产品,技术规范书ID,计量单位,数量";
|
||||
Dictionary<string, string> codeNameMap = new Dictionary<string, string>();
|
||||
codeNameMap.Add("E", "包号");
|
||||
codeNameMap.Add("1", "报价产品");
|
||||
codeNameMap.Add("K", "技术规范书ID");
|
||||
codeNameMap.Add("4", "计量单位");
|
||||
codeNameMap.Add("5", "数量");
|
||||
|
||||
try
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sql = new TSQL(dberp);
|
||||
sql.Clear();
|
||||
sql.Add(" select XLXSBJPZ_FZNRDRLM from XLXSBJPZ where XLXSBJPZ_MDID = 100860140 ");
|
||||
DataSet ds = dberp.OpenDataSet(sql);
|
||||
if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0)
|
||||
return defaultOrder;
|
||||
|
||||
string raw = ds.Tables[0].Rows[0]["XLXSBJPZ_FZNRDRLM"].ToString().Trim();
|
||||
if (raw.Equals(""))
|
||||
return defaultOrder;
|
||||
|
||||
// 严格按配置表中保存的顺序读取
|
||||
List<string> selectedColumns = new List<string>();
|
||||
foreach (string item in raw.Split(','))
|
||||
{
|
||||
string code = item.Trim();
|
||||
if ((code == "E" || code == "1" || code == "K" || code == "4" || code == "5")
|
||||
&& !selectedColumns.Contains(codeNameMap[code]))
|
||||
{
|
||||
selectedColumns.Add(codeNameMap[code]);
|
||||
}
|
||||
}
|
||||
|
||||
// 补齐到5列,未配置的位置按“不导入”
|
||||
while (selectedColumns.Count < 5)
|
||||
selectedColumns.Add("不导入");
|
||||
|
||||
return string.Join(",", selectedColumns.ToArray());
|
||||
}
|
||||
catch
|
||||
{
|
||||
return defaultOrder;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+67
@@ -0,0 +1,67 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJCPJXDR 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJCPJXDR {
|
||||
|
||||
/// <summary>
|
||||
/// Head1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// ScriptManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.ScriptManager ScriptManager1;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJDID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtBJDID;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJU059 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtBJU059;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,228 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>线缆型号语法设置</title>
|
||||
<link rel="stylesheet" href="images/YFGZ.css">
|
||||
<script src="images/vue.global.prod.js"></script>
|
||||
<script src="images/index.full.min.js"></script>
|
||||
<link rel="stylesheet" href="images/BJCPJXDR_XHYF.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<div class="syntax-container">
|
||||
<header class="syntax-header">
|
||||
<div class="header-left">
|
||||
<div class="app-icon">
|
||||
<i class="el-icon-link"></i>
|
||||
</div>
|
||||
<div class="app-title">
|
||||
<h1>{{title}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="syntax-body">
|
||||
<div class="info-group">
|
||||
<div class="info-group-title">
|
||||
<h2>标记串</h2>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<textarea
|
||||
v-model="filteredMarkString"
|
||||
class="input-field textarea"
|
||||
placeholder="例如:[型号码=YJLW][后缀码=03][前缀码=ZC][后缀码=Z]"
|
||||
readonly></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="info-group">
|
||||
<div class="info-group-title">
|
||||
<h2>语法串</h2>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<div style="position: relative;">
|
||||
<textarea
|
||||
ref="syntaxEditor"
|
||||
v-model="syntaxString"
|
||||
class="input-field textarea"
|
||||
placeholder="例如:[前缀码c][型号码a][后缀码b][后缀码d]"
|
||||
@click="updateCursorPosition"
|
||||
@keyup="updateCursorPosition"
|
||||
@input="updateActualValue"></textarea>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="info-group">
|
||||
<div class="info-group-title">
|
||||
<h2>标记控制</h2>
|
||||
</div>
|
||||
<div class="mark-controls">
|
||||
<button class="mark-btn" @click="moveMarkForward">
|
||||
<i class="el-icon-back"></i>前移标记字
|
||||
</button>
|
||||
<button class="mark-btn" @click="moveMarkBackward">
|
||||
<i class="el-icon-right"></i>后移标记字
|
||||
</button>
|
||||
<button class="mark-btn" @click="openInsertMarkDialog">
|
||||
<i class="el-icon-plus"></i>插入标记字
|
||||
</button>
|
||||
<button class="mark-btn" @click="deleteMark">
|
||||
<i class="el-icon-delete"></i>删除标记字
|
||||
</button>
|
||||
<button class="mark-btn" @click="openInsertConnectorDialog">
|
||||
<i class="el-icon-connection"></i>插入链接符
|
||||
</button>
|
||||
<button class="mark-btn" @click="deleteConnector">
|
||||
<i class="el-icon-remove"></i>删除链接符
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="result-display">
|
||||
<div class="info-group-title">
|
||||
<h2>实际值</h2>
|
||||
</div>
|
||||
|
||||
<div class="result-item">
|
||||
<div class="result-label">当前实际值</div>
|
||||
<div class="result-value">
|
||||
<span class="highlight">{{ actualValue || '待生成...' }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="action-buttons">
|
||||
<button class="action-btn btn-default" @click="resetForm">
|
||||
<i class="el-icon-refresh"></i> 重置
|
||||
</button>
|
||||
<button class="action-btn btn-primary" @click="saveSyntax">
|
||||
<i class="el-icon-document-checked"></i> 保存
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 插入标记字对话框 -->
|
||||
<el-dialog
|
||||
v-model="showMarkDialog"
|
||||
width="600px"
|
||||
height="800px"
|
||||
custom-class="mark-dialog"
|
||||
:close-on-click-modal="false"
|
||||
:show-close="false">
|
||||
<template #header>
|
||||
<div class="mark-dialog-header">
|
||||
<i class="el-icon-circle-plus"></i>
|
||||
插入标记字
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<div class="mark-dialog-body">
|
||||
<div class="input-group">
|
||||
<label>请选择要插入的标记字:</label>
|
||||
<div class="mark-options">
|
||||
<div
|
||||
v-for="(mark, index) in availableMarks"
|
||||
:key="index"
|
||||
class="mark-option"
|
||||
@click="insertSelectedMark(mark)">
|
||||
{{ mark }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button
|
||||
type="danger"
|
||||
size="small"
|
||||
@click="showMarkDialog = false"
|
||||
plain
|
||||
>
|
||||
取 消
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 插入链接符对话框 -->
|
||||
<el-dialog
|
||||
v-model="showConnectorDialog"
|
||||
width="600px"
|
||||
height="800px"
|
||||
custom-class="connector-dialog"
|
||||
:close-on-click-modal="false"
|
||||
:show-close="false">
|
||||
<template #header>
|
||||
<div class="connector-dialog-header">
|
||||
<i class="el-icon-connection"></i>
|
||||
插入链接符
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<div class="connector-dialog-body">
|
||||
<div class="input-group">
|
||||
<el-form-item label="插入链接符:" required class="form-item">
|
||||
<el-select
|
||||
v-model="selectedConnector"
|
||||
class="full-width custom-input-select"
|
||||
filterable
|
||||
allow-create
|
||||
clearable
|
||||
placeholder="输入或选择链接符"
|
||||
:loading="loadingConnectors"
|
||||
@change="handleConnectorChange"
|
||||
>
|
||||
<!-- 静态选项:预定义连接符 -->
|
||||
<el-option
|
||||
v-for="connector in predefinedConnectors"
|
||||
:key="connector"
|
||||
:label="connector"
|
||||
:value="connector"
|
||||
/>
|
||||
|
||||
<!-- 自定义输入选项 -->
|
||||
<el-option
|
||||
v-if="customConnector && !predefinedConnectors.includes(customConnector)"
|
||||
:key="'custom-' + customConnector"
|
||||
:label="customConnector + ' (自定义)'"
|
||||
:value="customConnector"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
@click="showConnectorDialog = false"
|
||||
plain
|
||||
>
|
||||
取 消
|
||||
</el-button>
|
||||
<el-button
|
||||
type="danger"
|
||||
size="small"
|
||||
@click="insertSelectedConnector(selectedConnector)"
|
||||
plain
|
||||
>
|
||||
插 入
|
||||
</el-button>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
<script src='images/BJCPJXDR_XHYF.js?ver=<%=GThinking.N_MISPROAS.Web.ResFile.GetVer("Q_YCGL8") %>'></script>
|
||||
<script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,228 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>线缆型号语法设置</title>
|
||||
<link rel="stylesheet" href="images/YFGZ.css">
|
||||
<script src="images/vue.global.prod.js"></script>
|
||||
<script src="images/index.full.min.js"></script>
|
||||
<link rel="stylesheet" href="images/BJCPJXDR_XHYF.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<div class="syntax-container">
|
||||
<header class="syntax-header">
|
||||
<div class="header-left">
|
||||
<div class="app-icon">
|
||||
<i class="el-icon-link"></i>
|
||||
</div>
|
||||
<div class="app-title">
|
||||
<h1>{{title}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="syntax-body">
|
||||
<div class="info-group">
|
||||
<div class="info-group-title">
|
||||
<h2>标记串</h2>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<textarea
|
||||
v-model="filteredMarkString"
|
||||
class="input-field textarea"
|
||||
placeholder="例如:[型号码=YJLW][后缀码=03][前缀码=ZC][后缀码=Z]"
|
||||
readonly></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="info-group">
|
||||
<div class="info-group-title">
|
||||
<h2>语法串</h2>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<div style="position: relative;">
|
||||
<textarea
|
||||
ref="syntaxEditor"
|
||||
v-model="syntaxString"
|
||||
class="input-field textarea"
|
||||
placeholder="例如:[前缀码c][型号码a][后缀码b][后缀码d]"
|
||||
@click="updateCursorPosition"
|
||||
@keyup="updateCursorPosition"
|
||||
@input="updateActualValue"></textarea>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="info-group">
|
||||
<div class="info-group-title">
|
||||
<h2>标记控制</h2>
|
||||
</div>
|
||||
<div class="mark-controls">
|
||||
<button class="mark-btn" @click="moveMarkForward">
|
||||
<i class="el-icon-back"></i>前移标记字
|
||||
</button>
|
||||
<button class="mark-btn" @click="moveMarkBackward">
|
||||
<i class="el-icon-right"></i>后移标记字
|
||||
</button>
|
||||
<button class="mark-btn" @click="openInsertMarkDialog">
|
||||
<i class="el-icon-plus"></i>插入标记字
|
||||
</button>
|
||||
<button class="mark-btn" @click="deleteMark">
|
||||
<i class="el-icon-delete"></i>删除标记字
|
||||
</button>
|
||||
<button class="mark-btn" @click="openInsertConnectorDialog">
|
||||
<i class="el-icon-connection"></i>插入链接符
|
||||
</button>
|
||||
<button class="mark-btn" @click="deleteConnector">
|
||||
<i class="el-icon-remove"></i>删除链接符
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="result-display">
|
||||
<div class="info-group-title">
|
||||
<h2>实际值</h2>
|
||||
</div>
|
||||
|
||||
<div class="result-item">
|
||||
<div class="result-label">当前实际值</div>
|
||||
<div class="result-value">
|
||||
<span class="highlight">{{ actualValue || '待生成...' }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="action-buttons">
|
||||
<button class="action-btn btn-default" @click="resetForm">
|
||||
<i class="el-icon-refresh"></i> 重置
|
||||
</button>
|
||||
<button class="action-btn btn-primary" @click="saveSyntax">
|
||||
<i class="el-icon-document-checked"></i> 保存
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 插入标记字对话框 -->
|
||||
<el-dialog
|
||||
v-model="showMarkDialog"
|
||||
width="600px"
|
||||
height="800px"
|
||||
custom-class="mark-dialog"
|
||||
:close-on-click-modal="false"
|
||||
:show-close="false">
|
||||
<template #header>
|
||||
<div class="mark-dialog-header">
|
||||
<i class="el-icon-circle-plus"></i>
|
||||
插入标记字
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<div class="mark-dialog-body">
|
||||
<div class="input-group">
|
||||
<label>请选择要插入的标记字:</label>
|
||||
<div class="mark-options">
|
||||
<div
|
||||
v-for="(mark, index) in availableMarks"
|
||||
:key="index"
|
||||
class="mark-option"
|
||||
@click="insertSelectedMark(mark)">
|
||||
{{ mark }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button
|
||||
type="danger"
|
||||
size="small"
|
||||
@click="showMarkDialog = false"
|
||||
plain
|
||||
>
|
||||
取 消
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 插入链接符对话框 -->
|
||||
<el-dialog
|
||||
v-model="showConnectorDialog"
|
||||
width="600px"
|
||||
height="800px"
|
||||
custom-class="connector-dialog"
|
||||
:close-on-click-modal="false"
|
||||
:show-close="false">
|
||||
<template #header>
|
||||
<div class="connector-dialog-header">
|
||||
<i class="el-icon-connection"></i>
|
||||
插入链接符
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<div class="connector-dialog-body">
|
||||
<div class="input-group">
|
||||
<el-form-item label="插入链接符:" required class="form-item">
|
||||
<el-select
|
||||
v-model="selectedConnector"
|
||||
class="full-width custom-input-select"
|
||||
filterable
|
||||
allow-create
|
||||
clearable
|
||||
placeholder="输入或选择链接符"
|
||||
:loading="loadingConnectors"
|
||||
@change="handleConnectorChange"
|
||||
>
|
||||
<!-- 静态选项:预定义连接符 -->
|
||||
<el-option
|
||||
v-for="connector in predefinedConnectors"
|
||||
:key="connector"
|
||||
:label="connector"
|
||||
:value="connector"
|
||||
/>
|
||||
|
||||
<!-- 自定义输入选项 -->
|
||||
<el-option
|
||||
v-if="customConnector && !predefinedConnectors.includes(customConnector)"
|
||||
:key="'custom-' + customConnector"
|
||||
:label="customConnector + ' (自定义)'"
|
||||
:value="customConnector"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
@click="showConnectorDialog = false"
|
||||
plain
|
||||
>
|
||||
取 消
|
||||
</el-button>
|
||||
<el-button
|
||||
type="danger"
|
||||
size="small"
|
||||
@click="insertSelectedConnector(selectedConnector)"
|
||||
plain
|
||||
>
|
||||
插 入
|
||||
</el-button>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
<script src='images/BJCPJXDR_XHYF.js?ver=<%=GThinking.N_MISPROAS.Web.ResFile.GetVer("Q_YCGL8") %>'></script>
|
||||
<script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,228 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>线缆型号语法设置</title>
|
||||
<link rel="stylesheet" href="images/YFGZ.css">
|
||||
<script src="images/vue.global.prod.js"></script>
|
||||
<script src="images/index.full.min.js"></script>
|
||||
<link rel="stylesheet" href="images/BJCPJXDR_XHYF.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<div class="syntax-container">
|
||||
<header class="syntax-header">
|
||||
<div class="header-left">
|
||||
<div class="app-icon">
|
||||
<i class="el-icon-link"></i>
|
||||
</div>
|
||||
<div class="app-title">
|
||||
<h1>{{title}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="syntax-body">
|
||||
<div class="info-group">
|
||||
<div class="info-group-title">
|
||||
<h2>标记串</h2>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<textarea
|
||||
v-model="filteredMarkString"
|
||||
class="input-field textarea"
|
||||
placeholder="例如:[型号码=YJLW][后缀码=03][前缀码=ZC][后缀码=Z]"
|
||||
readonly></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="info-group">
|
||||
<div class="info-group-title">
|
||||
<h2>语法串</h2>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<div style="position: relative;">
|
||||
<textarea
|
||||
ref="syntaxEditor"
|
||||
v-model="syntaxString"
|
||||
class="input-field textarea"
|
||||
placeholder="例如:[前缀码c][型号码a][后缀码b][后缀码d]"
|
||||
@click="updateCursorPosition"
|
||||
@keyup="updateCursorPosition"
|
||||
@input="updateActualValue"></textarea>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="info-group">
|
||||
<div class="info-group-title">
|
||||
<h2>标记控制</h2>
|
||||
</div>
|
||||
<div class="mark-controls">
|
||||
<button class="mark-btn" @click="moveMarkForward">
|
||||
<i class="el-icon-back"></i>前移标记字
|
||||
</button>
|
||||
<button class="mark-btn" @click="moveMarkBackward">
|
||||
<i class="el-icon-right"></i>后移标记字
|
||||
</button>
|
||||
<button class="mark-btn" @click="openInsertMarkDialog">
|
||||
<i class="el-icon-plus"></i>插入标记字
|
||||
</button>
|
||||
<button class="mark-btn" @click="deleteMark">
|
||||
<i class="el-icon-delete"></i>删除标记字
|
||||
</button>
|
||||
<button class="mark-btn" @click="openInsertConnectorDialog">
|
||||
<i class="el-icon-connection"></i>插入链接符
|
||||
</button>
|
||||
<button class="mark-btn" @click="deleteConnector">
|
||||
<i class="el-icon-remove"></i>删除链接符
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="result-display">
|
||||
<div class="info-group-title">
|
||||
<h2>实际值</h2>
|
||||
</div>
|
||||
|
||||
<div class="result-item">
|
||||
<div class="result-label">当前实际值</div>
|
||||
<div class="result-value">
|
||||
<span class="highlight">{{ actualValue || '待生成...' }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="action-buttons">
|
||||
<button class="action-btn btn-default" @click="resetForm">
|
||||
<i class="el-icon-refresh"></i> 重置
|
||||
</button>
|
||||
<button class="action-btn btn-primary" @click="saveSyntax">
|
||||
<i class="el-icon-document-checked"></i> 保存
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 插入标记字对话框 -->
|
||||
<el-dialog
|
||||
v-model="showMarkDialog"
|
||||
width="600px"
|
||||
height="800px"
|
||||
custom-class="mark-dialog"
|
||||
:close-on-click-modal="false"
|
||||
:show-close="false">
|
||||
<template #header>
|
||||
<div class="mark-dialog-header">
|
||||
<i class="el-icon-circle-plus"></i>
|
||||
插入标记字
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<div class="mark-dialog-body">
|
||||
<div class="input-group">
|
||||
<label>请选择要插入的标记字:</label>
|
||||
<div class="mark-options">
|
||||
<div
|
||||
v-for="(mark, index) in availableMarks"
|
||||
:key="index"
|
||||
class="mark-option"
|
||||
@click="insertSelectedMark(mark)">
|
||||
{{ mark }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button
|
||||
type="danger"
|
||||
size="small"
|
||||
@click="showMarkDialog = false"
|
||||
plain
|
||||
>
|
||||
取 消
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 插入链接符对话框 -->
|
||||
<el-dialog
|
||||
v-model="showConnectorDialog"
|
||||
width="600px"
|
||||
height="800px"
|
||||
custom-class="connector-dialog"
|
||||
:close-on-click-modal="false"
|
||||
:show-close="false">
|
||||
<template #header>
|
||||
<div class="connector-dialog-header">
|
||||
<i class="el-icon-connection"></i>
|
||||
插入链接符
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<div class="connector-dialog-body">
|
||||
<div class="input-group">
|
||||
<el-form-item label="插入链接符:" required class="form-item">
|
||||
<el-select
|
||||
v-model="selectedConnector"
|
||||
class="full-width custom-input-select"
|
||||
filterable
|
||||
allow-create
|
||||
clearable
|
||||
placeholder="输入或选择链接符"
|
||||
:loading="loadingConnectors"
|
||||
@change="handleConnectorChange"
|
||||
>
|
||||
<!-- 静态选项:预定义连接符 -->
|
||||
<el-option
|
||||
v-for="connector in predefinedConnectors"
|
||||
:key="connector"
|
||||
:label="connector"
|
||||
:value="connector"
|
||||
/>
|
||||
|
||||
<!-- 自定义输入选项 -->
|
||||
<el-option
|
||||
v-if="customConnector && !predefinedConnectors.includes(customConnector)"
|
||||
:key="'custom-' + customConnector"
|
||||
:label="customConnector + ' (自定义)'"
|
||||
:value="customConnector"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
@click="showConnectorDialog = false"
|
||||
plain
|
||||
>
|
||||
取 消
|
||||
</el-button>
|
||||
<el-button
|
||||
type="danger"
|
||||
size="small"
|
||||
@click="insertSelectedConnector(selectedConnector)"
|
||||
plain
|
||||
>
|
||||
插 入
|
||||
</el-button>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
<script src='images/BJCPJXDR_XHYF.js?ver=<%=GThinking.N_MISPROAS.Web.ResFile.GetVer("Q_YCGL8") %>'></script>
|
||||
<script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,157 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>线缆型号语法设置</title>
|
||||
<link rel="stylesheet" href="images/YFGZ.css">
|
||||
<script src="images/vue.global.prod.js"></script>
|
||||
<script src="images/index.full.min.js"></script>
|
||||
<link rel="stylesheet" href="images/BJCPJXDR_XHYF.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<div class="syntax-container">
|
||||
<header class="syntax-header">
|
||||
<div class="header-left">
|
||||
<div class="app-icon">
|
||||
<i class="el-icon-link"></i>
|
||||
</div>
|
||||
<div class="app-title">
|
||||
<h1>{{title}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="syntax-body">
|
||||
<div class="info-group">
|
||||
<div class="info-group-title">
|
||||
<h2>标记串</h2>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<textarea
|
||||
v-model="filteredMarkString"
|
||||
class="input-field textarea"
|
||||
placeholder="例如:[型号码=YJLW][后缀码=03][前缀码=ZC][后缀码=Z]"
|
||||
readonly></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="info-group">
|
||||
<div class="info-group-title">
|
||||
<h2>语法串</h2>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<div style="position: relative;">
|
||||
<textarea
|
||||
ref="syntaxEditor"
|
||||
v-model="syntaxString"
|
||||
class="input-field textarea"
|
||||
placeholder="例如:[前缀码c][型号码a][后缀码b][后缀码d]"
|
||||
@click="updateCursorPosition"
|
||||
@keyup="updateCursorPosition"
|
||||
@input="updateActualValue"></textarea>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="info-group">
|
||||
<div class="info-group-title">
|
||||
<h2>标记控制</h2>
|
||||
</div>
|
||||
<div class="mark-controls">
|
||||
<button class="mark-btn" @click="moveMarkForward">
|
||||
<i class="el-icon-back"></i>前移标记字
|
||||
</button>
|
||||
<button class="mark-btn" @click="moveMarkBackward">
|
||||
<i class="el-icon-right"></i>后移标记字
|
||||
</button>
|
||||
<!-- <button class="mark-btn" @click="openInsertMarkDialog">
|
||||
<i class="el-icon-plus"></i>插入标记字
|
||||
</button> -->
|
||||
<el-popover trigger="hover" @show="openInsertMarkDialog" placement="bottom" :width="300">
|
||||
<template #reference>
|
||||
<el-button class="mark-btn">
|
||||
<i class="el-icon-plus"></i>插入标记字</el-button>
|
||||
</template>
|
||||
<div class="mark-dialog-body">
|
||||
<div class="input-group">
|
||||
<div class="mark-options">
|
||||
<div
|
||||
v-for="(mark, index) in availableMarks"
|
||||
:key="index"
|
||||
class="mark-option"
|
||||
@click="insertSelectedMark(mark)">
|
||||
{{ mark }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</el-popover>
|
||||
|
||||
<button class="mark-btn" @click="deleteMark">
|
||||
<i class="el-icon-delete"></i>删除标记字
|
||||
</button>
|
||||
<!-- <button class="mark-btn" @click="openInsertConnectorDialog">
|
||||
<i class="el-icon-connection"></i>插入链接符
|
||||
</button> -->
|
||||
|
||||
<el-popover placement="bottom" :width="300">
|
||||
<template #reference>
|
||||
<el-button class="mark-btn">
|
||||
<i class="el-icon-plus"></i>插入链接符</el-button>
|
||||
</template>
|
||||
<div class="mark-dialog-body">
|
||||
<div class="input-group">
|
||||
<div class="mark-options">
|
||||
<div
|
||||
v-for="mark in predefinedConnectors"
|
||||
class="mark-option"
|
||||
@click="insertSelectedConnector(mark)">
|
||||
{{ mark }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</el-popover>
|
||||
|
||||
<button class="mark-btn" @click="deleteConnector">
|
||||
<i class="el-icon-remove"></i>删除链接符
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="result-display">
|
||||
<div class="info-group-title">
|
||||
<h2>实际值</h2>
|
||||
</div>
|
||||
|
||||
<div class="result-item">
|
||||
<div class="result-label">当前实际值</div>
|
||||
<div class="result-value">
|
||||
<span class="highlight">{{ actualValue || '待生成...' }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="action-buttons">
|
||||
<button class="action-btn btn-default" @click="resetForm">
|
||||
<i class="el-icon-refresh"></i> 重置
|
||||
</button>
|
||||
<button class="action-btn btn-primary" @click="saveSyntax">
|
||||
<i class="el-icon-document-checked"></i> 保存
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 插入标记字对话框 -->
|
||||
|
||||
|
||||
</div>
|
||||
<script src='images/BJCPJXDR_XHYF.js?ver=<%=GThinking.N_MISPROAS.Web.ResFile.GetVer("Q_YCGL8") %>'></script>
|
||||
<script>
|
||||
</body>
|
||||
</html>
|
||||
+176
@@ -0,0 +1,176 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
using GThinking.N_MISPROAS.Net;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLBJPJDWZL", Umid = 100860132, IsWorkFlow = false, UseWhr = false,
|
||||
QuerySelSql = @"select XLBJPJDWZL_XLXHID , XLBJPJDWZL_DYDJID, XLBJPJDWZL_XLGGID, XLBJPJDWZL_XLBZID,
|
||||
XLBJPJDWZL_PJDWZL, XLBJPJDWZL_BJCPJLDW, XLBJPJDWZL_WHR, XLBJPJDWZL_WHRID, XLBJPJDWZL_WHSJ
|
||||
from XLBJPJDWZL where 1=1
|
||||
order by XLBJPJDWZL_XLXHID",
|
||||
|
||||
EntitySelSql = @"select XLBJPJDWZL_XLXHID, XLBJPJDWZL_XLXHID as OLD_XLBJPJDWZL_XLXHID,
|
||||
XLBJPJDWZL_DYDJID, XLBJPJDWZL_DYDJID as OLD_XLBJPJDWZL_DYDJID,
|
||||
XLBJPJDWZL_XLGGID, XLBJPJDWZL_XLGGID as OLD_XLBJPJDWZL_XLGGID,
|
||||
XLBJPJDWZL_XLBZID, XLBJPJDWZL_XLBZID as OLD_XLBJPJDWZL_XLBZID,
|
||||
XLBJPJDWZL_PJDWZL, XLBJPJDWZL_BJCPJLDW, XLBJPJDWZL_WHR, XLBJPJDWZL_WHRID, XLBJPJDWZL_WHSJ
|
||||
from XLBJPJDWZL
|
||||
where XLBJPJDWZL_XLXHID=:OLD_XLBJPJDWZL_XLXHID
|
||||
and XLBJPJDWZL_DYDJID = :OLD_XLBJPJDWZL_DYDJID
|
||||
and XLBJPJDWZL_XLGGID = :OLD_XLBJPJDWZL_XLGGID
|
||||
and XLBJPJDWZL_XLBZID = :OLD_XLBJPJDWZL_XLBZID",
|
||||
|
||||
|
||||
UpdateSql = @"update XLBJPJDWZL set XLBJPJDWZL_XLXHID =:XLBJPJDWZL_XLXHID, XLBJPJDWZL_DYDJID =:XLBJPJDWZL_DYDJID,
|
||||
XLBJPJDWZL_XLGGID =:XLBJPJDWZL_XLGGID, XLBJPJDWZL_XLBZID =:XLBJPJDWZL_XLBZID,
|
||||
XLBJPJDWZL_PJDWZL =:XLBJPJDWZL_PJDWZL, XLBJPJDWZL_BJCPJLDW=:XLBJPJDWZL_BJCPJLDW, XLBJPJDWZL_WHR =:XLBJPJDWZL_WHR,
|
||||
XLBJPJDWZL_WHRID =:XLBJPJDWZL_WHRID, XLBJPJDWZL_WHSJ =:XLBJPJDWZL_WHSJ
|
||||
where XLBJPJDWZL_XLXHID =:OLD_XLBJPJDWZL_XLXHID
|
||||
and XLBJPJDWZL_DYDJID = :OLD_XLBJPJDWZL_DYDJID
|
||||
and XLBJPJDWZL_XLGGID = :OLD_XLBJPJDWZL_XLGGID
|
||||
and XLBJPJDWZL_XLBZID = :OLD_XLBJPJDWZL_XLBZID",//OLD_U_GXWG_WGXH
|
||||
|
||||
InsertSql = "insert into XLBJPJDWZL " + "\r\n"
|
||||
+ "(XLBJPJDWZL_XLXHID, XLBJPJDWZL_DYDJID, XLBJPJDWZL_XLGGID, XLBJPJDWZL_XLBZID, XLBJPJDWZL_PJDWZL,XLBJPJDWZL_BJCPJLDW, XLBJPJDWZL_WHR, XLBJPJDWZL_WHRID, XLBJPJDWZL_WHSJ)" + "\r\n"
|
||||
+ "values" + "\r\n"
|
||||
+ "(:XLBJPJDWZL_XLXHID, :XLBJPJDWZL_DYDJID, :XLBJPJDWZL_XLGGID, :XLBJPJDWZL_XLBZID, :XLBJPJDWZL_PJDWZL,:XLBJPJDWZL_BJCPJLDW ,:XLBJPJDWZL_WHR, :XLBJPJDWZL_WHRID, :XLBJPJDWZL_WHSJ)",
|
||||
|
||||
DeleteSql = "delete from XLBJPJDWZL where XLBJPJDWZL_XLXHID =:OLD_XLBJPJDWZL_XLXHID and XLBJPJDWZL_DYDJID = :OLD_XLBJPJDWZL_DYDJID and XLBJPJDWZL_XLGGID = :OLD_XLBJPJDWZL_XLGGID and XLBJPJDWZL_XLBZID = :OLD_XLBJPJDWZL_XLBZID")]
|
||||
public class BJCPPJDWZL : EntityManager
|
||||
{
|
||||
#region 字段属性
|
||||
|
||||
private string _XLBJPJDWZL_XLXHID;//线缆型号ID
|
||||
[ColumnMap(DbField = "XLBJPJDWZL_XLXHID", CtrlName = "cbxXLXHID", DbTitle = "线缆型号编码", Type = FieldType.CBX, DefaultValue = "",
|
||||
IsAllowNull = false, IsKey = true, Length = 40)]
|
||||
public string XLBJPJDWZL_XLXHID
|
||||
{
|
||||
get { return _XLBJPJDWZL_XLXHID; }
|
||||
set { _XLBJPJDWZL_XLXHID = value; }
|
||||
}
|
||||
|
||||
private string _OLD_XLBJPJDWZL_XLXHID;
|
||||
[ColumnMap(DbField = "OLD_XLBJPJDWZL_XLXHID", CtrlName = "cbxoldXLXHID", DbTitle = "原线缆型号编码", Type = FieldType.HiddenField, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 40, PrintVisible = false)]
|
||||
public string OLD_XLBJPJDWZL_XLXHID
|
||||
{
|
||||
get { return _OLD_XLBJPJDWZL_XLXHID; }
|
||||
set { _OLD_XLBJPJDWZL_XLXHID = value; }
|
||||
}
|
||||
//
|
||||
private string _XLBJPJDWZL_DYDJID;//电压等级ID
|
||||
[ColumnMap(DbField = "XLBJPJDWZL_DYDJID", CtrlName = "cbxDYDJID", DbTitle = "电压等级编码", Type = FieldType.CBX, DefaultValue = "",
|
||||
IsAllowNull = false, IsKey = true, Length = 40)]
|
||||
public string XLBJPJDWZL_DYDJID
|
||||
{
|
||||
get { return _XLBJPJDWZL_DYDJID; }
|
||||
set { _XLBJPJDWZL_DYDJID = value; }
|
||||
}
|
||||
|
||||
private string _OLD_XLBJPJDWZL_DYDJID;
|
||||
[ColumnMap(DbField = "OLD_XLBJPJDWZL_DYDJID", CtrlName = "cbxoldDYDJID", DbTitle = "原电压等级编码", Type = FieldType.HiddenField, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 40, PrintVisible = false)]
|
||||
public string OLD_XLBJPJDWZL_DYDJID
|
||||
{
|
||||
get { return _OLD_XLBJPJDWZL_DYDJID; }
|
||||
set { _OLD_XLBJPJDWZL_DYDJID = value; }
|
||||
}
|
||||
|
||||
private string _XLBJPJDWZL_XLGGID;//线缆规格编码ID
|
||||
[ColumnMap(DbField = "XLBJPJDWZL_XLGGID", CtrlName = "txtXLGGID", DbTitle = "线缆规格编码", Type = FieldType.C, DefaultValue = "",
|
||||
IsAllowNull = false, IsKey = true, Length = 40)]
|
||||
public string XLBJPJDWZL_XLGGID
|
||||
{
|
||||
get { return _XLBJPJDWZL_XLGGID; }
|
||||
set { _XLBJPJDWZL_XLGGID = value; }
|
||||
}
|
||||
|
||||
private string _OLD_XLBJPJDWZL_XLGGID;
|
||||
[ColumnMap(DbField = "OLD_XLBJPJDWZL_XLGGID", CtrlName = "txtoldXLGGID", DbTitle = "原线缆规格编码", Type = FieldType.HiddenField, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 40, PrintVisible = false)]
|
||||
public string OLD_XLBJPJDWZL_XLGGID
|
||||
{
|
||||
get { return _OLD_XLBJPJDWZL_XLGGID; }
|
||||
set { _OLD_XLBJPJDWZL_XLGGID = value; }
|
||||
}
|
||||
|
||||
private string _XLBJPJDWZL_XLBZID;//线缆标准编码ID
|
||||
[ColumnMap(DbField = "XLBJPJDWZL_XLBZID", CtrlName = "cbxXLBZID", DbTitle = "线缆标准编码", Type = FieldType.CBX, DefaultValue = "",
|
||||
IsAllowNull = false, IsKey = true, Length = 40)]
|
||||
public string XLBJPJDWZL_XLBZID
|
||||
{
|
||||
get { return _XLBJPJDWZL_XLBZID; }
|
||||
set { _XLBJPJDWZL_XLBZID = value; }
|
||||
}
|
||||
|
||||
private string _OLD_XLBJPJDWZL_XLBZID;
|
||||
[ColumnMap(DbField = "OLD_XLBJPJDWZL_XLBZID", CtrlName = "cbxoldXLBZID", DbTitle = "原线缆规标准码", Type = FieldType.HiddenField, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 40, PrintVisible = false)]
|
||||
public string OLD_XLBJPJDWZL_XLBZID
|
||||
{
|
||||
get { return _OLD_XLBJPJDWZL_XLBZID; }
|
||||
set { _OLD_XLBJPJDWZL_XLBZID = value; }
|
||||
}
|
||||
|
||||
private string _XLBJPJDWZL_PJDWZL;
|
||||
[ColumnMap(DbField = "XLBJPJDWZL_PJDWZL", CtrlName = "txtDWZL", DbTitle = "单位重量", Type = FieldType.F, DefaultValue = "0",
|
||||
IsAllowNull = false, IsKey = false, Length = 8)]
|
||||
public string XLBJPJDWZL_PJDWZL
|
||||
{
|
||||
get { return _XLBJPJDWZL_PJDWZL; }
|
||||
set { _XLBJPJDWZL_PJDWZL = value; }
|
||||
}
|
||||
|
||||
private string _XLBJPJDWZL_BJCPJLDW;
|
||||
[ColumnMap(DbField = "XLBJPJDWZL_BJCPJLDW", CtrlName = "txtBJCPJLDW", DbTitle = "报价产品计量单位", Type = FieldType.C, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 8)]
|
||||
public string XLBJPJDWZL_BJCPJLDW
|
||||
{
|
||||
get { return _XLBJPJDWZL_BJCPJLDW; }
|
||||
set { _XLBJPJDWZL_BJCPJLDW = value; }
|
||||
}
|
||||
|
||||
private string _XLBJPJDWZL_WHR;
|
||||
[ColumnMap(DbField = "XLBJPJDWZL_WHR", CtrlName = "txtWHR", DbTitle = "维护人", Type = FieldType.C, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 30)]
|
||||
public string XLBJPJDWZL_WHR
|
||||
{
|
||||
get { return _XLBJPJDWZL_WHR; }
|
||||
set { _XLBJPJDWZL_WHR = value; }
|
||||
}
|
||||
|
||||
private string _XLBJPJDWZL_WHRID;
|
||||
[ColumnMap(DbField = "XLBJPJDWZL_WHRID", CtrlName = "txtWHRID", DbTitle = "维护人工号", Type = FieldType.HiddenField, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||
public string XLBJPJDWZL_WHRID
|
||||
{
|
||||
get { return _XLBJPJDWZL_WHRID; }
|
||||
set { _XLBJPJDWZL_WHRID = value; }
|
||||
}
|
||||
|
||||
private string _XLBJPJDWZL_WHSJ;
|
||||
[ColumnMap(DbField = "XLBJPJDWZL_WHSJ", CtrlName = "datWHSJ", DbTitle = "维护时间", Type = FieldType.DT, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 30)]
|
||||
public string XLBJPJDWZL_WHSJ
|
||||
{
|
||||
get { return _XLBJPJDWZL_WHSJ; }
|
||||
set { _XLBJPJDWZL_WHSJ = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleCard.Master" AutoEventWireup="true"
|
||||
Codebehind="BJCPPJDWZLInfo.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJCPPJDWZLInfo" Title="报价产品盘具单位重量" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleCard.Master" %>
|
||||
<asp:Content ID="cntTool" ContentPlaceHolderID="CPHUserToolbar" runat="server">
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="cntForm" ContentPlaceHolderID="CPHForm" runat="server">
|
||||
<table align="center" style="width: 258px; height: 264px;">
|
||||
<tr>
|
||||
<td style="height: 8px"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style=" width: 39px; text-align: right;" align="right">
|
||||
<gtc:gtLabel ID="lblXLBJPJDWZL_XLXHID" runat="server" Width="81px">型号:</gtc:gtLabel></td>
|
||||
<td style=" width: 339px;" align="left">
|
||||
<gtc:gtComboBox ID="cbxXLXHID" runat="server" Width="120px" Tag="Star"></gtc:gtComboBox></td>
|
||||
</tr>
|
||||
<tr><td style="height: 8px"></td></tr>
|
||||
<tr>
|
||||
<td style=" width: 39px; text-align: right;" align="right">
|
||||
<gtc:gtLabel ID="lblXLBJPJDWZL_DYDJID" runat="server" Width="81px">电压等级:</gtc:gtLabel></td>
|
||||
<td style=" width: 339px; text-align: justify;" align="left">
|
||||
<gtc:gtComboBox ID="cbxDYDJID" runat="server" Width="120px" Tag="Star"></gtc:gtComboBox></td>
|
||||
</tr>
|
||||
<tr><td style="height: 8px"></td></tr>
|
||||
<tr>
|
||||
<td style=" width: 39px; text-align: right;" align="right">
|
||||
<gtc:gtLabel ID="lblXLBJPJDWZL_XLGGID" runat="server" Width="81px">规格:</gtc:gtLabel></td>
|
||||
<td style=" width: 339px;" align="left" valign="middle">
|
||||
<gtc:gtTextBox ID="txtXLGGID" runat="server" MaxLength="60" Width="80px" Tag="Star"></gtc:gtTextBox></td>
|
||||
</tr>
|
||||
<tr><td style="height: 8px"></td></tr>
|
||||
<tr>
|
||||
<td align="right" style="width: 37px; text-align: right">
|
||||
<gtc:gtLabel ID="lblXLBJPJDWZL_XLBZID" runat="server" Width="81px">标准:</gtc:gtLabel></td>
|
||||
<td align="left" style="width: 339px; " valign="middle">
|
||||
<gtc:gtComboBox ID="cbxXLBZID" runat="server" Width="80px" Tag="Star"></gtc:gtComboBox></td>
|
||||
</tr>
|
||||
<tr><td style="height: 8px"></td></tr>
|
||||
<tr>
|
||||
<td align="right" style="width: 120px; text-align: right">
|
||||
<gtc:gtLabel ID="lblDWZL" runat="server" Width="120px">盘具单位重量:</gtc:gtLabel></td>
|
||||
<td align="left" style="width: 339px;" valign="middle">
|
||||
<gtc:gtNumTextBox ID="txtDWZL" runat="server" Width="80px"></gtc:gtNumTextBox></td>
|
||||
</tr>
|
||||
<tr><td style="height: 8px"></td></tr>
|
||||
<tr>
|
||||
<td style=" width: 120px; text-align: right;" align="right">
|
||||
<gtc:gtLabel ID="lblBJCPJLDW" runat="server" Width="120px">报价产品计量单位:</gtc:gtLabel></td>
|
||||
<td style=" width: 339px;" align="left" valign="middle">
|
||||
<gtc:gtTextBox ID="txtBJCPJLDW" runat="server" MaxLength="8" Width="80px"></gtc:gtTextBox></td>
|
||||
</tr>
|
||||
<tr><td style="height: 8px"></td></tr>
|
||||
<tr>
|
||||
<td style=" width: 39px; text-align: right;" align="right">
|
||||
<gtc:gtLabel ID="lblWHR" runat="server" Width="81px">维护人:</gtc:gtLabel></td>
|
||||
<td style=" width: 339px;" align="left">
|
||||
<gtc:gtTextBox ID="txtWHR" runat="server" Width="80px"></gtc:gtTextBox></td>
|
||||
</tr>
|
||||
<tr><td style="height: 8px"></td></tr>
|
||||
<tr>
|
||||
<td style=" width: 39px; text-align: right;" align="right">
|
||||
<gtc:gtLabel ID="lblWHSJ" runat="server" Width="81px">维护时间:</gtc:gtLabel></td>
|
||||
<td style=" width: 339px;" align="left">
|
||||
<gtc:gtDateTime ID="datWHSJ" runat="server" Enabled="False" Width="142px">
|
||||
</gtc:gtDateTime></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<asp:HiddenField ID="cbxoldXLXHID" runat="server"></asp:HiddenField>
|
||||
<asp:HiddenField ID="cbxoldDYDJID" runat="server"></asp:HiddenField>
|
||||
<asp:HiddenField ID="txtoldXLGGID" runat="server"></asp:HiddenField>
|
||||
<asp:HiddenField ID="cbxoldXLBZID" runat="server"></asp:HiddenField>
|
||||
<asp:HiddenField ID="txtWHRID" runat="server"></asp:HiddenField>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,130 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MISPRO;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using GThinking.N_WORKFLOW;
|
||||
using GThinking.N_CONTROL;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using GThinking.N_MISPRO.Caching;
|
||||
using System.Text;
|
||||
using GThinking.N_PUBLIC;
|
||||
using GThinking.N_MISPRO.TableCache;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class BJCPPJDWZLInfo : SingleCardBase
|
||||
{
|
||||
BJCPPJDWZL entity = new BJCPPJDWZL();
|
||||
|
||||
#region 页面初始化
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860132;
|
||||
this.UMName = "报价产品盘具单位重量";
|
||||
this.CurMaster = Master;
|
||||
this.CurEntity = entity;
|
||||
this.PageHeight = 400;
|
||||
this.PageWidth = 500;
|
||||
|
||||
//this.Master.EnableAttachBtn = false;//***********
|
||||
base.InitPage();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 模板继承事件
|
||||
protected override void LoadRecord()
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.CurEntity.Param.Add("OLD_XLBJPJDWZL_XLXHID", PageParam.GetRTrimString("XLBJPJDWZL_XLXHID").ToString().Trim());
|
||||
this.CurEntity.Param.Add("OLD_XLBJPJDWZL_DYDJID", PageParam.GetRTrimString("XLBJPJDWZL_DYDJID").ToString().Trim());
|
||||
this.CurEntity.Param.Add("OLD_XLBJPJDWZL_XLGGID", PageParam.GetRTrimString("XLBJPJDWZL_XLGGID").ToString().Trim());
|
||||
this.CurEntity.Param.Add("OLD_XLBJPJDWZL_XLBZID", PageParam.GetRTrimString("XLBJPJDWZL_XLBZID").ToString().Trim());
|
||||
}
|
||||
else
|
||||
{
|
||||
this.CurEntity.Param.Add("OLD_XLBJPJDWZL_XLXHID", cbxoldXLXHID.Value);
|
||||
this.CurEntity.Param.Add("OLD_XLBJPJDWZL_DYDJID", cbxoldDYDJID.Value);
|
||||
this.CurEntity.Param.Add("OLD_XLBJPJDWZL_XLGGID", txtoldXLGGID.Value);
|
||||
this.CurEntity.Param.Add("OLD_XLBJPJDWZL_XLBZID", cbxoldXLBZID.Value);
|
||||
}
|
||||
if (!IsPostBack)
|
||||
{
|
||||
base.LoadRecord();//
|
||||
}
|
||||
cbxoldXLXHID.Value = cbxXLXHID.Text.Trim();
|
||||
cbxoldDYDJID.Value = cbxDYDJID.Text.Trim();
|
||||
txtoldXLGGID.Value = txtXLGGID.Text.Trim();
|
||||
cbxoldXLBZID.Value = cbxXLBZID.Text.Trim();
|
||||
}
|
||||
protected override void SetControlState()//此方法实现控制控件的状态,模块设计人员需要考虑与业务数据相关的控件显示方式。
|
||||
{
|
||||
base.SetControlState();
|
||||
datWHSJ.Enabled = false;
|
||||
txtWHR.Enabled = false;
|
||||
}
|
||||
protected override void SetComboxItems()
|
||||
{
|
||||
// 调用基类方法,确保基类中组合框的初始化逻辑先执行
|
||||
base.SetComboxItems();
|
||||
|
||||
// 判断当前控件状态是否为非浏览模式(如编辑、新增等)
|
||||
|
||||
TComboBox.SetComboBox("DBERP", cbxXLXHID, "select XLXHB_XLXHID,XLXHB_XLXHMC from XLXHB where 1=1 order by XLXHB_XLXHID", false);
|
||||
TComboBox.SetComboBox("DBERP", cbxXLBZID, "select XLBZ_XLBZID,XLBZ_XLBZLXMC from XLBZ where 1=1 order by XLBZ_XLBZID", false);
|
||||
TComboBox.SetComboBox("DBERP", cbxDYDJID, "select distinct XLDYDJB_DYDJID as ID,XLDYDJB_DYDJID as NAME from XLDYDJB where 1=1 order by ID", false);
|
||||
cbxDYDJID.ShowValue = false;
|
||||
}
|
||||
|
||||
protected override void OnNewRecorder()//新建记录时需要给指定的控件赋初始值,如维护人、维护时间等
|
||||
{
|
||||
base.OnNewRecorder();
|
||||
txtWHR.Text = tSession.UserName;
|
||||
txtWHRID.Value = tSession.UserId;
|
||||
datWHSJ.Value = CMISproConvert.ConvertTime(DateTime.Now);
|
||||
}
|
||||
|
||||
protected override bool Master_BeforeSaveAction(object sender, EventArgs e)//此方法实现在保存前对数据进行转换,不在数据库事务中。
|
||||
{
|
||||
txtWHRID.Value = tSession.UserId;
|
||||
txtWHR.Text = tSession.UserName;
|
||||
datWHSJ.Value = CMISproConvert.ConvertTime(DateTime.Now);
|
||||
|
||||
return base.Master_BeforeSaveAction(sender, e);
|
||||
}
|
||||
protected override void AfterSave(TDatabase db, ref bool ActionIsDone)//
|
||||
{
|
||||
base.AfterSave(db, ref ActionIsDone);
|
||||
}
|
||||
protected override bool Master_AfterSaveAction(object sender, EventArgs e)
|
||||
{
|
||||
cbxoldXLXHID.Value = cbxXLXHID.Text.Trim();
|
||||
cbxoldDYDJID.Value = cbxDYDJID.Text.Trim();
|
||||
txtoldXLGGID.Value = txtXLGGID.Text.Trim();
|
||||
cbxoldXLBZID.Value = cbxXLBZID.Text.Trim();
|
||||
return base.Master_AfterSaveAction(sender, e);
|
||||
}
|
||||
protected override void AfterDelete(TDatabase db, ref bool ActionIsDone)
|
||||
{
|
||||
base.AfterDelete(db, ref ActionIsDone);
|
||||
}
|
||||
protected override bool CanDelete()
|
||||
{
|
||||
return base.CanDelete();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Generated
+223
@@ -0,0 +1,223 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJCPPJDWZLInfo 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJCPPJDWZLInfo {
|
||||
|
||||
/// <summary>
|
||||
/// lblXLBJPJDWZL_XLXHID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblXLBJPJDWZL_XLXHID;
|
||||
|
||||
/// <summary>
|
||||
/// cbxXLXHID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxXLXHID;
|
||||
|
||||
/// <summary>
|
||||
/// lblXLBJPJDWZL_DYDJID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblXLBJPJDWZL_DYDJID;
|
||||
|
||||
/// <summary>
|
||||
/// cbxDYDJID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxDYDJID;
|
||||
|
||||
/// <summary>
|
||||
/// lblXLBJPJDWZL_XLGGID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblXLBJPJDWZL_XLGGID;
|
||||
|
||||
/// <summary>
|
||||
/// txtXLGGID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtXLGGID;
|
||||
|
||||
/// <summary>
|
||||
/// lblXLBJPJDWZL_XLBZID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblXLBJPJDWZL_XLBZID;
|
||||
|
||||
/// <summary>
|
||||
/// cbxXLBZID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxXLBZID;
|
||||
|
||||
/// <summary>
|
||||
/// lblDWZL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblDWZL;
|
||||
|
||||
/// <summary>
|
||||
/// txtDWZL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtDWZL;
|
||||
|
||||
/// <summary>
|
||||
/// lblBJCPJLDW 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblBJCPJLDW;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJCPJLDW 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtBJCPJLDW;
|
||||
|
||||
/// <summary>
|
||||
/// lblWHR 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblWHR;
|
||||
|
||||
/// <summary>
|
||||
/// txtWHR 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtWHR;
|
||||
|
||||
/// <summary>
|
||||
/// lblWHSJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblWHSJ;
|
||||
|
||||
/// <summary>
|
||||
/// datWHSJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtDateTime datWHSJ;
|
||||
|
||||
/// <summary>
|
||||
/// cbxoldXLXHID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField cbxoldXLXHID;
|
||||
|
||||
/// <summary>
|
||||
/// cbxoldDYDJID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField cbxoldDYDJID;
|
||||
|
||||
/// <summary>
|
||||
/// txtoldXLGGID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtoldXLGGID;
|
||||
|
||||
/// <summary>
|
||||
/// cbxoldXLBZID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField cbxoldXLBZID;
|
||||
|
||||
/// <summary>
|
||||
/// txtWHRID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtWHRID;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleCard Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleCard)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
||||
Codebehind="BJCPPJDWZLList.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJCPPJDWZLList" Title="报价产品盘具单位重量" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
<asp:Table ID="ButtonTable" runat="server" CellPadding="0" CellSpacing="0">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell HorizontalAlign="left" BorderWidth="0px" BorderStyle="NotSet">
|
||||
<gtc:gtToolButton ID="btnDR" runat="server" Caption="批量导入" OnClick="btnDR_OnClick" OnMenuItemClick="btnDR_MenuItemClick"
|
||||
ShowCaption="True" Width="82px" Height="19px" ButtonType="DropDown">
|
||||
<Nodes>
|
||||
<gtc:gtTreeNode Text="导出模板" Value="0" />
|
||||
</Nodes>
|
||||
</gtc:gtToolButton>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="ContentForm" ContentPlaceHolderID="CPHForm" runat="server">
|
||||
<gtc:gtGridView ID="ContentGrid" runat="server" CellPadding="2" CellSpacing="2"
|
||||
AutoGenerateColumns="False" EnableViewState="false">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="XLXHID" HeaderText="型号">
|
||||
<ItemStyle width="150px" />
|
||||
<HeaderStyle width="150px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLBJPJDWZL_DYDJID" HeaderText="电压等级">
|
||||
<ItemStyle width="100px" />
|
||||
<HeaderStyle width="100px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLBJPJDWZL_XLGGID" HeaderText="规格">
|
||||
<ItemStyle width="60px" />
|
||||
<HeaderStyle width="60px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLBZID" HeaderText="标准">
|
||||
<ItemStyle width="80px"/>
|
||||
<HeaderStyle width="80px" />
|
||||
</asp:BoundField>
|
||||
|
||||
<asp:BoundField DataField="XLBJPJDWZL_PJDWZL" HeaderText="盘具单位重量" >
|
||||
<ItemStyle width="100px" horizontalalign="Right" />
|
||||
<HeaderStyle width="100px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLBJPJDWZL_BJCPJLDW" HeaderText="报价产品计量单位">
|
||||
<ItemStyle width="100px" />
|
||||
<HeaderStyle width="100px" />
|
||||
</asp:BoundField>
|
||||
|
||||
<asp:BoundField DataField="XLBJPJDWZL_WHR" HeaderText="维护人">
|
||||
<ItemStyle width="72px" />
|
||||
<HeaderStyle width="72px" />
|
||||
</asp:BoundField>
|
||||
|
||||
<asp:BoundField DataField="XLBJPJDWZL_WHSJ" HeaderText="维护时间">
|
||||
<ItemStyle width="125px" />
|
||||
<HeaderStyle width="125px" />
|
||||
</asp:BoundField>
|
||||
</Columns>
|
||||
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="XLXHID" DropDownEnabledValue="False" EditCharCase="ecUpperCase" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLBJPJDWZL_DYDJID" DropDownEnabledValue="False" EditCharCase="ecUpperCase" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLBJPJDWZL_XLGGID" DropDownEnabledValue="False" EditCharCase="ecUpperCase" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLBZID" DropDownEnabledValue="False" EditCharCase="ecUpperCase" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLBJPJDWZL_PJDWZL" EditType="etNumber" NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>
|
||||
|
||||
<gtc:gtGridView_Column DataField="XLBJPJDWZL_BJCPJLDW" DropDownEnabledValue="False" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLBJPJDWZL_WHR" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLBJPJDWZL_WHSJ" ShowHint="True" EditType="etDateTime"
|
||||
DateTimeEditKins="dtDateTime">
|
||||
</gtc:gtGridView_Column>
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
<asp:HiddenField ID="txtExportFileURL" runat="server" />
|
||||
</asp:Content>
|
||||
Binary file not shown.
Generated
+70
@@ -0,0 +1,70 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJCPPJDWZLList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJCPPJDWZLList {
|
||||
|
||||
/// <summary>
|
||||
/// ButtonTable 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table ButtonTable;
|
||||
|
||||
/// <summary>
|
||||
/// btnDR 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnDR;
|
||||
|
||||
/// <summary>
|
||||
/// ContentGrid 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView ContentGrid;
|
||||
|
||||
/// <summary>
|
||||
/// txtExportFileURL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtExportFileURL;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleGrid Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleGrid)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/N_MODEL/Page/MasterSingleQuery.Master"
|
||||
CodeBehind="BJCPPJDWZLQuery.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJCPPJDWZLQuery" Title="查询" %>
|
||||
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleQuery.Master" %>
|
||||
<asp:Content ID="ContentQuery" ContentPlaceHolderID="CPHQuery" runat="server">
|
||||
<asp:Table ID="QueryTalbe" runat="server">
|
||||
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="25px">
|
||||
<gtc:gtLabel ID="lblXLXHID" runat="server">型号:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="25px">
|
||||
<gtc:gtComboBox ID="cbxXLXHID" Width="146px" DataField="XLBJPJDWZL_XLXHID" runat="server" Tag="Star">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="25px">
|
||||
<gtc:gtLabel ID="GtLabel2" runat="server">电压等级:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="25px">
|
||||
<gtc:gtComboBox ID="cbxDYDJID" runat="server" DataField="XLBJPJDWZL_DYDJID" Width="150px" Tag="Star">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="25px">
|
||||
<gtc:gtLabel ID="lblXLGGID" runat="server">规格:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="25px">
|
||||
<gtc:gtTextBox ID="txtXLGGID" Width="146px" DataField="XLBJPJDWZL_XLGGID" runat="server" Tag="Percent"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="25px">
|
||||
<gtc:gtLabel ID="GtLabel1" runat="server">标准:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="25px">
|
||||
<gtc:gtComboBox ID="cbxXLBZID" runat="server" DataField="XLBJPJDWZL_XLBZID" Width="150px" Tag="Star">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using GThinking.N_MISPRO;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class BJCPPJDWZLQuery : SingleQueryBase
|
||||
{
|
||||
BJCPPJDWZL_M queryentity = new BJCPPJDWZL_M();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
this.UMID = 100860132;
|
||||
this.UMName = "±¨¼Û²úÆ·Å̾ߵ¥Î»ÖØÁ¿";
|
||||
this.CurMaster = Master;
|
||||
this.CurQueryTable = QueryTalbe;
|
||||
this.CurQueryEntity = queryentity;
|
||||
if (!IsPostBack)
|
||||
{
|
||||
InitControls();
|
||||
}
|
||||
base.InitPage();
|
||||
}
|
||||
private void InitControls()
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
|
||||
TComboBox.SetComboBox("DBERP", cbxXLXHID, "select XLXHB_XLXHID,XLXHB_XLXHMC from XLXHB where 1=1 order by XLXHB_XLXHID", false);
|
||||
TComboBox.SetComboBox("DBERP", cbxXLBZID, "select XLBZ_XLBZID,XLBZ_XLBZLXMC from XLBZ where 1=1 order by XLBZ_XLBZID", false);
|
||||
TComboBox.SetComboBox("DBERP", cbxDYDJID, "select distinct XLDYDJB_DYDJID as ID,XLDYDJB_DYDJID as NAME from XLDYDJB where 1=1 order by ID", false);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Generated
+115
@@ -0,0 +1,115 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJCPPJDWZLQuery 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJCPPJDWZLQuery {
|
||||
|
||||
/// <summary>
|
||||
/// QueryTalbe 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table QueryTalbe;
|
||||
|
||||
/// <summary>
|
||||
/// lblXLXHID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblXLXHID;
|
||||
|
||||
/// <summary>
|
||||
/// cbxXLXHID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxXLXHID;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel2;
|
||||
|
||||
/// <summary>
|
||||
/// cbxDYDJID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxDYDJID;
|
||||
|
||||
/// <summary>
|
||||
/// lblXLGGID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblXLGGID;
|
||||
|
||||
/// <summary>
|
||||
/// txtXLGGID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtXLGGID;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel1;
|
||||
|
||||
/// <summary>
|
||||
/// cbxXLBZID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxXLBZID;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleQuery Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleQuery)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" Codebehind="BJCPPJDWZL_DR.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJCPPJDWZL_DR"
|
||||
MasterPageFile="~/N_MODEL/Page/MasterSingleCard.Master" Title="批量导入数据" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleCard.Master " %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="cphUserToolbar" runat="server">
|
||||
<asp:Table CellPadding="0" CellSpacing="0" runat="server" ID="tbl1">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnQD" runat="server" Caption="确 定" ShowCaption="true" OnClick="btnQD_Click"
|
||||
Width="58px" Height="19px" />
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnQX" runat="server" Caption="取 消" ShowCaption="true" OnClick="btnQX_Click"
|
||||
Width="58px" Height="19px" />
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentForm" ContentPlaceHolderID="CPHForm" runat="server">
|
||||
<center>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td style="height: 40px">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblWJ" runat="server" Text="导入文件(*.xls):"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtAsyncFileUpload ID="fupdPost" runat="server" Width="300px" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentHidden" ContentPlaceHolderID="cphBrand" runat="server">
|
||||
</asp:Content>
|
||||
|
||||
@@ -0,0 +1,232 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MISPRO;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using GThinking.N_WORKFLOW;
|
||||
using System.Data.Common;
|
||||
using GThinking.N_MODEL.Dialog;
|
||||
using GThinking.N_PUBLIC;
|
||||
using GThinking.N_PUBLIC2;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using GThinking.N_CONTROL;
|
||||
using System.Data.OleDb;
|
||||
using GThinking.N_MISPRO.MISPROAS;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLBJPJDWZL", Umid = 100860132, IsWorkFlow = false)]
|
||||
public class MXXX : EntityManager
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public partial class BJCPPJDWZL_DR : SingleCardBase
|
||||
{
|
||||
MXXX entity = new MXXX();
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860132;
|
||||
this.UMName = "导入数据";
|
||||
base.CurMaster = Master;
|
||||
base.CurEntity = entity;
|
||||
this.PageHeight = 180;
|
||||
this.PageWidth = 420;
|
||||
|
||||
Master.EnableAttachBtn = false;
|
||||
Master.EnableCancelBtn = false;
|
||||
Master.EnableCopyBtn = false;
|
||||
Master.EnableDeleteBtn = false;
|
||||
Master.EnableEditBtn = false;
|
||||
Master.EnableInsertBtn = false;
|
||||
Master.EnablePrintBtn = false;
|
||||
Master.EnableRefreshBtn = false;
|
||||
Master.EnableSaveBtn = false;
|
||||
|
||||
fupdPost.FileSaveType = gtAsyncFileUpload.DFileSaveType.SaveToPath;
|
||||
fupdPost.Filter = "XLS";
|
||||
|
||||
base.InitPage();
|
||||
}
|
||||
|
||||
protected void btnQD_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(fupdPost.FilePath.Trim()))
|
||||
{
|
||||
ShowMessage("请选择需要导入的文件!");
|
||||
return;
|
||||
}
|
||||
try
|
||||
{
|
||||
StringBuilder Error_SQL = new StringBuilder();
|
||||
try
|
||||
{
|
||||
string sPath = fupdPost.FilePath;
|
||||
string sColumns = "型号,电压等级,规格,标准,盘具单位重量,报价产品计量单位";
|
||||
string sMessage = "";
|
||||
string sErrorMsg_XLGGID = string.Empty;
|
||||
DataSet aDataExcel = TExcelData.ReadExcel(sPath.Trim(), "sheet1", sColumns, false, ref sMessage);
|
||||
if (!sMessage.Trim().Equals(""))
|
||||
{
|
||||
throw new Exception("导入文件的内容格式不正确,请按帮助文档中要求的内容格式调整导入文件!");
|
||||
}
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sSQL = new TSQL(dberp);
|
||||
dberp.BeginTrans();
|
||||
string DRMX = string.Empty;
|
||||
try
|
||||
{
|
||||
aDataExcel.Tables[0].Columns.Add("错误信息", typeof(string));
|
||||
for (int i = 0; i < aDataExcel.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
string ErrorMessage_Export = "";
|
||||
string sXLXHID = aDataExcel.Tables[0].Rows[i][0].ToString().Trim();
|
||||
string sDYDJID = aDataExcel.Tables[0].Rows[i][1].ToString().Trim();
|
||||
string sXLGGID = aDataExcel.Tables[0].Rows[i][2].ToString().Trim();
|
||||
string sXLBZID = aDataExcel.Tables[0].Rows[i][3].ToString().Trim();
|
||||
string sDWZL = aDataExcel.Tables[0].Rows[i][4].ToString().Trim();
|
||||
string sBJCPJLDW = aDataExcel.Tables[0].Rows[i][5].ToString().Trim();
|
||||
if (sXLXHID.Equals(""))
|
||||
{
|
||||
string ErrorMessage = "型号为空;";
|
||||
ErrorMessage_Export = ErrorMessage_Export + ErrorMessage;
|
||||
Error_SQL.AppendLine(ErrorMessage);
|
||||
}
|
||||
if (sDYDJID.Equals(""))
|
||||
{
|
||||
string ErrorMessage = "电压等级为空;";
|
||||
ErrorMessage_Export = ErrorMessage_Export + ErrorMessage;
|
||||
Error_SQL.AppendLine(ErrorMessage);
|
||||
}
|
||||
else if (sDYDJID.ToUpper().Contains("KV") && (!sDYDJID.Contains("kV")))
|
||||
{
|
||||
string ErrorMessage = "电压等级单位大小写错误,应为kV;";
|
||||
ErrorMessage_Export = ErrorMessage_Export + ErrorMessage;
|
||||
Error_SQL.AppendLine(ErrorMessage);
|
||||
}
|
||||
if (sXLGGID.Equals(""))
|
||||
{
|
||||
string ErrorMessage = "规格为空;";
|
||||
ErrorMessage_Export = ErrorMessage_Export + ErrorMessage;
|
||||
Error_SQL.AppendLine(ErrorMessage);
|
||||
}
|
||||
if (sXLBZID.Equals(""))
|
||||
{
|
||||
string ErrorMessage = "标准为空;";
|
||||
ErrorMessage_Export = ErrorMessage_Export + ErrorMessage;
|
||||
Error_SQL.AppendLine(ErrorMessage);
|
||||
}
|
||||
|
||||
if (!CMISproDataBase.ExistsRecord("DBERP", "select top 1 XLXHB_XLXHID from XLXHB where XLXHB_XLXHID='" + sXLXHID + "'"))
|
||||
{
|
||||
string ErrorMessage = "型号不存在,请检查;";
|
||||
ErrorMessage_Export = ErrorMessage_Export + ErrorMessage;
|
||||
Error_SQL.AppendLine(ErrorMessage);
|
||||
}
|
||||
if (!CMISproDataBase.ExistsRecord("DBERP", "select top 1 XLDYDJB_DYDJID from XLDYDJB where XLDYDJB_DYDJID='" + sDYDJID + "'"))
|
||||
{
|
||||
string ErrorMessage = "电压等级不存在,请检查;";
|
||||
ErrorMessage_Export = ErrorMessage_Export + ErrorMessage;
|
||||
Error_SQL.AppendLine(ErrorMessage);
|
||||
}
|
||||
if (!CMISproDataBase.ExistsRecord("DBERP", "select top 1 XLBZ_XLBZID from XLBZ where XLBZ_XLBZID='" + sXLBZID + "'"))
|
||||
{
|
||||
string ErrorMessage = "标准不存在,请检查;";
|
||||
ErrorMessage_Export = ErrorMessage_Export + ErrorMessage;
|
||||
Error_SQL.AppendLine(ErrorMessage);
|
||||
}
|
||||
string sSql = string.Format(@"select top 1 XLBJPJDWZL_XLXHID from XLBJPJDWZL
|
||||
where XLBJPJDWZL_XLXHID='{0}' and XLBJPJDWZL_DYDJID='{1}' and XLBJPJDWZL_XLGGID='{2}' and
|
||||
XLBJPJDWZL_XLBZID='{3}' ", sXLXHID, sDYDJID, sXLGGID, sXLBZID);
|
||||
|
||||
if (!CMISproDataBase.ExistsRecord("DBERP", sSql))
|
||||
{
|
||||
sSQL.Clear();
|
||||
sSQL.Add("insert into XLBJPJDWZL(XLBJPJDWZL_XLXHID, XLBJPJDWZL_DYDJID, XLBJPJDWZL_XLGGID, XLBJPJDWZL_XLBZID, XLBJPJDWZL_PJDWZL,XLBJPJDWZL_BJCPJLDW ,XLBJPJDWZL_WHR, XLBJPJDWZL_WHRID, XLBJPJDWZL_WHSJ)");
|
||||
sSQL.Add(" values(:XLBJPJDWZL_XLXHID, :XLBJPJDWZL_DYDJID, :XLBJPJDWZL_XLGGID, :XLBJPJDWZL_XLBZID, :XLBJPJDWZL_PJDWZL,:XLBJPJDWZL_BJCPJLDW, :XLBJPJDWZL_WHR, :XLBJPJDWZL_WHRID, :XLBJPJDWZL_WHSJ)");
|
||||
}
|
||||
else
|
||||
{
|
||||
sSQL.Clear();
|
||||
sSQL.Add("update XLBJPJDWZL set ");
|
||||
sSQL.Add("XLBJPJDWZL_PJDWZL =:XLBJPJDWZL_PJDWZL,");
|
||||
sSQL.Add("XLBJPJDWZL_BJCPJLDW =:XLBJPJDWZL_BJCPJLDW,");
|
||||
sSQL.Add("XLBJPJDWZL_WHR =:XLBJPJDWZL_WHR,");
|
||||
sSQL.Add("XLBJPJDWZL_WHRID =:XLBJPJDWZL_WHRID,");
|
||||
sSQL.Add("XLBJPJDWZL_WHSJ=:XLBJPJDWZL_WHSJ ");
|
||||
sSQL.Add(" where XLBJPJDWZL_XLXHID =:XLBJPJDWZL_XLXHID and XLBJPJDWZL_DYDJID =:XLBJPJDWZL_DYDJID and XLBJPJDWZL_XLGGID =:XLBJPJDWZL_XLGGID and XLBJPJDWZL_XLBZID =:XLBJPJDWZL_XLBZID");
|
||||
}
|
||||
sSQL.ParamByName("XLBJPJDWZL_XLXHID").Value = sXLXHID;
|
||||
sSQL.ParamByName("XLBJPJDWZL_DYDJID").Value = sDYDJID;
|
||||
sSQL.ParamByName("XLBJPJDWZL_XLGGID").Value = sXLGGID;
|
||||
sSQL.ParamByName("XLBJPJDWZL_XLBZID").Value = sXLBZID;
|
||||
sSQL.ParamByName("XLBJPJDWZL_PJDWZL").Value = sDWZL;
|
||||
sSQL.ParamByName("XLBJPJDWZL_BJCPJLDW").Value = sBJCPJLDW;
|
||||
sSQL.ParamByName("XLBJPJDWZL_WHRID").Value = tSession.UserId;
|
||||
sSQL.ParamByName("XLBJPJDWZL_WHR").Value = tSession.UserName;
|
||||
sSQL.ParamByName("XLBJPJDWZL_WHSJ").Value = CMISproConvert.ConvertTime(DateTime.Now);
|
||||
if (String.IsNullOrEmpty(ErrorMessage_Export))
|
||||
dberp.ExecSQL(sSQL);
|
||||
aDataExcel.Tables[0].Rows[i]["错误信息"] = ErrorMessage_Export;
|
||||
}
|
||||
string ErMessage = Error_SQL.ToString();
|
||||
if (ErMessage != "")
|
||||
{
|
||||
throw new Exception(ErMessage);
|
||||
}
|
||||
|
||||
dberp.CommitTrans();
|
||||
ShowMessage("导入成功!");
|
||||
}
|
||||
catch
|
||||
{
|
||||
dberp.RollbackTrans();
|
||||
string sFILENAME = "线缆报价盘具单位重量导入.xls";
|
||||
string m_tmpFilePath = FileService.CombineTempPath(Guid.NewGuid().ToString() + sFILENAME);
|
||||
|
||||
string sError = "";
|
||||
TExcelData.CreateExcel_NPOI(m_tmpFilePath, aDataExcel, ref sError);
|
||||
if (string.IsNullOrEmpty(sError))
|
||||
{
|
||||
DialogOperationScript dos = new DialogOperationScript(this);
|
||||
dos.SetOwnerControlValue(PageParam.GetRTrimString("ClientExportFileURL"), m_tmpFilePath.Replace("\\", "/"));
|
||||
dos.CloseSelf();
|
||||
dos.Execute();
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ShowMessage("导入失败,错误信息:" + ex.Message);
|
||||
return;
|
||||
}
|
||||
System.IO.File.Delete(fupdPost.FilePath.Trim());
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ShowMessage("导入失败,错误信息:" + ex.Message);
|
||||
return;
|
||||
}
|
||||
CloseWindowNoQuery();
|
||||
}
|
||||
|
||||
protected void btnQX_Click(object sender, EventArgs e)
|
||||
{
|
||||
CloseWindowNoQuery();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Generated
+79
@@ -0,0 +1,79 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJCPPJDWZL_DR 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJCPPJDWZL_DR {
|
||||
|
||||
/// <summary>
|
||||
/// tbl1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table tbl1;
|
||||
|
||||
/// <summary>
|
||||
/// btnQD 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnQD;
|
||||
|
||||
/// <summary>
|
||||
/// btnQX 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnQX;
|
||||
|
||||
/// <summary>
|
||||
/// lblWJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblWJ;
|
||||
|
||||
/// <summary>
|
||||
/// fupdPost 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtAsyncFileUpload fupdPost;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleCard Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleCard)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public class BJCPPJDWZL_M : TBaseNamedQuery
|
||||
{
|
||||
public BJCPPJDWZL_M()
|
||||
{
|
||||
//支持查询型号(下拉选项),电压等级(下拉选项),规格(模糊查询),标准(下拉选项)
|
||||
AddFieldDefs("XLBJPJDWZL_XLXHID", "线缆型号");
|
||||
AddFieldDefs("XLBJPJDWZL_DYDJID", "电压等级");
|
||||
AddFieldDefs("XLBJPJDWZL_XLGGID", "线缆规格");
|
||||
AddFieldDefs("XLBJPJDWZL_XLBZID", "线缆标准");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,213 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSBJYLZDMX", Umid = 100860097, IsWorkFlow = false, UseWhr = true,
|
||||
|
||||
QuerySelSql = @" select XLXSBJYLZDMX_SQDH,XLXSBJYLZDMX_XH,XLXSBJYLZDMX_BJDXH,
|
||||
XLXSBJYLZDMX_BJDXLXHID,XLXSBJYLZDMX_BJDXLGGID,XLXSBJYLZDMX_BJDXLBZID,
|
||||
XLXSBJYLZDMX_BJDDYDJID,XLXSBJYLZDMX_XLXHID,XLXSBJYLZDMX_XLGGID,
|
||||
XLXSBJYLZDMX_XLBZID,XLXSBJYLZDMX_DYDJID,
|
||||
XLXSBJYLZDMX_BZ,XLXSBJYLZDMX_WHR,XLXSBJYLZDMX_WHRID,XLXSBJYLZDMX_WHSJ,XLXSBJYLZDMX_DZSC
|
||||
from XLXSBJYLZDMX
|
||||
where 1=1",
|
||||
|
||||
|
||||
EntitySelSql = @" select XLXSBJYLZDMX_SQDH,XLXSBJYLZDMX_XH,XLXSBJYLZDMX_BJDXH,
|
||||
XLXSBJYLZDMX_BJDXLXHID,XLXSBJYLZDMX_BJDXLGGID,XLXSBJYLZDMX_BJDXLBZID,
|
||||
XLXSBJYLZDMX_BJDDYDJID,XLXSBJYLZDMX_XLXHID,XLXSBJYLZDMX_XLGGID,
|
||||
XLXSBJYLZDMX_XLBZID,XLXSBJYLZDMX_DYDJID,
|
||||
XLXSBJYLZDMX_BZ,XLXSBJYLZDMX_WHR,XLXSBJYLZDMX_WHRID,XLXSBJYLZDMX_WHSJ,XLXSBJYLZDMX_DZSC
|
||||
from XLXSBJYLZDMX
|
||||
where XLXSBJYLZDMX_SQDH=:XLXSBJYLZDMX_SQDH and XLXSBJYLZDMX_XH=:XLXSBJYLZDMX_XH ",
|
||||
|
||||
|
||||
|
||||
UpdateSql = @" update XLXSBJYLZDMX set XLXSBJYLZDMX_BJDXLXHID=:XLXSBJYLZDMX_BJDXLXHID,
|
||||
XLXSBJYLZDMX_BJDXLGGID=:XLXSBJYLZDMX_BJDXLGGID,
|
||||
XLXSBJYLZDMX_BJDXLBZID=:XLXSBJYLZDMX_BJDXLBZID,
|
||||
XLXSBJYLZDMX_BJDDYDJID=:XLXSBJYLZDMX_BJDDYDJID,
|
||||
XLXSBJYLZDMX_XLXHID=:XLXSBJYLZDMX_XLXHID,
|
||||
XLXSBJYLZDMX_XLGGID=:XLXSBJYLZDMX_XLGGID,
|
||||
XLXSBJYLZDMX_XLBZID=:XLXSBJYLZDMX_XLBZID,
|
||||
XLXSBJYLZDMX_DYDJID=:XLXSBJYLZDMX_DYDJID,
|
||||
XLXSBJYLZDMX_BZ=:XLXSBJYLZDMX_BZ,
|
||||
XLXSBJYLZDMX_WHR=:XLXSBJYLZDMX_WHR,
|
||||
XLXSBJYLZDMX_WHRID=:XLXSBJYLZDMX_WHRID,
|
||||
XLXSBJYLZDMX_WHSJ=:XLXSBJYLZDMX_WHSJ,
|
||||
XLXSBJYLZDMX_DZSC=:XLXSBJYLZDMX_DZSC
|
||||
where XLXSBJYLZDMX_SQDH=:XLXSBJYLZDMX_SQDH and XLXSBJYLZDMX_XH=:XLXSBJYLZDMX_XH ",
|
||||
|
||||
InsertSql = @" insert into XLXSBJYLZDMX(XLXSBJYLZDMX_SQDH,XLXSBJYLZDMX_XH,XLXSBJYLZDMX_BJDXH,
|
||||
XLXSBJYLZDMX_BJDXLXHID,XLXSBJYLZDMX_BJDXLGGID,XLXSBJYLZDMX_BJDXLBZID,
|
||||
XLXSBJYLZDMX_BJDDYDJID,XLXSBJYLZDMX_XLXHID,XLXSBJYLZDMX_XLGGID,
|
||||
XLXSBJYLZDMX_XLBZID,XLXSBJYLZDMX_DYDJID,
|
||||
XLXSBJYLZDMX_BZ,XLXSBJYLZDMX_WHR,XLXSBJYLZDMX_WHRID,XLXSBJYLZDMX_WHSJ,XLXSBJYLZDMX_DZSC)
|
||||
values(:XLXSBJYLZDMX_SQDH,:XLXSBJYLZDMX_XH,:XLXSBJYLZDMX_BJDXH,
|
||||
:XLXSBJYLZDMX_BJDXLXHID,:XLXSBJYLZDMX_BJDXLGGID,:XLXSBJYLZDMX_BJDXLBZID,
|
||||
:XLXSBJYLZDMX_BJDDYDJID,:XLXSBJYLZDMX_XLXHID,:XLXSBJYLZDMX_XLGGID,
|
||||
:XLXSBJYLZDMX_XLBZID,:XLXSBJYLZDMX_DYDJID,
|
||||
:XLXSBJYLZDMX_BZ,:XLXSBJYLZDMX_WHR,:XLXSBJYLZDMX_WHRID,:XLXSBJYLZDMX_WHSJ,:XLXSBJYLZDMX_DZSC)",
|
||||
|
||||
DeleteSql = " delete from XLXSBJYLZDMX where XLXSBJYLZDMX_SQDH=:XLXSBJYLZDMX_SQDH and XLXSBJYLZDMX_XH=:XLXSBJYLZDMX_XH ")]
|
||||
public class BJCPXD : EntityManager
|
||||
{
|
||||
|
||||
private string _XLXSBJYLZDMX_SQDH;
|
||||
[ColumnMap(DbField = "XLXSBJYLZDMX_SQDH", CtrlName = "txtSQDH", DbTitle = "申请单号", Type = FieldType.HiddenField, DefaultValue = "0000000000",
|
||||
IsAllowNull = true, IsKey = true, Length = 10)]
|
||||
public string XLXSBJYLZDMX_SQDH
|
||||
{
|
||||
get { return _XLXSBJYLZDMX_SQDH; }
|
||||
set { _XLXSBJYLZDMX_SQDH = value; }
|
||||
}
|
||||
|
||||
|
||||
private string _XLXSBJYLZDMX_XH;
|
||||
[ColumnMap(DbField = "XLXSBJYLZDMX_XH", CtrlName = "txtXH", DbTitle = "序号", Type = FieldType.F, DefaultValue = "0",
|
||||
IsAllowNull = true, IsKey = true, Length = 8)]
|
||||
public string XLXSBJYLZDMX_XH
|
||||
{
|
||||
get { return _XLXSBJYLZDMX_XH; }
|
||||
set { _XLXSBJYLZDMX_XH = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJYLZDMX_BJDXH;
|
||||
[ColumnMap(DbField = "XLXSBJYLZDMX_BJDXH", CtrlName = "txtBJDXH", DbTitle = "报价单序号", Type = FieldType.F, DefaultValue = "0",
|
||||
IsAllowNull = true, IsKey = true, Length = 8)]
|
||||
public string XLXSBJYLZDMX_BJDXH
|
||||
{
|
||||
get { return _XLXSBJYLZDMX_BJDXH; }
|
||||
set { _XLXSBJYLZDMX_BJDXH = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJYLZDMX_BJDXLXHID;
|
||||
[ColumnMap(DbField = "XLXSBJYLZDMX_BJDXLXHID", CtrlName = "cbxXLXHID", DbTitle = "型号", Type = FieldType.CBX, DefaultValue = "",
|
||||
IsAllowNull = false, IsKey = false, Length = 40)]
|
||||
public string XLXSBJYLZDMX_BJDXLXHID
|
||||
{
|
||||
get { return _XLXSBJYLZDMX_BJDXLXHID; }
|
||||
set { _XLXSBJYLZDMX_BJDXLXHID = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJYLZDMX_BJDXLGGID;
|
||||
[ColumnMap(DbField = "XLXSBJYLZDMX_BJDXLGGID", CtrlName = "txtXLGGID", DbTitle = "规格", Type = FieldType.C, DefaultValue = "",
|
||||
IsAllowNull = false, IsKey = false, Length = 60)]
|
||||
public string XLXSBJYLZDMX_BJDXLGGID
|
||||
{
|
||||
get { return _XLXSBJYLZDMX_BJDXLGGID; }
|
||||
set { _XLXSBJYLZDMX_BJDXLGGID = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJYLZDMX_BJDXLBZID;
|
||||
[ColumnMap(DbField = "XLXSBJYLZDMX_BJDXLBZID", CtrlName = "cbxST", DbTitle = "标准", Type = FieldType.CBX, DefaultValue = "",
|
||||
IsAllowNull = false, IsKey = false, Length = 10)]
|
||||
public string XLXSBJYLZDMX_BJDXLBZID
|
||||
{
|
||||
get { return _XLXSBJYLZDMX_BJDXLBZID; }
|
||||
set { _XLXSBJYLZDMX_BJDXLBZID = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJYLZDMX_BJDDYDJID;
|
||||
[ColumnMap(DbField = "XLXSBJYLZDMX_BJDDYDJID", CtrlName = "cbxDYDJ", DbTitle = "电压等级", Type = FieldType.CBX, DefaultValue = "",
|
||||
IsAllowNull = false, IsKey = false, Length = 20)]
|
||||
public string XLXSBJYLZDMX_BJDDYDJID
|
||||
{
|
||||
get { return _XLXSBJYLZDMX_BJDDYDJID; }
|
||||
set { _XLXSBJYLZDMX_BJDDYDJID = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJYLZDMX_XLXHID;
|
||||
[ColumnMap(DbField = "XLXSBJYLZDMX_XLXHID", CtrlName = "cbxXDXLXHID", DbTitle = "修订型号", Type = FieldType.CBX, DefaultValue = "",
|
||||
IsAllowNull = false, IsKey = false, Length = 40)]
|
||||
public string XLXSBJYLZDMX_XLXHID
|
||||
{
|
||||
get { return _XLXSBJYLZDMX_XLXHID; }
|
||||
set { _XLXSBJYLZDMX_XLXHID = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJYLZDMX_XLGGID;
|
||||
[ColumnMap(DbField = "XLXSBJYLZDMX_XLGGID", CtrlName = "txtXDXLGGID", DbTitle = "修订规格", Type = FieldType.C, DefaultValue = "",
|
||||
IsAllowNull = false, IsKey = false, Length = 60)]
|
||||
public string XLXSBJYLZDMX_XLGGID
|
||||
{
|
||||
get { return _XLXSBJYLZDMX_XLGGID; }
|
||||
set { _XLXSBJYLZDMX_XLGGID = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJYLZDMX_XLBZID;
|
||||
[ColumnMap(DbField = "XLXSBJYLZDMX_XLBZID", CtrlName = "cbxXDST", DbTitle = "修订标准", Type = FieldType.CBX, DefaultValue = "",
|
||||
IsAllowNull = false, IsKey = false, Length = 10)]
|
||||
public string XLXSBJYLZDMX_XLBZID
|
||||
{
|
||||
get { return _XLXSBJYLZDMX_XLBZID; }
|
||||
set { _XLXSBJYLZDMX_XLBZID = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJYLZDMX_DYDJID;
|
||||
[ColumnMap(DbField = "XLXSBJYLZDMX_DYDJID", CtrlName = "cbxXDDYDJ", DbTitle = "修订电压等级", Type = FieldType.CBX, DefaultValue = "",
|
||||
IsAllowNull = false, IsKey = false, Length = 20)]
|
||||
public string XLXSBJYLZDMX_DYDJID
|
||||
{
|
||||
get { return _XLXSBJYLZDMX_DYDJID; }
|
||||
set { _XLXSBJYLZDMX_DYDJID = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJYLZDMX_BZ;
|
||||
[ColumnMap(DbField = "XLXSBJYLZDMX_BZ", CtrlName = "txtBZ", DbTitle = "备注", Type = FieldType.C, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 250)]
|
||||
public string XLXSBJYLZDMX_BZ
|
||||
{
|
||||
get { return _XLXSBJYLZDMX_BZ; }
|
||||
set { _XLXSBJYLZDMX_BZ = value; }
|
||||
}
|
||||
// 私有变量维护人
|
||||
private string _XLXSBJYLZDMX_WHR;
|
||||
[ColumnMap(DbField = "XLXSBJYLZDMX_WHR", CtrlName = "txtWHR", Type = FieldType.C, DbTitle = "维护人", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 30)]
|
||||
public string XLXSBJYLZDMX_WHR
|
||||
{
|
||||
get { return _XLXSBJYLZDMX_WHR; }
|
||||
set { _XLXSBJYLZDMX_WHR = value; }
|
||||
}
|
||||
|
||||
// 私有变量维护人工号
|
||||
private string _XLXSBJYLZDMX_WHRID;
|
||||
[ColumnMap(DbField = "XLXSBJYLZDMX_WHRID", CtrlName = "txtWHRID", Type = FieldType.HiddenField, DbTitle = "维护人ID", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||
public string XLXSBJYLZDMX_WHRID
|
||||
{
|
||||
get { return _XLXSBJYLZDMX_WHRID; }
|
||||
set { _XLXSBJYLZDMX_WHRID = value; }
|
||||
}
|
||||
|
||||
// 私有变量维护时间
|
||||
private string _XLXSBJYLZDMX_WHSJ;
|
||||
[ColumnMap(DbField = "XLXSBJYLZDMX_WHSJ", CtrlName = "datWHSJ", Type = FieldType.DT, DbTitle = "维护时间", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = true, Length = 18)]
|
||||
public string XLXSBJYLZDMX_WHSJ
|
||||
{
|
||||
get { return _XLXSBJYLZDMX_WHSJ; }
|
||||
set { _XLXSBJYLZDMX_WHSJ = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJYLZDMX_DZSC;
|
||||
[ColumnMap(DbField = "XLXSBJYLZDMX_DZSC", CtrlName = "txtDZSC", Type = FieldType.HiddenField, DbTitle = "定制生产", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJYLZDMX_DZSC
|
||||
{
|
||||
get { return _XLXSBJYLZDMX_DZSC; }
|
||||
set { _XLXSBJYLZDMX_DZSC = value; }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
+125
@@ -0,0 +1,125 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/N_MODEL/Page/MasterSingleCard.Master"
|
||||
CodeBehind="BJCPXDInfo.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJCPXDInfo" Title="报价产品修订" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleCard.Master" %>
|
||||
<asp:Content ID="cntTool" ContentPlaceHolderID="cphUserToolbar" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="cntForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr style="height: 24px;" />
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel3" runat="server" Width="64px">型号:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxXLXHID" runat="server" Width="124px" Tag="Star" ShowValue="false" OnSelectedIndexChanged="cbxXLXHID_SelectedIndexChanged" AutoPostBack="true">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel1" runat="server" Width="64px">修订型号:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxXDXLXHID" runat="server" Width="124px" Tag="Star" ShowValue="false">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height: 24px;" />
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel11" runat="server">规格:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtTextBox ID="txtXLGGID" runat="server" Width="120px" Tag="Star" OnTextChanged="txtXLGGID_OnTextChanged" AutoPostBack="true"></gtc:gtTextBox>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel2" runat="server">修订规格:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtTextBox ID="txtXDXLGGID" runat="server" Width="120px" Tag="Star" ></gtc:gtTextBox>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr style="height: 24px;" />
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel8" runat="server">标准:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxST" runat="server" Width="124px" Tag="Star" OnSelectedIndexChanged="cbxST_SelectedIndexChanged" AutoPostBack="true">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel7" runat="server">修订标准:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxXDST" runat="server" Width="124px" Tag="Star">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height: 24px;" />
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel9" runat="server">电压等级:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxDYDJ" runat="server" Width="124px" Tag="Star" ShowValue="false" OnSelectedIndexChanged="cbxDYDJ_SelectedIndexChanged" AutoPostBack="true">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel10" runat="server">修订电压等级:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxXDDYDJ" runat="server" Width="124px" Tag="Star" ShowValue="false">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height: 24px;" />
|
||||
<tr>
|
||||
<td align="right" valign="top">
|
||||
<gtc:gtLabel ID="GtLabel4" runat="server">备注:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left" colspan="4">
|
||||
<gtc:gtTextBox ID="txtBZ" runat="server" Width="420px" TextMode="MultiLine" Rows="1"></gtc:gtTextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height: 24px;" />
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel5" runat="server">维护人:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtTextBox ID="txtWHR" runat="server" Width="72px"></gtc:gtTextBox>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel6" runat="server">维护时间:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtDateTime ID="datWHSJ" runat="server" Width="142px">
|
||||
</gtc:gtDateTime>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtXH" runat="server" Width="72px" DecimalPlaces="0"
|
||||
Style="display: none" ></gtc:gtNumTextBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtNumTextBox ID="txtBJDXH" runat="server" Width="72px" DecimalPlaces="0"
|
||||
Style="display: none" ></gtc:gtNumTextBox>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:HiddenField ID="txtSQDH" runat="server" />
|
||||
<asp:HiddenField ID="txtWHRID" runat="server" />
|
||||
<asp:HiddenField ID="txtDZSC" runat="server" />
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,216 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MISPRO;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using GThinking.N_PUBLIC;
|
||||
using GThinking.N_MODEL.Dialog;
|
||||
using GThinking.N_WORKFLOW;
|
||||
using System.Collections.Generic;
|
||||
using GThinking.N_CONTROL;
|
||||
using System.Text;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class BJCPXDInfo : SingleCardBase
|
||||
{
|
||||
BJCPXD entity = new BJCPXD();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860097;
|
||||
this.UMName = "报价产品修订";
|
||||
this.CurMaster = Master;
|
||||
this.CurEntity = entity;
|
||||
this.PageHeight = 400;
|
||||
this.PageWidth = 500;
|
||||
|
||||
base.InitPage();
|
||||
}
|
||||
|
||||
#region 模板事件继承
|
||||
|
||||
protected override void LoadRecord()
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
entity.Param.Add("XLXSBJYLZDMX_SQDH", PageParam.GetRTrimString("XLXSBJYLZDMX_SQDH"));
|
||||
entity.Param.Add("XLXSBJYLZDMX_XH", PageParam.GetRTrimString("XLXSBJYLZDMX_XH"));
|
||||
}
|
||||
else
|
||||
{
|
||||
entity.Param.Add("XLXSBJYLZDMX_SQDH", txtSQDH.Value.Trim());
|
||||
entity.Param.Add("XLXSBJYLZDMX_XH",txtXH.Value);
|
||||
}
|
||||
|
||||
|
||||
base.LoadRecord();
|
||||
}
|
||||
|
||||
protected override void OnNewRecorder()
|
||||
{
|
||||
base.OnNewRecorder();
|
||||
txtWHR.Text = tSession.UserName;
|
||||
txtWHRID.Value = tSession.UserId;
|
||||
datWHSJ.Value = CMISproConvert.ConvertTime(DateTime.Now);
|
||||
txtDZSC.Value = "N";
|
||||
}
|
||||
|
||||
protected override void OnCopyRecorder()
|
||||
{
|
||||
base.OnCopyRecorder();
|
||||
txtWHR.Text = tSession.UserName;
|
||||
txtWHRID.Value = tSession.UserId;
|
||||
datWHSJ.Value = CMISproConvert.ConvertTime(DateTime.Now);
|
||||
txtDZSC.Value = "N";
|
||||
|
||||
}
|
||||
|
||||
protected override bool DataLogicValid()
|
||||
{
|
||||
if (cbxXLXHID.SelectedValue.Trim().Equals(cbxXDXLXHID.SelectedValue.Trim()) && txtXLGGID.Text.Trim().Equals(txtXDXLGGID.Text.Trim()))
|
||||
{
|
||||
if (cbxST.SelectedValue.Trim().Equals(cbxXDST.SelectedValue.Trim()) && cbxDYDJ.SelectedValue.Trim().Equals(cbxXDDYDJ.SelectedValue.Trim()))
|
||||
{
|
||||
ShowMessage("修订后产品不允许和修订前产品相同!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (ControlState == TControlState.ctsEdit)
|
||||
{
|
||||
if (CMISproDataBase.ExistsRecord("DBERP", string.Format("select 1 from XLXSBJYLZDMX where XLXSBJYLZDMX_SQDH='0000000000' and XLXSBJYLZDMX_BJDXLXHID='{0}' and XLXSBJYLZDMX_BJDXLGGID='{1}' and XLXSBJYLZDMX_BJDXLBZID='{2}' and XLXSBJYLZDMX_BJDDYDJID='{3}' and XLXSBJYLZDMX_XH<>{4}",
|
||||
cbxXLXHID.SelectedValue.Trim(), txtXLGGID.Text.Trim(), cbxST.SelectedValue.Trim(), cbxDYDJ.SelectedValue.Trim(), txtXH.Value)))
|
||||
{
|
||||
ShowMessage("已存在型号、规格、标准、电压等级相同的记录,不允许重复登记!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (CMISproDataBase.ExistsRecord("DBERP", string.Format("select 1 from XLXSBJYLZDMX where XLXSBJYLZDMX_SQDH='0000000000' and XLXSBJYLZDMX_BJDXLXHID='{0}' and XLXSBJYLZDMX_BJDXLGGID='{1}' and XLXSBJYLZDMX_BJDXLBZID='{2}' and XLXSBJYLZDMX_BJDDYDJID='{3}'",
|
||||
cbxXLXHID.SelectedValue.Trim(), txtXLGGID.Text.Trim(), cbxST.SelectedValue.Trim(), cbxDYDJ.SelectedValue.Trim())))
|
||||
{
|
||||
ShowMessage("已存在型号、规格、标准、电压等级相同的记录,不允许重复登记!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return base.DataLogicValid();
|
||||
}
|
||||
|
||||
protected override bool Master_BeforeDeleteAction(object sender, EventArgs e)
|
||||
{
|
||||
return base.Master_BeforeDeleteAction(sender, e);
|
||||
}
|
||||
|
||||
protected override bool Master_BeforeSaveAction(object sender, EventArgs e)
|
||||
{
|
||||
if ((ControlState == TControlState.ctsInsert) || (ControlState == TControlState.ctsCopy))
|
||||
{
|
||||
txtSQDH.Value = "0000000000";
|
||||
txtDZSC.Value = "N";
|
||||
txtXH.Value = CMISproDataBase.GetMaxXH("DBERP", "XLXSBJYLZDMX", "XLXSBJYLZDMX_XH", "XLXSBJYLZDMX_SQDH ='0000000000'") + 1;
|
||||
txtBJDXH.Value = txtXH.Value;
|
||||
}
|
||||
txtWHR.Text = tSession.UserName;
|
||||
txtWHRID.Value = tSession.UserId;
|
||||
datWHSJ.Value = CMISproConvert.ConvertTime(DateTime.Now);
|
||||
return base.Master_BeforeSaveAction(sender, e);
|
||||
}
|
||||
|
||||
protected override void BeforeSave(TDatabase db, ref bool ActionIsDone)
|
||||
{
|
||||
base.BeforeSave(db, ref ActionIsDone);
|
||||
}
|
||||
|
||||
protected override void SetControlState()
|
||||
{
|
||||
base.SetControlState();
|
||||
|
||||
txtWHR.Enabled = false;
|
||||
datWHSJ.Enabled = false;
|
||||
}
|
||||
|
||||
protected override void AfterSave(TDatabase db, ref bool ActionIsDone)
|
||||
{
|
||||
base.AfterSave(db, ref ActionIsDone);
|
||||
}
|
||||
|
||||
protected override bool Master_AfterSaveAction(object sender, EventArgs e)
|
||||
{
|
||||
return base.Master_AfterSaveAction(sender, e);
|
||||
}
|
||||
|
||||
protected override void AfterDelete(TDatabase db, ref bool ActionIsDone)
|
||||
{
|
||||
base.AfterDelete(db, ref ActionIsDone);
|
||||
}
|
||||
|
||||
protected override void SetComboxItems()
|
||||
{
|
||||
if (ControlState == TControlState.ctsBrowse)
|
||||
{
|
||||
cbxXLXHID.ClearItems();
|
||||
cbxXLXHID.Items.Add(new ListItem(cbxXLXHID.SelectedValue.Trim(), cbxXLXHID.SelectedValue.Trim()));
|
||||
|
||||
cbxDYDJ.ClearItems();
|
||||
cbxDYDJ.Items.Add(new ListItem(cbxDYDJ.SelectedValue.Trim(), cbxDYDJ.SelectedValue.Trim()));
|
||||
|
||||
cbxXDXLXHID.ClearItems();
|
||||
cbxXDXLXHID.Items.Add(new ListItem(cbxXDXLXHID.SelectedValue.Trim(), cbxXDXLXHID.SelectedValue.Trim()));
|
||||
|
||||
cbxXDDYDJ.ClearItems();
|
||||
cbxXDDYDJ.Items.Add(new ListItem(cbxXDDYDJ.SelectedValue.Trim(), cbxXDDYDJ.SelectedValue.Trim()));
|
||||
|
||||
TComboBox.SetComboBox("DBERP", cbxST, string.Format("select XLBZ_XLBZID,XLBZ_XLBZLXMC from XLBZ where XLBZ_XLBZID='{0}' order by XLBZ_PX,XLBZ_XLBZID", cbxST.SelectedValue.Trim()), false);
|
||||
TComboBox.SetComboBox("DBERP", cbxXDST, string.Format("select XLBZ_XLBZID,XLBZ_XLBZLXMC from XLBZ where XLBZ_XLBZID='{0}' order by XLBZ_PX,XLBZ_XLBZID", cbxXDST.SelectedValue.Trim()), false);
|
||||
}
|
||||
else
|
||||
{
|
||||
TComboBox.SetComboBox("DBERP", cbxXLXHID, "select XLXHB_XLXHID as ID,XLXHB_XLXHID as Name from XLXHB where isnull(XLXHB_TYBZ,'N')<>'Y' order by ID ", false);
|
||||
TComboBox.SetComboBox("DBERP", cbxXDXLXHID, "select XLXHB_XLXHID as ID,XLXHB_XLXHID as Name from XLXHB where isnull(XLXHB_TYBZ,'N')<>'Y' order by ID ", false);
|
||||
TComboBox.SetComboBox("DBERP", cbxDYDJ, "select XLDYDJB_DYDJID as ID,XLDYDJB_DYDJID as Name from XLDYDJB where isnull(XLDYDJB_TYBZ,'N')<>'Y' order by XLDYDJB_XH ", false);
|
||||
TComboBox.SetComboBox("DBERP", cbxXDDYDJ, "select XLDYDJB_DYDJID as ID,XLDYDJB_DYDJID as Name from XLDYDJB where isnull(XLDYDJB_TYBZ,'N')<>'Y' order by XLDYDJB_XH ", false);
|
||||
TComboBox.SetComboBox("DBERP", cbxST, "select XLBZ_XLBZID,XLBZ_XLBZLXMC from XLBZ where 1=1 order by XLBZ_PX,XLBZ_XLBZID", false);
|
||||
TComboBox.SetComboBox("DBERP", cbxXDST, "select XLBZ_XLBZID,XLBZ_XLBZLXMC from XLBZ where 1=1 order by XLBZ_PX,XLBZ_XLBZID", false);
|
||||
|
||||
}
|
||||
|
||||
base.SetComboxItems();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 控件事件
|
||||
|
||||
protected void cbxXLXHID_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(cbxXDXLXHID.SelectedValue.Trim()))
|
||||
cbxXDXLXHID.SelectedValue = cbxXLXHID.SelectedValue.Trim();
|
||||
}
|
||||
protected void txtXLGGID_OnTextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(txtXDXLGGID.Text.Trim()))
|
||||
txtXDXLGGID.Text = txtXLGGID.Text.Trim();
|
||||
}
|
||||
protected void cbxST_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(cbxXDST.SelectedValue.Trim()))
|
||||
cbxXDST.SelectedValue = cbxST.SelectedValue.Trim();
|
||||
}
|
||||
protected void cbxDYDJ_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(cbxXDDYDJ.SelectedValue.Trim()))
|
||||
cbxXDDYDJ.SelectedValue = cbxDYDJ.SelectedValue.Trim();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+277
@@ -0,0 +1,277 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9174
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJCPXDInfo 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJCPXDInfo {
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel3;
|
||||
|
||||
/// <summary>
|
||||
/// cbxXLXHID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxXLXHID;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel1;
|
||||
|
||||
/// <summary>
|
||||
/// cbxXDXLXHID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxXDXLXHID;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel11 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel11;
|
||||
|
||||
/// <summary>
|
||||
/// txtXLGGID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtXLGGID;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel2;
|
||||
|
||||
/// <summary>
|
||||
/// txtXDXLGGID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtXDXLGGID;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel8 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel8;
|
||||
|
||||
/// <summary>
|
||||
/// cbxST 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxST;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel7;
|
||||
|
||||
/// <summary>
|
||||
/// cbxXDST 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxXDST;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel9 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel9;
|
||||
|
||||
/// <summary>
|
||||
/// cbxDYDJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxDYDJ;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel10 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel10;
|
||||
|
||||
/// <summary>
|
||||
/// cbxXDDYDJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxXDDYDJ;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel4;
|
||||
|
||||
/// <summary>
|
||||
/// txtBZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtBZ;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel5;
|
||||
|
||||
/// <summary>
|
||||
/// txtWHR 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtWHR;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel6;
|
||||
|
||||
/// <summary>
|
||||
/// datWHSJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtDateTime datWHSJ;
|
||||
|
||||
/// <summary>
|
||||
/// txtXH 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtXH;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJDXH 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtBJDXH;
|
||||
|
||||
/// <summary>
|
||||
/// txtSQDH 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtSQDH;
|
||||
|
||||
/// <summary>
|
||||
/// txtWHRID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtWHRID;
|
||||
|
||||
/// <summary>
|
||||
/// txtDZSC 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtDZSC;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleCard Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleCard)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master"
|
||||
CodeBehind="BJCPXDList.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJCPXDList" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
<asp:Table ID="CustomButton" runat="server" CellPadding="0" CellSpacing="0">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="NotSet">
|
||||
<gtc:gtToolButton ID="btnDR" runat="server" Caption="导 入" OnClick="btnDR_Click"
|
||||
ShowCaption="True" Width="52px" Height="19px">
|
||||
</gtc:gtToolButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnRefresh" OnClick="btnRefresh_Click" runat="server"
|
||||
EnableTheming="false"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||
<gtc:gtGridView ID="ContentGrid" runat="server" AutoGenerateColumns="False" EnableViewState="false" CheckBox="true">
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<Columns>
|
||||
<asp:BoundField HeaderText="型号" DataField="XLXSBJYLZDMX_BJDXLXHID">
|
||||
<itemstyle width="120px"></itemstyle>
|
||||
<headerstyle width="120px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="规格" DataField="XLXSBJYLZDMX_BJDXLGGID">
|
||||
<itemstyle width="120px"></itemstyle>
|
||||
<headerstyle width="120px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="标准" DataField="XLBZ">
|
||||
<itemstyle width="50px"></itemstyle>
|
||||
<headerstyle width="50px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="电压等级" DataField="XLXSBJYLZDMX_BJDDYDJID">
|
||||
<itemstyle width="72px"></itemstyle>
|
||||
<headerstyle width="72px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="修订型号" DataField="XLXSBJYLZDMX_XLXHID">
|
||||
<itemstyle width="120px"></itemstyle>
|
||||
<headerstyle width="120px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="修订规格" DataField="XLXSBJYLZDMX_XLGGID">
|
||||
<itemstyle width="120px"></itemstyle>
|
||||
<headerstyle width="120px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="修订标准" DataField="XDXLBZ">
|
||||
<itemstyle width="50px"></itemstyle>
|
||||
<headerstyle width="50px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="修订电压等级" DataField="XLXSBJYLZDMX_DYDJID">
|
||||
<itemstyle width="72px"></itemstyle>
|
||||
<headerstyle width="72px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJYLZDMX_BZ" HeaderText="备注">
|
||||
<itemstyle width="200px"></itemstyle>
|
||||
<headerstyle width="200px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJYLZDMX_WHR" HeaderText="维护人">
|
||||
<itemstyle width="72px" />
|
||||
<headerstyle horizontalalign="Center" width="72px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJYLZDMX_WHSJ" HeaderText="维护时间">
|
||||
<itemstyle width="125px" />
|
||||
<headerstyle horizontalalign="Center" width="125px" />
|
||||
</asp:BoundField>
|
||||
|
||||
</Columns>
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJYLZDMX_BJDXLXHID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJYLZDMX_BJDXLGGID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLBZ" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJYLZDMX_BJDDYDJID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJYLZDMX_XLXHID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJYLZDMX_XLGGID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XDXLBZ" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJYLZDMX_DYDJID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJYLZDMX_BZ" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJYLZDMX_WHR" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJYLZDMX_WHSJ" DateTimeEditKins="dtDateTime" EditType="etDateTime">
|
||||
</gtc:gtGridView_Column>
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
</asp:Content>
|
||||
|
||||
@@ -0,0 +1,208 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using GThinking.N_MISPRO;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using System.Text;
|
||||
using GThinking.N_CONTROL;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class BJCPXDList : SingleGridBase
|
||||
{
|
||||
BJCPXD entity = new BJCPXD();
|
||||
BJCPXD_M qryEntity = new BJCPXD_M();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860097;
|
||||
this.UMName = "报价产品修订";
|
||||
this.CurMaster = Master;
|
||||
this.ModuleGV = ContentGrid;
|
||||
this.CurEntity = entity;
|
||||
this.CurQueryEntity = qryEntity;
|
||||
this.sURLTarget = "BJCPXDInfo.aspx";
|
||||
this.sQueryURLTarget = "BJCPXDQuery.aspx";
|
||||
this.PageHeight = 600;
|
||||
this.PageWidth = 750;
|
||||
this.CanDeleteCheckedRows = true;
|
||||
base.DataKeyNames = new string[] { "XLXSBJYLZDMX_SQDH", "XLXSBJYLZDMX_XH" };
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
CurQueryEntity.FieldByName("XLXHIDJQPP").Value = "True";
|
||||
CurQueryEntity.FieldByName("XLGGIDJQPP").Value = "True";
|
||||
}
|
||||
|
||||
base.InitPage();
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
Master_OnStandardQuery(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
#region 模板事件
|
||||
protected override void Master_OnStandardQuery(object sender, EventArgs e)
|
||||
{
|
||||
base.InitEntityByCondition();
|
||||
entity.EntityTable.QuerySelSql = GetSql();
|
||||
base.Master_OnStandardQuery(sender, e);
|
||||
entity.GridDataBind(ContentGrid, tSession);
|
||||
}
|
||||
|
||||
protected override void moduleGV_PageIndexChanging(object sender, GridViewPageEventArgs e)
|
||||
{
|
||||
base.InitEntityByCondition();
|
||||
entity.EntityTable.QuerySelSql = GetSql();
|
||||
base.moduleGV_PageIndexChanging(sender, e);
|
||||
ContentGrid.SelectedIndex = -1;
|
||||
}
|
||||
|
||||
protected override void moduleGV_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
LinkPageParam.AddString("XLXSBJYLZDMX_SQDH", this.ContentGrid.DataKeys[e.Row.RowIndex]["XLXSBJYLZDMX_SQDH"].ToString().Trim());
|
||||
LinkPageParam.AddString("XLXSBJYLZDMX_XH", this.ContentGrid.DataKeys[e.Row.RowIndex]["XLXSBJYLZDMX_XH"].ToString().Trim());
|
||||
}
|
||||
base.moduleGV_RowDataBound(sender, e);
|
||||
}
|
||||
|
||||
protected override bool Master_BeforeDeleteAction(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
entity.Param.Add("XLXSBJYLZDMX_SQDH", this.ContentGrid.DataKeys[ContentGrid.SelectedIndex]["XLXSBJYLZDMX_SQDH"].ToString().Trim());
|
||||
entity.Param.Add("XLXSBJYLZDMX_XH", this.ContentGrid.DataKeys[ContentGrid.SelectedIndex]["XLXSBJYLZDMX_XH"].ToString().Trim());
|
||||
|
||||
return base.Master_BeforeDeleteAction(sender, e);
|
||||
|
||||
}
|
||||
|
||||
protected override void AfterDelete(TDatabase db, ref bool ActionIsDone)
|
||||
{
|
||||
base.AfterDelete(db, ref ActionIsDone);
|
||||
}
|
||||
|
||||
protected override bool Master_AfterDeleteAction(object sender, EventArgs e)
|
||||
{
|
||||
if (!base.Master_AfterDeleteAction(sender, e))
|
||||
{ return false; }
|
||||
base.InitEntityByCondition();
|
||||
entity.EntityTable.QuerySelSql = GetSql();
|
||||
entity.GridDataBind(ContentGrid, tSession);
|
||||
ContentGrid.SelectedIndex = -1;
|
||||
return true;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义函数
|
||||
|
||||
private string GetSql()
|
||||
{
|
||||
StringBuilder strSQL = new StringBuilder();
|
||||
strSQL.AppendLine(" select XLXSBJYLZDMX_SQDH,XLXSBJYLZDMX_XH,XLXSBJYLZDMX_BJDXH,");
|
||||
strSQL.AppendLine(" XLXSBJYLZDMX_BJDXLXHID,XLXSBJYLZDMX_BJDXLGGID,XLXSBJYLZDMX_BJDXLBZID,RTRIM(XLXSBJYLZDMX_BJDXLBZID)||'|'||isnull(A.XLBZ_XLBZLXMC,' ') as XLBZ, ");
|
||||
strSQL.AppendLine(" XLXSBJYLZDMX_BJDDYDJID,XLXSBJYLZDMX_XLXHID,XLXSBJYLZDMX_XLGGID, ");
|
||||
strSQL.AppendLine(" XLXSBJYLZDMX_XLBZID,XLXSBJYLZDMX_DYDJID,RTRIM(XLXSBJYLZDMX_XLBZID)||'|'||isnull(B.XLBZ_XLBZLXMC,' ') as XDXLBZ,");
|
||||
strSQL.AppendLine(" XLXSBJYLZDMX_BZ,XLXSBJYLZDMX_WHR,XLXSBJYLZDMX_WHRID,XLXSBJYLZDMX_WHSJ,XLXSBJYLZDMX_DZSC ");
|
||||
strSQL.AppendLine(" from XLXSBJYLZDMX ");
|
||||
strSQL.AppendLine(" left join XLBZ A on A.XLBZ_XLBZID = XLXSBJYLZDMX_BJDXLBZID ");
|
||||
strSQL.AppendLine(" left join XLBZ B on B.XLBZ_XLBZID = XLXSBJYLZDMX_XLBZID ");
|
||||
strSQL.AppendLine(" where 1=1 and XLXSBJYLZDMX_SQDH='0000000000'");
|
||||
//型号模糊
|
||||
if (!CurQueryEntity.FieldByName("XLXHIDJQPP").Value.ToString().Trim().ToUpper().Equals("TRUE"))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("XLXHID").Value.Trim()))
|
||||
{
|
||||
strSQL.AppendLine(" \r\n and XLXSBJYLZDMX_BJDXLXHID like :pXLXHID ");
|
||||
entity.Param.Add("pXLXHID", "%" + CurQueryEntity.FieldByName("XLXHID").Value.Trim() + "%");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string sXLXHID = CurQueryEntity.FieldByName("XLXHID").Value.Trim();
|
||||
if (!string.IsNullOrEmpty(sXLXHID))
|
||||
{
|
||||
string[] sTemp = sXLXHID.Split(new Char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
if (sTemp.Length >= 2)
|
||||
{
|
||||
strSQL.AppendLine(" \r\n and " + CMISproDataBase.GetWhereEqual("XLXSBJYLZDMX_BJDXLXHID", sXLXHID));
|
||||
}
|
||||
else
|
||||
{
|
||||
strSQL.AppendLine(" \r\n and XLXSBJYLZDMX_BJDXLXHID = :pXLXHID ");
|
||||
entity.Param.Add("pXLXHID", sXLXHID);
|
||||
}
|
||||
}
|
||||
}
|
||||
//规格模糊
|
||||
if (!CurQueryEntity.FieldByName("XLGGIDJQPP").Value.ToString().Trim().ToUpper().Equals("TRUE"))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("XLGGID").Value.Trim()))
|
||||
{
|
||||
strSQL.AppendLine(" and replace(XLXSBJYLZDMX_BJDXLGGID,'*','×') like :pXLGGID ");
|
||||
entity.Param.Add("pXLGGID", "%" + CurQueryEntity.FieldByName("XLGGID").Value.Trim().Replace("*", "×") + "%");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string sXLGGID = CurQueryEntity.FieldByName("XLGGID").Value.Trim();
|
||||
if (!string.IsNullOrEmpty(sXLGGID))
|
||||
{
|
||||
string[] sTemp = sXLGGID.Split(new Char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
if (sTemp.Length >= 2)
|
||||
{
|
||||
strSQL.AppendLine(" and " + CMISproDataBase.GetWhereEqual(" replace(XLXSBJYLZDMX_BJDXLGGID,'*','×')", sXLGGID.Replace('*', '×')));
|
||||
}
|
||||
else
|
||||
{
|
||||
strSQL.AppendLine(" and replace(XLXSBJYLZDMX_BJDXLGGID,'*','×') = :pXLGGID ");
|
||||
entity.Param.Add("pXLGGID", CurQueryEntity.FieldByName("XLGGID").Value.Trim().Replace("*", "×"));
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("ST").Value.Trim()))
|
||||
{
|
||||
strSQL.AppendLine(" and XLXSBJYLZDMX_BJDXLBZID = :pST ");
|
||||
entity.Param.Add("pST", CurQueryEntity.FieldByName("ST").Value.Trim());
|
||||
}
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("DYDJ").Value.Trim()))
|
||||
{
|
||||
strSQL.AppendLine(" and XLXSBJYLZDMX_BJDDYDJID = :pDYDJ ");
|
||||
entity.Param.Add("pDYDJ", CurQueryEntity.FieldByName("DYDJ").Value.Trim());
|
||||
}
|
||||
strSQL.AppendLine(" order by XLXSBJYLZDMX_XH");
|
||||
return strSQL.ToString();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 控件事件
|
||||
|
||||
protected void btnDR_Click(object sender, EventArgs e)
|
||||
{
|
||||
TPageParams pageParams = new TPageParams();
|
||||
pageParams.UrlPath = "BJCPXD_DRInfo.aspx";
|
||||
pageParams.Title = "导入Excel文件";
|
||||
pageParams.AddString("btnRefreshCID", btnRefresh.ClientID);
|
||||
OpenDialog(pageParams);
|
||||
}
|
||||
|
||||
protected void btnRefresh_Click(object sender, EventArgs e)
|
||||
{
|
||||
moduleGV_PageIndexChanging(null, null);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+70
@@ -0,0 +1,70 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9174
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJCPXDList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJCPXDList {
|
||||
|
||||
/// <summary>
|
||||
/// CustomButton 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table CustomButton;
|
||||
|
||||
/// <summary>
|
||||
/// btnDR 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnDR;
|
||||
|
||||
/// <summary>
|
||||
/// btnRefresh 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnRefresh;
|
||||
|
||||
/// <summary>
|
||||
/// ContentGrid 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView ContentGrid;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleGrid Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleGrid)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/N_MODEL/Page/MasterSingleQuery.Master"
|
||||
CodeBehind="BJCPXDQuery.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJCPXDQuery" Title="查询" %>
|
||||
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleQuery.Master" %>
|
||||
<asp:Content ID="ContentQuery" ContentPlaceHolderID="CPHQuery" runat="server">
|
||||
<asp:Table ID="QueryTalbe" runat="server">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="25px">
|
||||
<gtc:gtLabel ID="lblXLXHID" runat="server">型号:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="25px">
|
||||
<gtc:gtTextBox ID="txtXLXHID" Width="146px" DataField="XLXHID" runat="server" Tag="None" CharCase="ecUpperCase">
|
||||
</gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="25px">
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell3" Height="25px" runat="server">
|
||||
<gtc:gtCheckBox ID="chkXLXHIDJQPP" DataField="XLXHIDJQPP" runat="server" Width="95px"
|
||||
Text="型号精确匹配" ></gtc:gtCheckBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="25px">
|
||||
<gtc:gtLabel ID="lblXLGGID" runat="server">规格:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="25px">
|
||||
<gtc:gtTextBox ID="txtXLGGID" Width="196px" DataField="XLGGID" runat="server" Tag="None"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="25px">
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="25px">
|
||||
<gtc:gtCheckBox ID="chkXLGGIDJQPP" DataField="XLGGIDJQPP" runat="server" Width="95px"
|
||||
Text="规格精确匹配" ></gtc:gtCheckBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="25px">
|
||||
<gtc:gtLabel ID="GtLabel1" runat="server">标准:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="25px">
|
||||
<gtc:gtComboBox ID="cbxST" runat="server" DataField="ST" Width="150px">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="25px">
|
||||
<gtc:gtLabel ID="GtLabel2" runat="server">电压等级:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="25px">
|
||||
<gtc:gtComboBox ID="cbxDYDJID" runat="server" DataField="DYDJ" Width="150px" ShowValue="false">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using GThinking.N_WORKFLOW;
|
||||
using GThinking.N_PUBLIC;
|
||||
using GThinking.N_MODEL.Dialog;
|
||||
using GThinking.N_CONTROL;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class BJCPXDQuery : SingleQueryBase
|
||||
{
|
||||
BJCPXD_M queryentity = new BJCPXD_M();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860097;
|
||||
this.UMName = "±¨¼Û²úÆ·ÐÞ¶©";
|
||||
this.CurMaster = Master;
|
||||
this.CurQueryTable = QueryTalbe;
|
||||
this.CurQueryEntity = queryentity;
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
InitControl();
|
||||
}
|
||||
|
||||
base.InitPage();
|
||||
}
|
||||
|
||||
private void InitControl()
|
||||
{
|
||||
TComboBox.SetComboBox("DBERP", this.cbxST, "select XLBZ_XLBZID,XLBZ_XLBZLXMC from XLBZ order by XLBZ_PX,XLBZ_XLBZID", true);
|
||||
TComboBox.SetComboBox("DBERP", cbxDYDJID, "select distinct XLDYDJB_DYDJID as ID,XLDYDJB_DYDJID as Name from XLDYDJB where 1=1 order by ID ", true);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+142
@@ -0,0 +1,142 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9174
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJCPXDQuery 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJCPXDQuery {
|
||||
|
||||
/// <summary>
|
||||
/// QueryTalbe 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table QueryTalbe;
|
||||
|
||||
/// <summary>
|
||||
/// lblXLXHID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblXLXHID;
|
||||
|
||||
/// <summary>
|
||||
/// txtXLXHID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtXLXHID;
|
||||
|
||||
/// <summary>
|
||||
/// TableCell3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TableCell TableCell3;
|
||||
|
||||
/// <summary>
|
||||
/// chkXLXHIDJQPP 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckBox chkXLXHIDJQPP;
|
||||
|
||||
/// <summary>
|
||||
/// lblXLGGID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblXLGGID;
|
||||
|
||||
/// <summary>
|
||||
/// txtXLGGID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtXLGGID;
|
||||
|
||||
/// <summary>
|
||||
/// chkXLGGIDJQPP 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckBox chkXLGGIDJQPP;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel1;
|
||||
|
||||
/// <summary>
|
||||
/// cbxST 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxST;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel2;
|
||||
|
||||
/// <summary>
|
||||
/// cbxDYDJID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxDYDJID;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleQuery Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleQuery)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSBJYLZDMX", Umid = 100860097, IsWorkFlow = false, UseWhr = false)]
|
||||
public class BJCPXD_DR : EntityManager
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/N_MODEL/Page/MasterSingleCard.Master"
|
||||
CodeBehind="BJCPXD_DRInfo.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJCPXD_DRInfo" Title="导入Excel文件" %>
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleCard.Master " %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="cphUserToolbar" runat="server">
|
||||
<asp:Table CellPadding="0" CellSpacing="0" runat="server" ID="tbl1">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnQD" runat="server" Caption="确 定" ShowCaption="true" OnClientClick="if (document.getElementById('ctl00_CPHForm_fupdPost__FilePath').value == ''){alert('请选择需要导入的文件!');return false;} else{setTimeout('DoBtnClick()',1);return false;}"
|
||||
Width="58px" Height="19px" />
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnQX" runat="server" Caption="取 消" ShowCaption="true" OnClick="btnQX_Click"
|
||||
Width="58px" Height="19px" />
|
||||
</asp:TableCell>
|
||||
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnUn" runat="server" OnClick="btnUnDis_Click" />
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
function DoBtnClick()
|
||||
{
|
||||
document.getElementById('ctl00_CPHUserToolbar_btnUnButton').click();
|
||||
}
|
||||
</script>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentHidden" ContentPlaceHolderID="cphBrand" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="cntForm" ContentPlaceHolderID="CPHForm" runat="server">
|
||||
<center>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr style="height: 30px">
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="width : 120px" align="right">
|
||||
<gtc:gtLabel ID="lblWJ" runat="server" Text="导入文件(*.xls):"></gtc:gtLabel>
|
||||
</td>
|
||||
<td>
|
||||
<gtc:gtAsyncFileUpload ID="fupdPost" runat="server" Width="300px" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height: 20px;">
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="middle" colspan="2">
|
||||
<asp:Label ID="lblTitle" runat="server" Text=""></asp:Label></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</asp:Content>
|
||||
|
||||
|
||||
@@ -0,0 +1,252 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MISPRO;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using GThinking.N_WORKFLOW;
|
||||
using GThinking.N_MODEL.Dialog;
|
||||
using GThinking.N_PUBLIC;
|
||||
using GThinking.N_PUBLIC2;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using GThinking.N_CONTROL;
|
||||
using System.IO;
|
||||
using System.Data.OleDb;
|
||||
using System.Data.Common;
|
||||
using GThinking.N_MISPRO.Caching;
|
||||
using GThinking.N_MISPRO.TableCache;
|
||||
using GThinking.N_MISPROAS;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class BJCPXD_DRInfo : SingleCardBase
|
||||
{
|
||||
BJCPXD_DR entity = new BJCPXD_DR();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860097;
|
||||
this.UMName = "报价产品修订";
|
||||
base.CurMaster = Master;
|
||||
this.CurEntity = entity;
|
||||
this.PageHeight = 180;
|
||||
this.PageWidth = 420;
|
||||
|
||||
this.Master.EnableAttachBtn = false;
|
||||
this.Master.EnableCancelBtn = false;
|
||||
this.Master.EnableCopyBtn = false;
|
||||
this.Master.EnableDeleteBtn = false;
|
||||
this.Master.EnableEditBtn = false;
|
||||
this.Master.EnableInsertBtn = false;
|
||||
this.Master.EnablePrintBtn = false;
|
||||
this.Master.EnableRefreshBtn = false;
|
||||
this.Master.EnableSaveBtn = false;
|
||||
Server.ScriptTimeout = 3600;
|
||||
fupdPost.FileSaveType = gtAsyncFileUpload.DFileSaveType.SaveToPath;
|
||||
if (AppRuntime.BitType == AppBitType.Bit32)
|
||||
fupdPost.Filter = "XLS";
|
||||
else // AppBitType.Bit64
|
||||
fupdPost.Filter = "XLS,XLSX";
|
||||
base.InitPage();
|
||||
Server.ScriptTimeout = 3600;
|
||||
btnUn.Style["display"] = "none";
|
||||
}
|
||||
#region 控件事件
|
||||
|
||||
protected void btnQX_Click(object sender, EventArgs e)
|
||||
{
|
||||
CloseWindowNoQuery();
|
||||
}
|
||||
|
||||
protected void btnUnDis_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sSQL = new TSQL(dberp);
|
||||
try
|
||||
{
|
||||
lblTitle.Text = "正在导入数据,请稍后...";
|
||||
dberp.BeginTrans();
|
||||
DataSet aDataExcel = new DataSet();
|
||||
if (AppRuntime.BitType == AppBitType.Bit32)
|
||||
{
|
||||
aDataExcel = XLBJDUtils.ReadFromExcelFile(fupdPost.FilePath, 0, "");
|
||||
}
|
||||
else // AppBitType.Bit64
|
||||
{
|
||||
ReadWJ(fupdPost.FilePath, ref aDataExcel);
|
||||
}
|
||||
|
||||
ExcelColumnValid(aDataExcel);
|
||||
InsertDRJL(dberp, sSQL, aDataExcel);
|
||||
dberp.CommitTrans();
|
||||
ShowMessage("导入成功!");
|
||||
|
||||
DialogOperationScript dos = new DialogOperationScript(this);
|
||||
dos.ClickOwnerButton(PageParam.GetRTrimString("btnRefreshCID"));
|
||||
dos.CloseSelf();
|
||||
dos.Execute();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
lblTitle.Text = "";
|
||||
dberp.RollbackTrans();
|
||||
ShowMessage(ex.Message);
|
||||
}
|
||||
finally
|
||||
{
|
||||
System.IO.File.Delete(fupdPost.FilePath.Trim());
|
||||
}
|
||||
CloseWindowNoQuery();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义函数
|
||||
|
||||
private void InsertDRJL(TDatabase dberp, TSQL SQL, DataSet ds)
|
||||
{
|
||||
int iXH = CMISproDataBase.GetMaxXH("DBERP", "XLXSBJYLZDMX", "XLXSBJYLZDMX_XH", "XLXSBJYLZDMX_SQDH ='0000000000'") + 1;
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
string sXLXHID = ds.Tables[0].Rows[i][0].ToString().Trim();
|
||||
string sXLGGID = ds.Tables[0].Rows[i][1].ToString().Trim();
|
||||
string sST = ds.Tables[0].Rows[i][2].ToString().Trim();
|
||||
string sDYDJ = ds.Tables[0].Rows[i][3].ToString().Trim();
|
||||
string sXDXLXHID = ds.Tables[0].Rows[i][4].ToString().Trim();
|
||||
string sXDXLGGID = ds.Tables[0].Rows[i][5].ToString().Trim();
|
||||
string sXDST = ds.Tables[0].Rows[i][6].ToString().Trim();
|
||||
string sXDDYDJ = ds.Tables[0].Rows[i][7].ToString().Trim();
|
||||
string sBZ = ds.Tables[0].Rows[i][8].ToString().Trim();
|
||||
|
||||
#region 校验数据
|
||||
|
||||
if (sXLXHID.Equals("")||sXLGGID.Equals("")||sST.Equals("")||sDYDJ.Equals(""))
|
||||
{
|
||||
string sDRXXMessage ="导入失败!修订前产品型号、规格、标准、电压等级不能为空!";
|
||||
throw new Exception(sDRXXMessage);
|
||||
}
|
||||
|
||||
if (sXDXLXHID.Equals("") || sXDXLGGID.Equals("") || sXDST.Equals("") || sXDDYDJ.Equals(""))
|
||||
{
|
||||
string sDRXXMessage = "导入失败!修订产品型号、规格、标准、电压等级不能为空!";
|
||||
throw new Exception(sDRXXMessage);
|
||||
}
|
||||
|
||||
if (sXLXHID.Equals(sXDXLXHID) && sXLGGID.Equals(sXDXLGGID))
|
||||
{
|
||||
if (sST.Equals(sXDST) && sDYDJ.Equals(sXDDYDJ))
|
||||
{
|
||||
string sDRXXMessage = string.Format("导入失败!修订前产品{0}、{1}、{2}、{3}不能与修订后产品相同!", sXLXHID, sXLGGID, sST, sDYDJ);
|
||||
throw new Exception(sDRXXMessage);
|
||||
}
|
||||
}
|
||||
|
||||
string sSQL = string.Format(@"select top 1 XLXSBJYLZDMX_SQDH
|
||||
from XLXSBJYLZDMX
|
||||
where XLXSBJYLZDMX_SQDH='0000000000' and XLXSBJYLZDMX_BJDXLXHID='{0}' and XLXSBJYLZDMX_BJDXLGGID='{1}' and
|
||||
XLXSBJYLZDMX_BJDXLBZID='{2}'and XLXSBJYLZDMX_BJDDYDJID='{3}' ", sXLXHID, sXLGGID, sST, sDYDJ);
|
||||
|
||||
if (CMISproDataBase.ExistsRecord("DBERP", sSQL))
|
||||
{
|
||||
SQL.Clear();
|
||||
SQL.Add(@" update XLXSBJYLZDMX set XLXSBJYLZDMX_XLXHID=:pXLXHID ,XLXSBJYLZDMX_XLGGID=:pXLGGID,XLXSBJYLZDMX_XLBZID=:pXLBZID,XLXSBJYLZDMX_DYDJID=:pDYDJID,
|
||||
XLXSBJYLZDMX_WHR=:pWHR,XLXSBJYLZDMX_WHRID=:pWHRID,XLXSBJYLZDMX_WHSJ=:pWHSJ
|
||||
where XLXSBJYLZDMX_SQDH='0000000000' and XLXSBJYLZDMX_BJDXLXHID=:pBJDXLXHID and XLXSBJYLZDMX_BJDXLGGID=:pBJDXLGGID and XLXSBJYLZDMX_BJDXLBZID=:pBJDXLBZID and XLXSBJYLZDMX_BJDDYDJID=:pBJDDYDJID ");
|
||||
|
||||
SQL.ParamByName("pBJDXLXHID").Value = sXLXHID;
|
||||
SQL.ParamByName("pBJDXLGGID").Value = sXLGGID;
|
||||
SQL.ParamByName("pBJDXLBZID").Value = sST;
|
||||
SQL.ParamByName("pBJDDYDJID").Value = sDYDJ;
|
||||
SQL.ParamByName("pXLXHID").Value = sXDXLXHID;
|
||||
SQL.ParamByName("pXLGGID").Value = sXDXLGGID;
|
||||
SQL.ParamByName("pXLBZID").Value = sXDST;
|
||||
SQL.ParamByName("pDYDJID").Value = sXDDYDJ;
|
||||
SQL.ParamByName("pWHR").Value = tSession.UserName;
|
||||
SQL.ParamByName("pWHRID").Value = tSession.UserId;
|
||||
SQL.ParamByName("pWHSJ").Value = DateTime.Now;
|
||||
dberp.ExecSQL(SQL);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region 插入语句
|
||||
|
||||
SQL.Clear();
|
||||
SQL.Add(@"insert into XLXSBJYLZDMX(XLXSBJYLZDMX_SQDH,XLXSBJYLZDMX_XH,XLXSBJYLZDMX_BJDXLXHID,XLXSBJYLZDMX_BJDXLGGID,XLXSBJYLZDMX_BJDXLBZID,XLXSBJYLZDMX_BJDDYDJID,
|
||||
XLXSBJYLZDMX_XLXHID,XLXSBJYLZDMX_XLGGID,XLXSBJYLZDMX_XLBZID,XLXSBJYLZDMX_DYDJID,
|
||||
XLXSBJYLZDMX_BZ,XLXSBJYLZDMX_WHR,XLXSBJYLZDMX_WHRID,XLXSBJYLZDMX_WHSJ,XLXSBJYLZDMX_DZSC)
|
||||
values(:pSQDH,:pXH,:pXLXHID,:pXLGGID,:pXLBZID,:pDYDJID,:pXDXLXHID,:pXDXLGGID,:pXDXLBZID,:pXDDYDJID,:pBZ,:pWHR,:pWHRID,:pWHSJ,:pDZSC )");
|
||||
|
||||
SQL.ParamByName("pSQDH").Value = "0000000000";
|
||||
SQL.ParamByName("pXH").Value = iXH++;
|
||||
SQL.ParamByName("pXLXHID").Value = sXLXHID;
|
||||
SQL.ParamByName("pXLGGID").Value = sXLGGID;
|
||||
SQL.ParamByName("pXLBZID").Value = sST;
|
||||
SQL.ParamByName("pDYDJID").Value = sDYDJ;
|
||||
SQL.ParamByName("pXDXLXHID").Value = sXDXLXHID;
|
||||
SQL.ParamByName("pXDXLGGID").Value = sXDXLGGID;
|
||||
SQL.ParamByName("pXDXLBZID").Value = sXDST;
|
||||
SQL.ParamByName("pXDDYDJID").Value = sXDDYDJ;
|
||||
SQL.ParamByName("pBZ").Value = sBZ;
|
||||
SQL.ParamByName("pWHR").Value = tSession.UserName;
|
||||
SQL.ParamByName("pWHRID").Value = tSession.UserId;
|
||||
SQL.ParamByName("pWHSJ").Value = DateTime.Now;
|
||||
SQL.ParamByName("pDZSC").Value = "N";
|
||||
|
||||
dberp.ExecSQL(SQL);
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void ExcelColumnValid(DataSet ds)
|
||||
{
|
||||
Dictionary<string, string> ColumnNames = new Dictionary<string, string>();
|
||||
|
||||
ColumnNames.Clear();
|
||||
ColumnNames.Add("0", "型号");
|
||||
ColumnNames.Add("1", "规格");
|
||||
ColumnNames.Add("2", "标准");
|
||||
ColumnNames.Add("3", "电压等级");
|
||||
ColumnNames.Add("4", "修订型号");
|
||||
ColumnNames.Add("5", "修订规格");
|
||||
ColumnNames.Add("6", "修订标准");
|
||||
ColumnNames.Add("7", "修订电压等级");
|
||||
ColumnNames.Add("8", "备注");
|
||||
foreach (KeyValuePair<string, string> kpv in ColumnNames)
|
||||
{
|
||||
if (!ds.Tables[0].Columns[CMISproConvert.StrToInt(kpv.Key.Trim())].ColumnName.Trim().Equals(kpv.Value.Trim()))
|
||||
{
|
||||
throw new Exception(string.Format("({0})列标题错误,该列为({1})", ds.Tables[0].Columns[CMISproConvert.StrToInt(kpv.Key.Trim())].ColumnName.Trim()+1, kpv.Value.Trim()));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void ReadWJ(string sPath, ref DataSet aDataExcel)
|
||||
{
|
||||
string sMessage = "";
|
||||
aDataExcel = TExcelData.ReadExcel(sPath.Trim(), "", "", false, ref sMessage);
|
||||
if (!sMessage.Trim().Equals(""))
|
||||
{
|
||||
throw new Exception("文件读取失败!");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+97
@@ -0,0 +1,97 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9174
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJCPXD_DRInfo 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJCPXD_DRInfo {
|
||||
|
||||
/// <summary>
|
||||
/// tbl1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table tbl1;
|
||||
|
||||
/// <summary>
|
||||
/// btnQD 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnQD;
|
||||
|
||||
/// <summary>
|
||||
/// btnQX 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnQX;
|
||||
|
||||
/// <summary>
|
||||
/// btnUn 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnUn;
|
||||
|
||||
/// <summary>
|
||||
/// lblWJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblWJ;
|
||||
|
||||
/// <summary>
|
||||
/// fupdPost 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtAsyncFileUpload fupdPost;
|
||||
|
||||
/// <summary>
|
||||
/// lblTitle 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTitle;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleCard Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleCard)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public class BJCPXD_M : TBaseNamedQuery
|
||||
{
|
||||
public BJCPXD_M()
|
||||
{
|
||||
AddFieldDefs("XLXHID", "ÐͺÅ");
|
||||
AddFieldDefs("XLXHIDJQPP", "Ðͺž«È·Æ¥Åä");
|
||||
AddFieldDefs("XLGGID", "¹æ¸ñ");
|
||||
AddFieldDefs("XLGGIDJQPP", "¹æ¸ñ¾«È·Æ¥Åä");
|
||||
AddFieldDefs("ST", "±ê×¼");
|
||||
AddFieldDefs("DYDJ", "µçѹµÈ¼¶");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+887
@@ -0,0 +1,887 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BJDPLTJ.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJDPLTJ" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<meta charset="UTF-8">
|
||||
<title>批量调价</title>
|
||||
<link rel="stylesheet" href="images/elmentindex.css">
|
||||
<script src="images/vue@3.js"></script>
|
||||
<script src="images/element-plus.js"></script>
|
||||
<script src="images/icons-vue.js"></script>
|
||||
<style type="text/css">
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100vh;
|
||||
font-family: Arial;
|
||||
background: #f5f7fa;
|
||||
overflow: hidden;
|
||||
}
|
||||
#app {
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 20px 10px;
|
||||
box-sizing: border-box;
|
||||
background: #fff;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.button-container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
margin: 0 10px 20px;
|
||||
}
|
||||
|
||||
.left-buttons {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.left-buttons > * {
|
||||
margin: 0 !important;
|
||||
}
|
||||
.grid-content {
|
||||
border-radius: 4px;
|
||||
min-height: 36px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: left;
|
||||
}
|
||||
.cxtj-span {
|
||||
color: #000;
|
||||
font-size: 12px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.non-compliant-cell {
|
||||
background: #ffffcc !important;
|
||||
}
|
||||
|
||||
.table-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.el-table-v2__header-cell {
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
text-align: center !important;
|
||||
position: relative;
|
||||
background: #f5f7fa !important;
|
||||
font-weight: bold;
|
||||
border-left: 1px solid #ebeef5;
|
||||
border-right: 1px solid #ebeef5;
|
||||
}
|
||||
.el-table-v2__row-cell {
|
||||
border: 1px solid #ebeef5;
|
||||
padding: 0px;
|
||||
user-select: none;
|
||||
}
|
||||
.el-table-v2__row-cell:first-child,
|
||||
.el-table-v2__header-cell:first-child {
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
}
|
||||
.el-table-v2__row-cell:first-child > div,
|
||||
.el-table-v2__header-cell:first-child > div {
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
height: 100% !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
/* 确保固定列在左侧 - 只固定第一列(勾选框列) */
|
||||
.el-table-v2 [data-fixed-left] {
|
||||
position: sticky !important;
|
||||
left: 0 !important;
|
||||
z-index: 3 !important;
|
||||
background: #fff !important;
|
||||
}
|
||||
.el-table-v2__header [data-fixed-left] {
|
||||
position: sticky !important;
|
||||
left: 0 !important;
|
||||
z-index: 4 !important;
|
||||
background: #f5f7fa !important;
|
||||
}
|
||||
.el-table-v2__row-cell:nth-child(1),
|
||||
.el-table-v2__header-cell:nth-child(1) {
|
||||
position: sticky !important;
|
||||
left: 0 !important;
|
||||
z-index: 3 !important;
|
||||
background: #fff !important;
|
||||
}
|
||||
.el-table-v2__header-cell:nth-child(1) {
|
||||
z-index: 4 !important;
|
||||
background: #f5f7fa !important;
|
||||
}
|
||||
.left-padding-8 .el-table-v2__row-cell {
|
||||
margin-left: 8px !important;
|
||||
}
|
||||
.el-table-v2__header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
}
|
||||
.el-table-v2__body {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
.el-table-v2__header-row {
|
||||
border-bottom: none !important;
|
||||
}
|
||||
.el-table-v2__row {
|
||||
border-bottom: none !important;
|
||||
}
|
||||
.el-table-v2__cell {
|
||||
padding: 0 12px !important;
|
||||
display: flex !important;
|
||||
}
|
||||
.el-table-v2__row.row--selected {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
.el-table-v2__row:hover {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
/* 仅对实际单元格添加悬停背景,避免空白列出现背景色 */
|
||||
.el-table-v2__row:hover .el-table-v2__row-cell {
|
||||
background-color: #f5f7fa !important;
|
||||
}
|
||||
|
||||
.operation-cell {
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.el-icon-edit {
|
||||
transition: color 0.3s;
|
||||
}
|
||||
|
||||
.el-icon-edit:hover {
|
||||
color: #409EFF !important;
|
||||
}
|
||||
|
||||
.el-table-v2__header-cell .filter-trigger {
|
||||
display: inline-flex !important;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
.filter-trigger:hover {
|
||||
color: #409EFF !important;
|
||||
transform: scale(1.1);
|
||||
}
|
||||
.el-popper {
|
||||
z-index: 9999 !important;
|
||||
margin-top: 2px !important;
|
||||
}
|
||||
.el-checkbox-group {
|
||||
padding: 8px 12px;
|
||||
}
|
||||
|
||||
.el-checkbox {
|
||||
display: block;
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
/* 筛选弹层防止勾选项覆盖底部操作 */
|
||||
/* 筛选弹层:不增加高度,只让列表区域滚动 */
|
||||
.filter-popover .filter-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
.filter-popover .filter-scroll {
|
||||
height: 200px; /* 固定可视高度,避免弹层变高 */
|
||||
overflow: hidden;
|
||||
}
|
||||
.filter-popover .filter-scroll .el-scrollbar__wrap {
|
||||
max-height: 200px !important;
|
||||
overflow: auto !important;
|
||||
}
|
||||
.filter-popover .filter-footer {
|
||||
position: relative; /* 让按钮区在同一层级,遮盖滚动区溢出内容 */
|
||||
z-index: 2;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
/* 调整滚动区域高度 */
|
||||
.el-scrollbar__wrap {
|
||||
max-height: 200px;
|
||||
}
|
||||
|
||||
/* 按钮容器底部固定 */
|
||||
.filter-footer {
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
background: white;
|
||||
padding: 8px;
|
||||
border-top: 1px solid #ebeef5;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.selectable-cell {
|
||||
user-select: none;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.selected-cell {
|
||||
background-color: #b3d8ff !important;
|
||||
border: 1px solid #409EFF !important;
|
||||
}
|
||||
|
||||
/* 替换按钮样式 */
|
||||
.replace-button {
|
||||
box-shadow: 0 2px 12px rgba(0,0,0,.1);
|
||||
background: #409EFF;
|
||||
color: white;
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* 覆盖默认按钮hover样式 */
|
||||
.replace-button:hover {
|
||||
background: #66b1ff !important;
|
||||
}
|
||||
|
||||
.dialog-footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.resizer {
|
||||
position: absolute;
|
||||
right: -2px;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 8px;
|
||||
background-color: transparent;
|
||||
cursor: col-resize;
|
||||
z-index: 10;
|
||||
transform: translateX(100%);
|
||||
}
|
||||
|
||||
.el-table-v2__header-cell {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.save-as-btn {
|
||||
top: 10px;
|
||||
height: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: transparent;
|
||||
border: 1px solid #409eff;
|
||||
color: #409eff;
|
||||
padding: 0 10px;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
transition: all 0.3s;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.save-as-btn:hover {
|
||||
background-color: #409eff;
|
||||
color: white;
|
||||
border-color: #3a8ee6;
|
||||
box-shadow: 0 2px 4px rgba(64, 158, 255, 0.3);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
/* 因子按钮组样式 - 使按钮和下拉箭头无缝连接 */
|
||||
.yz-button-group {
|
||||
display: inline-flex;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.yz-button-group .yz-main-btn {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.yz-button-group .yz-dropdown {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.yz-button-group .yz-arrow-btn {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
border-left: 1px solid #409eff;
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
.yz-button-group .yz-arrow-btn .el-icon-arrow-down {
|
||||
font-size: 12px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.yz-button-group:hover .yz-main-btn,
|
||||
.yz-button-group:hover .yz-arrow-btn {
|
||||
border-color: #3a8ee6;
|
||||
}
|
||||
|
||||
.yz-button-group .yz-main-btn:hover,
|
||||
.yz-button-group .yz-arrow-btn:hover {
|
||||
border-color: #3a8ee6;
|
||||
}
|
||||
|
||||
.overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
.loading-content {
|
||||
background-color: white;
|
||||
padding: 40px;
|
||||
border-radius: 4px;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.loading-content p {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.loading-content .progress-text {
|
||||
font-size: 16px;
|
||||
color: #409EFF;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.loading-spinner {
|
||||
border: 4px solid #f3f3f3;
|
||||
border-top: 4px solid #0094ff;
|
||||
border-radius: 50%;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
animation: spin 1s linear infinite;
|
||||
margin: 0 auto 10px;
|
||||
}
|
||||
|
||||
/* 定义渐隐动画 */
|
||||
@keyframes fadeOut {
|
||||
from {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" />
|
||||
<gtc:gtTextBox ID="txtBJDID" runat="server" Width="120px" style="display: none"></gtc:gtTextBox>
|
||||
<div id="app">
|
||||
<div class="button-container">
|
||||
<div class="left-buttons">
|
||||
<div v-if="buttonVisibility.BJSD" class="yz-button-group">
|
||||
<el-button class="save-as-btn yz-main-btn" size="small" @click="handleLockCommand('BJSD-SD')">
|
||||
报价锁定
|
||||
</el-button>
|
||||
<el-dropdown @command="handleLockCommand" trigger="hover" size="small" class="yz-dropdown">
|
||||
<el-button class="save-as-btn yz-arrow-btn" size="small">
|
||||
<span style="font-size: 12px;">▼</span>
|
||||
</el-button>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item command="BJSD-SD">锁定</el-dropdown-item>
|
||||
<el-dropdown-item command="BJSD-JS">解锁</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
<el-button class="save-as-btn" size="small" @click="handlePriceUp" v-if="buttonVisibility.BJSF">报价上浮%</el-button>
|
||||
<el-button class="save-as-btn" size="small" @click="handlePriceDown" v-if="buttonVisibility.BJXF">报价下浮%</el-button>
|
||||
<el-button class="save-as-btn" size="small" @click="handleJMBGS" v-if="buttonVisibility.JMBGS">{{ jmbgsButtonText }}</el-button>
|
||||
<el-button class="save-as-btn" size="small" @click="handleMaterialPrice" v-if="buttonVisibility.LJJCLLX">料价价差率%</el-button>
|
||||
<el-button class="save-as-btn" size="small" @click="handleBJXJ" v-if="buttonVisibility.BJXJ">产品报价限价</el-button>
|
||||
<el-button class="save-as-btn" size="small" @click="handleCLYLBL" v-if="buttonVisibility.CLYLBL">材料用量比例</el-button>
|
||||
<template v-for="yzItem in dynamicYZButtons" :key="yzItem.YZID">
|
||||
<div v-if="buttonVisibility['YZ_' + yzItem.YZID] && yzItem.Options && yzItem.Options.length > 0" class="yz-button-group">
|
||||
<el-button class="save-as-btn yz-main-btn" size="small" @click="handleYZButton(yzItem)">
|
||||
{{ yzItem.Text }}
|
||||
</el-button>
|
||||
<el-dropdown @command="(cmd) => handleYZCommand(cmd, yzItem)" trigger="hover" size="small" class="yz-dropdown">
|
||||
<el-button class="save-as-btn yz-arrow-btn" size="small">
|
||||
<span style="font-size: 12px;">▼</span>
|
||||
</el-button>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item v-for="option in yzItem.Options" :key="option.value" :command="option.value">{{ option.label }}</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
<el-button v-else-if="buttonVisibility['YZ_' + yzItem.YZID]" class="save-as-btn" size="small" @click="handleYZButton(yzItem)">{{ yzItem.Text }}</el-button>
|
||||
</template>
|
||||
<el-button class="save-as-btn" size="small" @click="openQueryDrawer">查询条件</el-button>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 10px;">
|
||||
<span style="color: #606266; font-size: 14px;">共{{ filteredItems.length }}条数据</span>
|
||||
<el-button class="save-as-btn" size="small" @click="closePanel">关闭</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="table-container" ref="tableContainer">
|
||||
<el-table-v2
|
||||
:key="tableVersion"
|
||||
:columns="columns"
|
||||
:data="filteredItems"
|
||||
:width="tableWidth"
|
||||
:height="tableHeight"
|
||||
row-key="XH"
|
||||
fixed
|
||||
/>
|
||||
</div>
|
||||
|
||||
<!-- 报价上浮对话框 -->
|
||||
<el-dialog
|
||||
title="报价上浮%"
|
||||
v-model="priceUpDialogVisible"
|
||||
width="500px"
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<el-form :model="priceUpForm" label-width="180px">
|
||||
<el-form-item label="调价范围:">
|
||||
<el-select v-model="priceUpForm.range" style="width: 188px;">
|
||||
<el-option v-if="priceUpForm.rangeOptions && priceUpForm.rangeOptions.includes('N')" label="勾选记录" value="N"></el-option>
|
||||
<el-option label="整单记录" value="Y"></el-option>
|
||||
<el-option label="所查记录" value="C"></el-option>
|
||||
<el-option v-if="priceUpForm.rangeOptions && priceUpForm.rangeOptions.includes('D')" label="当前记录" value="D"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<template #label>
|
||||
<span style="white-space: nowrap;">{{ priceUpForm.formulaLabel || '新报价=原报价/(1-' }}</span>
|
||||
</template>
|
||||
<el-input-number
|
||||
v-model="priceUpForm.value"
|
||||
:precision="2"
|
||||
:step="0.01"
|
||||
:min="0"
|
||||
:max="100"
|
||||
controls-position="right"
|
||||
style="width: 130px; display: inline-block;"
|
||||
></el-input-number>
|
||||
<span style="margin-left: 10px;">%)</span>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button @click="closePriceUpDialog">取消</el-button>
|
||||
<el-button type="primary" @click="confirmPriceUp">确定</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 报价下浮对话框 -->
|
||||
<el-dialog
|
||||
title="报价下浮%"
|
||||
v-model="priceDownDialogVisible"
|
||||
width="500px"
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<el-form :model="priceDownForm" label-width="180px">
|
||||
<el-form-item label="调价范围:">
|
||||
<el-select v-model="priceDownForm.range" style="width: 188px;">
|
||||
<el-option v-if="priceDownForm.rangeOptions && priceDownForm.rangeOptions.includes('N')" label="勾选记录" value="N"></el-option>
|
||||
<el-option label="整单记录" value="Y"></el-option>
|
||||
<el-option label="所查记录" value="C"></el-option>
|
||||
<el-option v-if="priceDownForm.rangeOptions && priceDownForm.rangeOptions.includes('D')" label="当前记录" value="D"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<template #label>
|
||||
<span style="white-space: nowrap;">{{ priceDownForm.formulaLabel || '新报价=原报价*(1-' }}</span>
|
||||
</template>
|
||||
<el-input-number
|
||||
v-model="priceDownForm.value"
|
||||
:precision="2"
|
||||
:step="0.01"
|
||||
:min="0"
|
||||
:max="100"
|
||||
controls-position="right"
|
||||
style="width: 130px; display: inline-block;"
|
||||
></el-input-number>
|
||||
<span style="margin-left: 10px;">%)</span>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button @click="closePriceDownDialog">取消</el-button>
|
||||
<el-button type="primary" @click="confirmPriceDown">确定</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 批量调价对话框 -->
|
||||
<el-dialog
|
||||
title="批量调价"
|
||||
v-model="batchPriceDialogVisible"
|
||||
width="600px"
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<el-form :model="batchPriceForm" label-width="120px">
|
||||
<el-form-item label="调价类型:">
|
||||
<el-radio-group v-model="batchPriceForm.adjustType">
|
||||
<el-radio label="up">上浮</el-radio>
|
||||
<el-radio label="down">下浮</el-radio>
|
||||
<el-radio label="material">料价价差率</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="调价范围:">
|
||||
<el-select v-model="batchPriceForm.range" style="width: 100%">
|
||||
<el-option v-if="batchPriceForm.rangeOptions && batchPriceForm.rangeOptions.includes('N')" label="勾选记录" value="N"></el-option>
|
||||
<el-option label="整单记录" value="Y"></el-option>
|
||||
<el-option label="所查记录" value="C"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="batchPriceForm.adjustType !== 'material'" label="调价比例:">
|
||||
<el-input-number
|
||||
v-model="batchPriceForm.value"
|
||||
:precision="2"
|
||||
:step="0.01"
|
||||
:min="0"
|
||||
:max="100"
|
||||
controls-position="right"
|
||||
style="width: 100%"></el-input-number>
|
||||
<span style="margin-left: 10px;">%</span>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="batchPriceForm.adjustType === 'material'" label="材料成本类型:">
|
||||
<el-select v-model="batchPriceForm.materialType" style="width: 100%">
|
||||
<el-option label="相对值" value="relative"></el-option>
|
||||
<el-option label="固定值" value="fixed"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="batchPriceForm.adjustType === 'material'" label="材料成本值:">
|
||||
<el-input-number
|
||||
v-model="batchPriceForm.materialValue"
|
||||
:precision="5"
|
||||
:step="0.00001"
|
||||
controls-position="right"
|
||||
style="width: 100%"></el-input-number>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button @click="closeBatchPriceDialog">取消</el-button>
|
||||
<el-button type="primary" @click="confirmBatchPriceAdjust">确定</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 料价价差率对话框 -->
|
||||
<el-dialog
|
||||
title="料价价差率%"
|
||||
v-model="materialPriceDialogVisible"
|
||||
width="500px"
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<el-form :model="materialPriceForm" label-width="120px">
|
||||
<el-form-item label="调价范围:">
|
||||
<el-select v-model="materialPriceForm.range" style="width: 188px;">
|
||||
<el-option v-if="materialPriceForm.rangeOptions && materialPriceForm.rangeOptions.includes('N')" label="勾选记录" value="N"></el-option>
|
||||
<el-option label="整单记录" value="Y"></el-option>
|
||||
<el-option label="所查记录" value="C"></el-option>
|
||||
<el-option v-if="materialPriceForm.rangeOptions && materialPriceForm.rangeOptions.includes('D')" label="当前记录" value="D"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="调整比率:">
|
||||
<el-input
|
||||
v-model="materialPriceForm.adjustRatio"
|
||||
style="width: 130px; display: inline-block;"
|
||||
@input="handlePriceInput('materialPriceForm', $event, 'adjustRatio')">
|
||||
</el-input>
|
||||
<span style="margin-left: 10px;">%</span>
|
||||
<el-select v-model="materialPriceForm.materialType" style="width: 100px; margin-left: 10px;">
|
||||
<el-option label="相对值" value="XDZ"></el-option>
|
||||
<el-option label="固定值" value="GDZ"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-checkbox v-model="materialPriceForm.hasNoTablePrice">无{{ JGBBJBMValue || '表价' }}</el-checkbox>
|
||||
<el-checkbox v-model="materialPriceForm.isNonPurchased" :disabled="!materialPriceForm.canEditNonPurchased" style="margin-left: 20px;">非外购</el-checkbox>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button @click="closeMaterialPriceDialog">取消</el-button>
|
||||
<el-button type="primary" @click="confirmMaterialPrice">确定</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 产品报价限价对话框 -->
|
||||
<el-dialog
|
||||
title="报价限价"
|
||||
v-model="bjxjDialogVisible"
|
||||
width="500px"
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<el-form :model="bjxjForm" label-width="120px">
|
||||
<el-form-item label="调价范围:">
|
||||
<el-select v-model="bjxjForm.range" style="width: 188px;">
|
||||
<el-option v-if="bjxjForm.rangeOptions && bjxjForm.rangeOptions.includes('N')" label="勾选记录" value="N"></el-option>
|
||||
<el-option label="整单记录" value="Y"></el-option>
|
||||
<el-option label="所查记录" value="C"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="公式:">
|
||||
<span style="color: #606266; font-size: 14px;">新报价=限价*(1-</span>
|
||||
<el-input
|
||||
v-model="bjxjForm.kdValue"
|
||||
style="width: 80px; display: inline-block; margin: 0 5px;"
|
||||
@input="handlePriceInput('bjxjForm', $event, 'kdValue')">
|
||||
</el-input>
|
||||
<span style="color: #606266; font-size: 14px;">%)+</span>
|
||||
<el-input
|
||||
v-model="bjxjForm.jjValue"
|
||||
style="width: 80px; display: inline-block; margin: 0 5px;"
|
||||
@input="handlePriceInput('bjxjForm', $event, 'jjValue')">
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-checkbox v-model="bjxjForm.onlyNegative">仅调整差额为负</el-checkbox>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button @click="closeBJXJDialog">取消</el-button>
|
||||
<el-button type="primary" @click="confirmBJXJ">确定</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 因子对话框(用于截面比公式和动态因子按钮) -->
|
||||
<el-dialog
|
||||
:title="yzForm.dialogTitle"
|
||||
v-model="yzDialogVisible"
|
||||
width="420px"
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<el-form :model="yzForm" label-width="100px">
|
||||
<el-form-item label="调价范围:" required>
|
||||
<el-select v-model="yzForm.range" style="width: 188px;">
|
||||
<el-option v-if="yzForm.rangeOptions && yzForm.rangeOptions.includes('N')" label="勾选记录" value="N"></el-option>
|
||||
<el-option label="整单记录" value="Y"></el-option>
|
||||
<el-option label="所查记录" value="C"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="yzForm.factorLabel">
|
||||
<el-input-number
|
||||
v-model="yzForm.factorValue"
|
||||
:precision="yzForm.JJFS === 'MX' || yzForm.JJFS === 'DX' ? 4 : 2"
|
||||
:min="yzForm.MinYZZ ? parseFloat(yzForm.MinYZZ) : undefined"
|
||||
:max="yzForm.MaxYZZ ? parseFloat(yzForm.MaxYZZ) : undefined"
|
||||
style="width: 130px;"
|
||||
controls-position="right">
|
||||
</el-input-number>
|
||||
<span style="margin-left: 10px;">{{ yzForm.factorUnit }}</span>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="yzForm.showOnlyNegative && yzForm.BCYTJ === 'Y'">
|
||||
<el-checkbox v-model="yzForm.onlyNegative">仅调整差额为负</el-checkbox>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="yzForm.showHasTablePrice">
|
||||
<el-checkbox v-model="yzForm.hasTablePrice">有{{ yzForm.JGBBJBM || '表价' }}</el-checkbox>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="yzForm.showPurchased">
|
||||
<el-checkbox v-model="yzForm.isPurchased">外购</el-checkbox>
|
||||
<el-checkbox v-model="yzForm.isNonPurchased" style="margin-left: 20px;">非外购</el-checkbox>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button @click="closeYZDialog">取消</el-button>
|
||||
<el-button type="primary" @click="confirmYZ">确定</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 数据加载中提示 -->
|
||||
<div v-show="showLoading" class="overlay" >
|
||||
<div class="loading-content">
|
||||
<el-progress
|
||||
v-if="showLoading"
|
||||
type="circle"
|
||||
:percentage="loadingProgress || 0"
|
||||
:width="120"
|
||||
:stroke-width="8"
|
||||
>
|
||||
<template #default="{ percentage }">
|
||||
<span class="progress-text">{{ (percentage !== undefined && percentage !== null) ? percentage : 0 }}%</span>
|
||||
</template>
|
||||
</el-progress>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 查询条件抽屉 -->
|
||||
<el-drawer
|
||||
v-model="queryDrawerVisible"
|
||||
:with-header="false"
|
||||
direction="rtl"
|
||||
size="500px"
|
||||
>
|
||||
<div style="padding: 20px; padding-bottom: 80px;">
|
||||
<el-row :gutter="24" style="margin-bottom: 15px;">
|
||||
<el-col :span="24">
|
||||
<div class="grid-content">
|
||||
<span class="cxtj-span" style="margin-bottom: 10px">芯线结构:</span>
|
||||
<el-input size="small" v-model="queryConditions.XLJGID" clearable placeholder="请输入芯线结构"></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="24" style="margin-bottom: 15px;">
|
||||
<el-col :span="24">
|
||||
<div class="grid-content">
|
||||
<span class="cxtj-span" style="margin-bottom: 10px">线缆规格:</span>
|
||||
<el-input size="small" v-model="queryConditions.XLGGID" clearable placeholder="请输入线缆规格"></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="24" style="margin-bottom: 15px;" v-if="showJMBGS">
|
||||
<el-col :span="24">
|
||||
<div class="grid-content">
|
||||
<span class="cxtj-span" style="margin-bottom: 10px">截面比公式:</span>
|
||||
<el-input size="small" v-model="queryConditions.JMBGS" clearable placeholder="请输入截面比公式"></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="24" style="margin-bottom: 15px;">
|
||||
<el-col :span="12">
|
||||
<div class="grid-content">
|
||||
<span class="cxtj-span" style="margin-bottom: 10px">主芯截面范围始>=:</span>
|
||||
<el-input size="small" v-model="queryConditions.ZJMS" clearable placeholder="请输入数字"></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<div class="grid-content">
|
||||
<span class="cxtj-span" style="margin-bottom: 10px">主芯截面范围止<=:</span>
|
||||
<el-input size="small" v-model="queryConditions.ZJMZ" clearable placeholder="请输入数字"></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="24" style="margin-bottom: 15px;">
|
||||
<el-col :span="12">
|
||||
<div class="grid-content">
|
||||
<span class="cxtj-span" style="margin-bottom: 10px">报价数量始:</span>
|
||||
<div style="display: flex; align-items: center;">
|
||||
<el-input size="small" v-model="queryConditions.BJSLS" clearable placeholder="请输入数字" style="flex: 1;"></el-input>
|
||||
<span style="margin-left: 5px; white-space: nowrap;">{{ bjslUnit }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<div class="grid-content">
|
||||
<span class="cxtj-span" style="margin-bottom: 10px">报价数量止:</span>
|
||||
<div style="display: flex; align-items: center;">
|
||||
<el-input size="small" v-model="queryConditions.BJSLZ" clearable placeholder="请输入数字" style="flex: 1;"></el-input>
|
||||
<span style="margin-left: 5px; white-space: nowrap;">{{ bjslUnit }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="24" style="margin-bottom: 15px;">
|
||||
<el-col :span="12">
|
||||
<div class="grid-content">
|
||||
<span class="cxtj-span" style="margin-bottom: 10px">报价金额始:</span>
|
||||
<el-input size="small" v-model="queryConditions.BJJES" clearable placeholder="请输入数字"></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<div class="grid-content">
|
||||
<span class="cxtj-span" style="margin-bottom: 10px">报价金额止:</span>
|
||||
<el-input size="small" v-model="queryConditions.BJJEZ" clearable placeholder="请输入数字"></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="24" style="margin-bottom: 15px;" v-if="showLSBJ">
|
||||
<el-col :span="12">
|
||||
<div class="grid-content">
|
||||
<span class="cxtj-span" style="margin-bottom: 10px">临时表价始:</span>
|
||||
<el-input size="small" v-model="queryConditions.DJS" clearable placeholder="请输入数字"></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<div class="grid-content">
|
||||
<span class="cxtj-span" style="margin-bottom: 10px">临时表价止:</span>
|
||||
<el-input size="small" v-model="queryConditions.DJZ" clearable placeholder="请输入数字"></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="24" style="margin-bottom: 15px;" v-if="showBH">
|
||||
<el-col :span="24">
|
||||
<div class="grid-content">
|
||||
<span class="cxtj-span" style="margin-bottom: 10px">包号:</span>
|
||||
<el-select size="small" v-model="queryConditions.BH" multiple filterable clearable placeholder="请选择包号" style="width: 100%">
|
||||
<el-option v-for="item in bhOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="24" style="margin-bottom: 15px;">
|
||||
<el-col :span="24">
|
||||
<div class="grid-content">
|
||||
<span class="cxtj-span" style="margin-bottom: 10px">{{ useCPML ? '产品目录:' : '产品用途:' }}</span>
|
||||
<el-select size="small" v-model="queryConditions.CPYT" multiple filterable clearable :placeholder="useCPML ? '请选择产品目录' : '请选择产品用途'" style="width: 100%">
|
||||
<el-option v-for="item in cpytOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="24" style="margin-bottom: 15px;" v-if="showXJBJ">
|
||||
<el-col :span="24">
|
||||
<div class="grid-content">
|
||||
<el-checkbox v-model="queryConditions.XJBJCEWF">仅显示限价与报价差额为负</el-checkbox>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
<div style="position: fixed; bottom: 0; right: 0; width: 500px; background: #fff; border-top: 1px solid #e4e7ed; padding: 15px 20px; text-align: right; z-index: 2001;">
|
||||
<el-button size="small" @click="handleResetFilter" plain>重 置</el-button>
|
||||
<el-button type="primary" size="small" @click="confirmQueryDrawer">确 定</el-button>
|
||||
</div>
|
||||
</el-drawer>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script src='images/BJDPLTJ.js?ver=<%=GThinking.N_MISPROAS.Web.ResFile.GetVer("Q_YCGL8") %>'></script>
|
||||
<script>
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using System.Data.SqlClient;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using GThinking.N_MISPRO;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using GThinking.N_MISPRO.TableCache;
|
||||
using System.Text;
|
||||
using GThinking.N_CONTROL;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class BJDPLTJ : HelpBase
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860156;
|
||||
this.UMName = "批量调价";
|
||||
if (PageParam.ContainsKey("BJDID"))
|
||||
{
|
||||
string BJDID = PageParam.GetRTrimString("BJDID").Trim();
|
||||
if (!BJDID.Equals(""))
|
||||
txtBJDID.Text = BJDID;
|
||||
|
||||
}
|
||||
base.InitPage();
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+50
@@ -0,0 +1,50 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJDPLTJ 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJDPLTJ {
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// ScriptManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.ScriptManager ScriptManager1;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJDID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtBJDID;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSBJDMX", Umid = 100860063, IsWorkFlow = false, UseWhr = false,
|
||||
|
||||
QuerySelSql = "")]
|
||||
public class BJDTJ : EntityManager
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
||||
Codebehind="BJDTJList.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJDTJList" Title="线缆销售报价单统计" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ID="ContentForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||
<gtc:gtgridview id="grdContentGrid" runat="server" autogeneratecolumns="False" enableviewstate="False">
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<Columns>
|
||||
</Columns>
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<ColumnsEx>
|
||||
</ColumnsEx>
|
||||
</gtc:gtgridview>
|
||||
</asp:Content>
|
||||
+2388
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,29 @@
|
||||
锘縰sing System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using GThinking.N_CONTROL;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class BJDTJList : SingleGridBase
|
||||
{
|
||||
BJDTJ entity = new BJDTJ();
|
||||
BJDTJ_M queryentity = new BJDTJ_M();
|
||||
|
||||
#region pageload 浜嬩欢
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860063;
|
||||
this.UMName = "绾跨紗閿
|
||||
Generated
+61
@@ -0,0 +1,61 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9151
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJDTJList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJDTJList {
|
||||
|
||||
/// <summary>
|
||||
/// grdContentGrid 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView grdContentGrid;
|
||||
|
||||
/// <summary>
|
||||
/// txtFirstYZID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtFirstYZID;
|
||||
|
||||
/// <summary>
|
||||
/// txtTJYZList 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtTJYZList;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleGrid Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleGrid)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+149
@@ -0,0 +1,149 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleQuery.Master" AutoEventWireup="true"
|
||||
Codebehind="BJDTJQuery.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJDTJQuery" Title="查询" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleQuery.Master" %>
|
||||
<asp:Content ID="ContentQuery" ContentPlaceHolderID="CPHQuery" runat="server">
|
||||
<asp:Table ID="QueryTalbe" runat="server">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="120px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel13" runat="server">报价分类:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtCheckedDropDownList ID="cbxBJFLID" runat="server" DataField="BJFLID" Width="200px" Tag="Star">
|
||||
</gtc:gtCheckedDropDownList>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="120px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel2" runat="server">汇总方式:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtComboBox ID="cbxHZFS" DataField="HZFS" runat="server" Width="250px" Tag="Star">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="120px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel5" runat="server">报价日期始:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtDateTimeTextBox ID="datBJRQS" runat="server" DataField="BJRQS" EnableRelevant="true"
|
||||
RelevantControl="datBJRQZ"></gtc:gtDateTimeTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="120px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel6" runat="server">报价日期止:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtDateTimeTextBox ID="datBJRQZ" runat="server" DataField="BJRQZ" EnableRelevant="true"></gtc:gtDateTimeTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="GtLabel3" runat="server">流程状态:</gtc:gtLabel></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell12" Height="22px" runat="server">
|
||||
<gtc:gtCheckedDropDownList ID="cbxWFState" runat="server" DataField="STATE" Width="150px"
|
||||
Height="20px">
|
||||
</gtc:gtCheckedDropDownList>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="120px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel7" runat="server">客户:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtTextBox ID="txtKH" runat="server" DataField="KH" Width="150px" Tag="Percent"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="120px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel8" runat="server">项目:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtTextBox ID="txtXM" runat="server" DataField="XM" Width="150px" Tag="Percent"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="120px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel12" runat="server">销售部门:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtComboBox ID="cbxXSBM" runat="server" DataField="XSBM" Width="116px">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="120px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel11" runat="server">销售员:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtComboBox ID="cbxTXY" runat="server" DataField="TXY" Width="116px" ShowValue="false">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="120px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel10" runat="server">销售单位:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtTextBox ID="txtXSDW" runat="server" DataField="XSDW" Width="116px" Tag="Percent"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="120px" Height="23px">
|
||||
<gtc:gtLabel ID="GtLabel1" runat="server">产品用途:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtComboBox ID="cbxCPYT" runat="server" Width="200px" DataField="CPYT" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="OncbxCPYT_Changed">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="120px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel4" runat="server">型号:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtCheckedDropDownList ID="cbxXH" DataField="XH" runat="server" Width="200px">
|
||||
</gtc:gtCheckedDropDownList>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="120px" Height="22px"></asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtCheckBox ID="chkXSMX" DataField="XSMX" runat="server" Width="200px" Text="显示明细" AutoPostBack="true" OnCheckedChanged="chkXSMX_CheckedChanged">
|
||||
</gtc:gtCheckBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="120px" Height="22px"></asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtCheckBox ID="chkDTCLZS" DataField="DTCLZS" runat="server" Width="200px" Text="分铜铝产品展示" AutoPostBack="true" OnCheckedChanged="chkDTCLZS_CheckedChanged">
|
||||
</gtc:gtCheckBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="120px" Height="22px"></asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtCheckBox ID="chkDCBJCXSY" DataField="DCBJCXSY" runat="server" Width="200px" Text="多次报价查询所有"></gtc:gtCheckBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,266 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Dialog;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class BJDTJQuery : SingleQueryBase
|
||||
{
|
||||
BJDTJ_M queryentity = new BJDTJ_M();
|
||||
|
||||
#region page事件
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860063;
|
||||
this.UMName = "查询";
|
||||
this.CurMaster = Master;
|
||||
this.CurQueryEntity = queryentity;
|
||||
this.CurQueryTable = QueryTalbe;
|
||||
|
||||
base.InitPage();
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
InitControls();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 模板事件
|
||||
|
||||
protected override bool QueryLogicValid()
|
||||
{
|
||||
if (cbxBJFLID.SelectedValue.Trim().Equals(""))
|
||||
{
|
||||
ShowMessage("请选择报价分类!");
|
||||
return false;
|
||||
}
|
||||
string sFLLV = LogicValidBJFLID(cbxBJFLID.SelectedValue);
|
||||
if (sFLLV.Equals("BJ"))
|
||||
{
|
||||
ShowMessage("所选报价分类的非空价差率公式不一致!");
|
||||
return false;
|
||||
}
|
||||
else if (sFLLV.Equals("LJ"))
|
||||
{
|
||||
ShowMessage("所选报价分类的非空料价价差率公式不一致!");
|
||||
return false;
|
||||
}
|
||||
else if (sFLLV.Equals("XJ"))
|
||||
{
|
||||
ShowMessage("所选报价分类的非空最低限价价差率公式不一致!");
|
||||
return false;
|
||||
}
|
||||
if (cbxHZFS.SelectedValue.Trim().Equals(""))
|
||||
{
|
||||
ShowMessage("请选择汇总方式!");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (chkXSMX.Checked && chkDTCLZS.Checked)
|
||||
{
|
||||
ShowMessage("显示明细和产品分导体材料展示不能同时展示!");
|
||||
return false;
|
||||
}
|
||||
return base.QueryLogicValid();
|
||||
}
|
||||
# endregion
|
||||
|
||||
#region 自定义事件
|
||||
|
||||
private void InitControls()
|
||||
{
|
||||
|
||||
WorkFlowUtils.SetCheckedDropDownList_WFPROC("XLXSBJ_BJD", cbxWFState);
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sql = new TSQL(dberp);
|
||||
|
||||
cbxHZFS.ClearItems();
|
||||
cbxHZFS.Items.Add(new ListItem("型号", "XH"));
|
||||
cbxHZFS.Items.Add(new ListItem("客户", "KH"));
|
||||
|
||||
XLXSBJPZXX pzxx = XLBJDUtils.GetXLXSBJPZXX(100860000);
|
||||
if (pzxx.XLXSBJPZ_KHJSLY == "KHXX" || pzxx.XLXSBJPZ_KHJSLY == "KH")
|
||||
{
|
||||
cbxHZFS.Items.Add(new ListItem("客户分类", "KHFL"));
|
||||
}
|
||||
|
||||
cbxHZFS.Items.Add(new ListItem("销售员", "TXY"));
|
||||
cbxHZFS.Items.Add(new ListItem("部门", "BM"));
|
||||
cbxHZFS.Items.Add(new ListItem("项目所在地(省/直辖市/自治区)", "XMSZD_PRO"));
|
||||
cbxHZFS.Items.Add(new ListItem("项目所在地(市/区/盟/州)", "XMSZD_CIY"));
|
||||
cbxHZFS.Items.Add(new ListItem("产品目录", "CPMLID"));
|
||||
if (CMISproDataBase.ExistsRecord("DBERP", "select 1 from CPXLDZB where 1=1 "))
|
||||
{
|
||||
cbxHZFS.Items.Add(new ListItem("产品系列", "CPXLID"));
|
||||
cbxHZFS.Items.Add(new ListItem("项目所在地(省/直辖市/自治区)+产品系列", "XMSZD_PROCPXLID"));
|
||||
cbxHZFS.Items.Add(new ListItem("项目所在地(市/区/盟/州)+产品系列", "XMSZD_CIYCPXLID"));
|
||||
}
|
||||
cbxHZFS.Items.Add(new ListItem("产品目录+电压等级分类", "CPMLIDDYDJFL"));
|
||||
cbxHZFS.Items.Add(new ListItem("产品用途", "CPYT"));
|
||||
cbxHZFS.Items.Add(new ListItem("产品用途+电压等级分类", "CPYTDYDJFL"));
|
||||
cbxHZFS.ShowValue = false;
|
||||
|
||||
sql.Clear();
|
||||
sql.Add("select XLXSBJFL_BJFLID,case isnull(XLXSBJFL_TYBZ,' ') when 'Y' then rtrim(XLXSBJFL_BJFLMC)||'(停用)' else XLXSBJFL_BJFLMC end as Name from XLXSBJFL where 1 = 1 ");
|
||||
if (!GetOption("BJU012").Equals(""))
|
||||
{
|
||||
sql.Add(" and " + CMISproDataBase.GetWhereEqual("XLXSBJFL_BJFLID", GetOption("BJU012")));
|
||||
}
|
||||
sql.Add(" order by XLXSBJFL_XSXH,XLXSBJFL_BJFLID ");
|
||||
DataSet ds = dberp.OpenDataSet(sql);
|
||||
cbxBJFLID.ClearItems();
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
string sBJFLID = ds.Tables[0].Rows[i][0].ToString().Trim();
|
||||
string sBJFLMC = ds.Tables[0].Rows[i][1].ToString().Trim();
|
||||
cbxBJFLID.Items.Add(new ListItem(sBJFLMC, sBJFLID));
|
||||
}
|
||||
}
|
||||
if (cbxBJFLID.Items.Count == 1)
|
||||
{
|
||||
cbxBJFLID.SelectedIndex = 0;
|
||||
}
|
||||
|
||||
string sSQL = " SELECT BM_BMID,BM_MC FROM BM where 1=1 ";
|
||||
if (!string.IsNullOrEmpty(GetOption("HJU006").Trim()))
|
||||
{
|
||||
sSQL += " and " + CMISproDataBase.GetWhereEqual("BM_BMID", GetOption("HJU006").Trim());
|
||||
}
|
||||
sSQL += " order by BM_BMID";
|
||||
TComboBox.SetComboBox("DBERP", cbxXSBM, sSQL, true);
|
||||
|
||||
sql.Clear();
|
||||
ds.Clear();
|
||||
sql.Add("select XSY_TXY,XSY_ZJM from XSY where 1=1 and XSY_TYBZ = 'N' ");
|
||||
if (!string.IsNullOrEmpty(GetOption("HJU006").Trim()))
|
||||
{
|
||||
sql.Add(" and (" + CMISproDataBase.GetWhereEqual("XSY_BMID", GetOption("HJU006").Trim()));
|
||||
sql.Add(" or isnull(XSY_BMID, ' ') = ' ') ");
|
||||
}
|
||||
sql.Add(" order by XSY_ZJM ");
|
||||
ds = dberp.OpenDataSet(sql);
|
||||
cbxTXY.ClearItems();
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
cbxTXY.Items.Add(new ListItem("", ""));
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
string sTXY = ds.Tables[0].Rows[i][0].ToString().Trim();
|
||||
string sZJM = ds.Tables[0].Rows[i][1].ToString().Trim();
|
||||
if (sZJM.Equals(""))
|
||||
sZJM = CMISproConvert.ConvertZJM(sTXY).Trim();
|
||||
cbxTXY.Items.Add(new ListItem(sZJM + "|" + sTXY, sTXY));
|
||||
}
|
||||
}
|
||||
|
||||
TComboBox.SetComboBox("DBERP", cbxCPYT, "select XLCPYT_CPYT,XLCPYT_CPYTMC from XLCPYT where 1=1 order by XLCPYT_CPYT", true);
|
||||
|
||||
sql.Clear();
|
||||
ds.Clear();
|
||||
sql.Add("select XLXHB_XLXHID as ID,XLXHB_XLXHID as Name from XLXHB where isnull(XLXHB_TYBZ,'N')<>'Y' ");
|
||||
if (!cbxCPYT.SelectedValue.Trim().Equals(""))
|
||||
{
|
||||
sql.Add(" and XLXHB_CPYT = '" + cbxCPYT.SelectedValue + "' ");
|
||||
}
|
||||
sql.Add(" order by ID ");
|
||||
ds = dberp.OpenDataSet(sql);
|
||||
cbxXH.ClearItems();
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
string sID = ds.Tables[0].Rows[i]["ID"].ToString().Trim();
|
||||
string sName = ds.Tables[0].Rows[i]["Name"].ToString().Trim();
|
||||
cbxXH.Items.Add(new ListItem(sName, sID));
|
||||
}
|
||||
cbxXH.ShowValue = false;
|
||||
}
|
||||
|
||||
//价差率公式、料价价差率公式、最低限价价差率公式必须为空或相同
|
||||
private string LogicValidBJFLID(string sBJFLID)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
SQL.Clear();
|
||||
SQL.Add("select XLXSBJFL_BJJCLLX,XLXSBJFL_LJJCLLX,XLXSBJFL_ZDXJJCLLX from XLXSBJFL where 1=1 and " + CMISproDataBase.GetWhereEqual("XLXSBJFL_BJFLID", sBJFLID));
|
||||
DataSet ds = dberp.OpenDataSet(SQL);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
string sBJJCLLX = "";
|
||||
string sLJJCLLX = "";
|
||||
string sZDXJJCLLX = "";
|
||||
foreach (DataRow trow in ds.Tables[0].Rows)
|
||||
{
|
||||
string tBJJCLLX = trow["XLXSBJFL_BJJCLLX"].ToString().Trim();
|
||||
string tLJJCLLX = trow["XLXSBJFL_LJJCLLX"].ToString().Trim();
|
||||
string tZDXJJCLLX = trow["XLXSBJFL_ZDXJJCLLX"].ToString().Trim();
|
||||
if (!sBJJCLLX.Equals("") && !tBJJCLLX.Equals("") && !sBJJCLLX.Equals(tBJJCLLX))
|
||||
return "BJ";
|
||||
if (!sLJJCLLX.Equals("") && !tLJJCLLX.Equals("") && !sLJJCLLX.Equals(tLJJCLLX))
|
||||
return "LJ";
|
||||
if (!sZDXJJCLLX.Equals("") && !tZDXJJCLLX.Equals("") && !sLJJCLLX.Equals(tZDXJJCLLX))
|
||||
return "XJ";
|
||||
sBJJCLLX = tBJJCLLX;
|
||||
sLJJCLLX = tLJJCLLX;
|
||||
sZDXJJCLLX = tZDXJJCLLX;
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 控件事件
|
||||
|
||||
protected void OncbxCPYT_Changed(object sender, EventArgs e)
|
||||
{
|
||||
cbxXH.ClearItems();
|
||||
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sql = new TSQL(dberp);
|
||||
sql.Add("select XLXHB_XLXHID as ID,XLXHB_XLXHID as Name from XLXHB where isnull(XLXHB_TYBZ,'N')<>'Y' ");
|
||||
if (!cbxCPYT.SelectedValue.Trim().Equals(""))
|
||||
{
|
||||
sql.Add(" and XLXHB_CPYT = '" + cbxCPYT.SelectedValue + "' ");
|
||||
}
|
||||
|
||||
DataSet ds = dberp.OpenDataSet(sql);
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
string sID = ds.Tables[0].Rows[i]["ID"].ToString().Trim();
|
||||
string sName = ds.Tables[0].Rows[i]["Name"].ToString().Trim();
|
||||
cbxXH.Items.Add(new ListItem(sName, sID));
|
||||
}
|
||||
cbxXH.ShowValue = false;
|
||||
}
|
||||
|
||||
protected void chkXSMX_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (chkXSMX.Checked && chkDTCLZS.Checked)
|
||||
chkDTCLZS.Checked = false;
|
||||
}
|
||||
|
||||
protected void chkDTCLZS_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (chkXSMX.Checked && chkDTCLZS.Checked)
|
||||
chkXSMX.Checked = false;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+295
@@ -0,0 +1,295 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJDTJQuery 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJDTJQuery {
|
||||
|
||||
/// <summary>
|
||||
/// QueryTalbe 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table QueryTalbe;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel13 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel13;
|
||||
|
||||
/// <summary>
|
||||
/// cbxBJFLID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckedDropDownList cbxBJFLID;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel2;
|
||||
|
||||
/// <summary>
|
||||
/// cbxHZFS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxHZFS;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel5;
|
||||
|
||||
/// <summary>
|
||||
/// datBJRQS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtDateTimeTextBox datBJRQS;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel6;
|
||||
|
||||
/// <summary>
|
||||
/// datBJRQZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtDateTimeTextBox datBJRQZ;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel3;
|
||||
|
||||
/// <summary>
|
||||
/// TableCell12 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TableCell TableCell12;
|
||||
|
||||
/// <summary>
|
||||
/// cbxWFState 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckedDropDownList cbxWFState;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel7;
|
||||
|
||||
/// <summary>
|
||||
/// txtKH 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtKH;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel8 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel8;
|
||||
|
||||
/// <summary>
|
||||
/// txtXM 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtXM;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel12 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel12;
|
||||
|
||||
/// <summary>
|
||||
/// cbxXSBM 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxXSBM;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel11 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel11;
|
||||
|
||||
/// <summary>
|
||||
/// cbxTXY 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxTXY;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel10 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel10;
|
||||
|
||||
/// <summary>
|
||||
/// txtXSDW 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtXSDW;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel1;
|
||||
|
||||
/// <summary>
|
||||
/// cbxCPYT 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxCPYT;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel4;
|
||||
|
||||
/// <summary>
|
||||
/// cbxXH 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckedDropDownList cbxXH;
|
||||
|
||||
/// <summary>
|
||||
/// chkXSMX 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckBox chkXSMX;
|
||||
|
||||
/// <summary>
|
||||
/// chkDTCLZS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckBox chkDTCLZS;
|
||||
|
||||
/// <summary>
|
||||
/// chkDCBJCXSY 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckBox chkDCBJCXSY;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleQuery Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleQuery)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public class BJDTJ_M : TBaseNamedQuery
|
||||
{
|
||||
public BJDTJ_M()
|
||||
{
|
||||
AddFieldDefs("BJFLID", "报价分类", false);
|
||||
AddFieldDefs("HZFS", "汇总方式",false);
|
||||
AddFieldDefs("BJRQS", "报价日期始");
|
||||
AddFieldDefs("BJRQZ", "报价日期止");
|
||||
AddFieldDefs("STATE", "流程状态", false);
|
||||
AddFieldDefs("KH", "客户");
|
||||
AddFieldDefs("XM", "项目");
|
||||
AddFieldDefs("TXY", "销售员");
|
||||
AddFieldDefs("XSBM", "销售部门");
|
||||
AddFieldDefs("XSDW", "销售单位");
|
||||
AddFieldDefs("CPYT", "产品用途");
|
||||
AddFieldDefs("XH", "型号");
|
||||
AddFieldDefs("XSMX", "显示明细");
|
||||
AddFieldDefs("DTCLZS", "产品分导体材料展示");
|
||||
AddFieldDefs("DCBJCXSY", "多次报价查询所有");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,926 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using System.Collections.Generic;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSBJFL", Umid = 100860023, IsWorkFlow = false, UseWhr = true, IsAttach = true, DOCGRPIDFieldName = "XLXSBJFL_JGMBGRPID", DOCFJSFieldName = "XLXSBJFL_JGMBFJS",
|
||||
|
||||
QuerySelSql = " select XLXSBJFL_BJFLID,XLXSBJFL_BJFLMC,XLXSBJFL_BJFLTZM,XLXSBJFL_XSXH,XLXSBJFL_JGBTJYSS,XLXSBJFL_JGBIDS,XLXSBJFL_XSQYIDS, "
|
||||
+ " XLXSBJFL_CPMLID,XLXSBJFL_SDJGBCLHQFW,XLXSBJFL_XSJGBJJ, XLXSBJFL_XSJGBBJJCE, XLXSBJFL_BJJCLLX,XLXSBJFL_TZCLHQ,XLXSBJFL_TZJGBBJ,XLXSBJFL_TZBJBJBB,XLXSBJFL_TZBJDHQLJ,XLXSBJFL_TZBJ, "
|
||||
+ " XLXSBJFL_ZDXJQZBJDFL,XLXSBJFL_ZDXJGS,XLXSBJFL_JSJGS,XLXSBJFL_JLRBJCP,XLXSBJFL_JGBBJBM,XLXSBJFL_BJDHQLJBM,XLXSBJFL_BJBM,XLXSBJFL_BABZFGDY,XLXSBJFL_JJZJGBXH,"
|
||||
+ " XLXSBJFL_BJDHQLY,XLXSBJFL_LJJCLLX,XLXSBJFL_BJLJJCLLX,XLXSBJFL_XHGGYMHJS,XLXSBJFL_XSTZZDXJ,XLXSBJFL_ABJDHQJSBJ, "
|
||||
+ " XLXSBJFL_XSTZCPBJ,XLXSBJFL_XSTZBJJE,XLXSBJFL_XTCPBJYZ,XLXSBJFL_TLJTZGXQTCL,XLXSBJFL_XSCPBJXJ,"
|
||||
+ " XLXSBJFL_BJCPFZJS,XLXSBJFL_XHABJCSDP,XLXSBJFL_LJJCLPLTJFW,XLXSBJFL_XSYXJ,XLXSBJFL_XSYZ,XLXSBJFL_XSFBH,XLXSBJFL_XSYSCP,"
|
||||
+ " XLXSBJFL_JYF,XLXSBJFL_YFWLID,XLXSBJFL_BJHYF,XLXSBJFL_JLBJDHQ,XLXSBJFL_YXJJCLLX,XLXSBJFL_XSYLRYZID,XLXSBJFL_XSYKJJGHJ,XLXSBJFL_XSYKJJGLM,"
|
||||
+ " XLXSBJFL_QYRQ,XLXSBJFL_TYBZ,XLXSBJFL_TYRQ,XLXSBJFL_BZ,XLXSBJFL_WHR,XLXSBJFL_WHRID,XLXSBJFL_WHSJ,XLXSBJFL_MRCKC, "
|
||||
+ " XLXSBJFL_MXBH,XLXSBJFL_TBJCLID,XLXSBJFL_LBJCLID,XLXSBJFL_ZLGZCLS,XLXSBJFL_BJDYBJTXS,XLXSBJFL_BJQSTXS,XLXSBJFL_ZDXJJCLXX,XLXSBJFL_ZDXJJCLTXS,XLXSBJFL_CPBJMRXSWS,XLXSBJFL_TZWLHQ,XLXSBJFL_XSZDXJ,XLXSBJFL_ZDXJJCLLX,XLXSBJFL_JMBGSYZID,XLXSBJFL_JGMBGRPID"
|
||||
+ " from XLXSBJFL where 1=1",
|
||||
|
||||
|
||||
EntitySelSql = " select XLXSBJFL_BJFLID, XLXSBJFL_BJFLID as OLDBJFLID,XLXSBJFL_BJFLMC,XLXSBJFL_BJFLTZM,XLXSBJFL_XSXH,XLXSBJFL_JGBTJYSS,XLXSBJFL_JGBIDS,XLXSBJFL_XSQYIDS, "
|
||||
+ " XLXSBJFL_CPMLID,XLXSBJFL_SDJGBCLHQFW,XLXSBJFL_XSJGBJJ,XLXSBJFL_XSJGBBJJCE,XLXSBJFL_BJJCLLX,XLXSBJFL_TZCLHQ,XLXSBJFL_TZBJBJBB,XLXSBJFL_TZJGBBJ,XLXSBJFL_TZBJDHQLJ,XLXSBJFL_TZBJ, "
|
||||
+ " XLXSBJFL_ZDXJQZBJDFL,XLXSBJFL_ZDXJGS,XLXSBJFL_JSJGS,XLXSBJFL_JLRBJCP,XLXSBJFL_JGBBJBM,XLXSBJFL_BJDHQLJBM,XLXSBJFL_BJBM,XLXSBJFL_BABZFGDY,XLXSBJFL_JJZJGBXH,"
|
||||
+ " XLXSBJFL_BJDHQLY,XLXSBJFL_LJJCLLX,XLXSBJFL_BJLJJCLLX,XLXSBJFL_XHGGYMHJS,XLXSBJFL_XSTZZDXJ,XLXSBJFL_ABJDHQJSBJ, "
|
||||
+ " XLXSBJFL_XSTZCPBJ,XLXSBJFL_XSTZBJJE,XLXSBJFL_XTCPBJYZ,XLXSBJFL_TLJTZGXQTCL,XLXSBJFL_XSCPBJXJ,"
|
||||
+ " XLXSBJFL_BJCPFZJS,XLXSBJFL_XHABJCSDP,XLXSBJFL_LJJCLPLTJFW,XLXSBJFL_XSYXJ,XLXSBJFL_XSYZ,XLXSBJFL_XSFBH,XLXSBJFL_XSYSCP,"
|
||||
+ " XLXSBJFL_JYF,XLXSBJFL_YFWLID,XLXSBJFL_BJHYF,XLXSBJFL_JLBJDHQ,XLXSBJFL_YXJJCLLX,XLXSBJFL_XSYLRYZID,XLXSBJFL_XSYKJJGHJ,XLXSBJFL_XSYKJJGLM,"
|
||||
+ " XLXSBJFL_QYRQ,XLXSBJFL_TYBZ,XLXSBJFL_TYRQ,XLXSBJFL_BZ,XLXSBJFL_WHR,XLXSBJFL_WHRID,XLXSBJFL_WHSJ,XLXSBJFL_MRCKC, "
|
||||
+ " XLXSBJFL_MXBH,XLXSBJFL_TBJCLID,XLXSBJFL_LBJCLID,XLXSBJFL_ZLGZCLS,XLXSBJFL_BJDYBJTXS,XLXSBJFL_BJQSTXS,XLXSBJFL_ZDXJJCLXX,XLXSBJFL_ZDXJJCLTXS,XLXSBJFL_CPBJMRXSWS,XLXSBJFL_TZWLHQ,XLXSBJFL_XSZDXJ,XLXSBJFL_ZDXJJCLLX,XLXSBJFL_JMBGSYZID,XLXSBJFL_JGMBGRPID "
|
||||
+ " from XLXSBJFL where XLXSBJFL_BJFLID=:XLXSBJFL_BJFLID",
|
||||
|
||||
|
||||
UpdateSql = " update XLXSBJFL set XLXSBJFL_BJFLID=:XLXSBJFL_BJFLID,XLXSBJFL_BJFLMC=:XLXSBJFL_BJFLMC,XLXSBJFL_XSXH=:XLXSBJFL_XSXH,XLXSBJFL_JGBTJYSS=:XLXSBJFL_JGBTJYSS,XLXSBJFL_JGBIDS=:XLXSBJFL_JGBIDS,XLXSBJFL_XSQYIDS=:XLXSBJFL_XSQYIDS, "
|
||||
+ " XLXSBJFL_CPMLID=:XLXSBJFL_CPMLID,XLXSBJFL_SDJGBCLHQFW=:XLXSBJFL_SDJGBCLHQFW,XLXSBJFL_XSJGBJJ=:XLXSBJFL_XSJGBJJ,XLXSBJFL_XSJGBBJJCE=:XLXSBJFL_XSJGBBJJCE,XLXSBJFL_BJJCLLX=:XLXSBJFL_BJJCLLX,XLXSBJFL_TZCLHQ=:XLXSBJFL_TZCLHQ,XLXSBJFL_ABJDHQJSBJ=:XLXSBJFL_ABJDHQJSBJ, "
|
||||
+ " XLXSBJFL_TZJGBBJ=:XLXSBJFL_TZJGBBJ,XLXSBJFL_TZBJ=:XLXSBJFL_TZBJ,XLXSBJFL_TZBJDHQLJ=:XLXSBJFL_TZBJDHQLJ,XLXSBJFL_ZDXJQZBJDFL=:XLXSBJFL_ZDXJQZBJDFL,XLXSBJFL_ZDXJGS=:XLXSBJFL_ZDXJGS,XLXSBJFL_JSJGS=:XLXSBJFL_JSJGS,XLXSBJFL_LJJCLLX=:XLXSBJFL_LJJCLLX,XLXSBJFL_BJLJJCLLX=:XLXSBJFL_BJLJJCLLX,XLXSBJFL_XHGGYMHJS=:XLXSBJFL_XHGGYMHJS,XLXSBJFL_XSTZZDXJ=:XLXSBJFL_XSTZZDXJ,XLXSBJFL_BABZFGDY=:XLXSBJFL_BABZFGDY, "
|
||||
+ " XLXSBJFL_BJDHQLY=:XLXSBJFL_BJDHQLY,XLXSBJFL_XSTZCPBJ=:XLXSBJFL_XSTZCPBJ,XLXSBJFL_XSTZBJJE=:XLXSBJFL_XSTZBJJE,XLXSBJFL_XTCPBJYZ=:XLXSBJFL_XTCPBJYZ,XLXSBJFL_TLJTZGXQTCL=:XLXSBJFL_TLJTZGXQTCL,XLXSBJFL_JJZJGBXH=:XLXSBJFL_JJZJGBXH,"
|
||||
+ " XLXSBJFL_BJCPFZJS=:XLXSBJFL_BJCPFZJS,XLXSBJFL_XHABJCSDP=:XLXSBJFL_XHABJCSDP,XLXSBJFL_LJJCLPLTJFW=:XLXSBJFL_LJJCLPLTJFW,XLXSBJFL_XSYXJ=:XLXSBJFL_XSYXJ,XLXSBJFL_XSYZ=:XLXSBJFL_XSYZ,XLXSBJFL_XSFBH=:XLXSBJFL_XSFBH,XLXSBJFL_XSYSCP=:XLXSBJFL_XSYSCP,XLXSBJFL_JLRBJCP=:XLXSBJFL_JLRBJCP,XLXSBJFL_JGBBJBM=:XLXSBJFL_JGBBJBM,XLXSBJFL_BJDHQLJBM=:XLXSBJFL_BJDHQLJBM,XLXSBJFL_BJBM=:XLXSBJFL_BJBM,"
|
||||
+ " XLXSBJFL_JYF=:XLXSBJFL_JYF,XLXSBJFL_YFWLID=:XLXSBJFL_YFWLID,XLXSBJFL_BJHYF=:XLXSBJFL_BJHYF,XLXSBJFL_JLBJDHQ=:XLXSBJFL_JLBJDHQ,XLXSBJFL_YXJJCLLX=:XLXSBJFL_YXJJCLLX,XLXSBJFL_XSYLRYZID=:XLXSBJFL_XSYLRYZID,XLXSBJFL_XSYKJJGHJ=:XLXSBJFL_XSYKJJGHJ,XLXSBJFL_XSYKJJGLM=:XLXSBJFL_XSYKJJGLM,"
|
||||
+ " XLXSBJFL_QYRQ=:XLXSBJFL_QYRQ,XLXSBJFL_TYBZ=:XLXSBJFL_TYBZ,XLXSBJFL_TYRQ=:XLXSBJFL_TYRQ,XLXSBJFL_BJFLTZM=:XLXSBJFL_BJFLTZM,XLXSBJFL_TZBJBJBB=:XLXSBJFL_TZBJBJBB," + "\r\n"
|
||||
+ " XLXSBJFL_BZ=:XLXSBJFL_BZ, XLXSBJFL_WHR=:XLXSBJFL_WHR,XLXSBJFL_WHRID=:XLXSBJFL_WHRID,XLXSBJFL_WHSJ=:XLXSBJFL_WHSJ,XLXSBJFL_MRCKC=:XLXSBJFL_MRCKC,XLXSBJFL_XSCPBJXJ=:XLXSBJFL_XSCPBJXJ, " + "\r\n"
|
||||
+ " XLXSBJFL_MXBH=:XLXSBJFL_MXBH,XLXSBJFL_TBJCLID=:XLXSBJFL_TBJCLID,XLXSBJFL_LBJCLID=:XLXSBJFL_LBJCLID,XLXSBJFL_ZLGZCLS=:XLXSBJFL_ZLGZCLS,XLXSBJFL_BJDYBJTXS=:XLXSBJFL_BJDYBJTXS,XLXSBJFL_BJQSTXS=:XLXSBJFL_BJQSTXS,XLXSBJFL_ZDXJJCLXX=:XLXSBJFL_ZDXJJCLXX,XLXSBJFL_ZDXJJCLTXS=:XLXSBJFL_ZDXJJCLTXS," + "\r\n"
|
||||
+ " XLXSBJFL_CPBJMRXSWS=:XLXSBJFL_CPBJMRXSWS,XLXSBJFL_TZWLHQ=:XLXSBJFL_TZWLHQ,XLXSBJFL_XSZDXJ=:XLXSBJFL_XSZDXJ,XLXSBJFL_ZDXJJCLLX=:XLXSBJFL_ZDXJJCLLX,XLXSBJFL_JMBGSYZID=:XLXSBJFL_JMBGSYZID,XLXSBJFL_JGMBGRPID=:XLXSBJFL_JGMBGRPID "
|
||||
+ " where XLXSBJFL_BJFLID=:OLDBJFLID ",
|
||||
|
||||
InsertSql = " insert into XLXSBJFL(XLXSBJFL_BJFLID,XLXSBJFL_BJFLMC,XLXSBJFL_BJFLTZM,XLXSBJFL_XSXH,XLXSBJFL_JGBTJYSS,XLXSBJFL_JGBIDS,XLXSBJFL_XSQYIDS, "
|
||||
+ " XLXSBJFL_CPMLID,XLXSBJFL_SDJGBCLHQFW,XLXSBJFL_XSJGBJJ,XLXSBJFL_XSJGBBJJCE,XLXSBJFL_BJJCLLX,XLXSBJFL_TZCLHQ,XLXSBJFL_TZJGBBJ,XLXSBJFL_TZBJDHQLJ,XLXSBJFL_TZBJ,XLXSBJFL_JGBBJBM,XLXSBJFL_BJDHQLJBM,XLXSBJFL_BJBM, "
|
||||
+ " XLXSBJFL_ZDXJQZBJDFL,XLXSBJFL_ZDXJGS,XLXSBJFL_JSJGS,XLXSBJFL_JLRBJCP,XLXSBJFL_BABZFGDY,XLXSBJFL_JJZJGBXH,XLXSBJFL_TZBJBJBB,"
|
||||
+ " XLXSBJFL_BJDHQLY,XLXSBJFL_LJJCLLX,XLXSBJFL_BJLJJCLLX,XLXSBJFL_XHGGYMHJS,XLXSBJFL_XSTZZDXJ,XLXSBJFL_ABJDHQJSBJ,XLXSBJFL_XSCPBJXJ, "
|
||||
+ " XLXSBJFL_XSTZCPBJ,XLXSBJFL_XSTZBJJE,XLXSBJFL_XTCPBJYZ,XLXSBJFL_TLJTZGXQTCL,XLXSBJFL_YXJJCLLX,XLXSBJFL_XSYLRYZID,XLXSBJFL_XSYKJJGHJ,XLXSBJFL_XSYKJJGLM,"
|
||||
+ " XLXSBJFL_BJCPFZJS,XLXSBJFL_XHABJCSDP,XLXSBJFL_LJJCLPLTJFW,XLXSBJFL_XSYXJ,XLXSBJFL_XSYZ,XLXSBJFL_XSFBH,XLXSBJFL_XSYSCP,XLXSBJFL_JLBJDHQ,"
|
||||
+ " XLXSBJFL_JYF,XLXSBJFL_YFWLID,XLXSBJFL_BJHYF,XLXSBJFL_XSZDXJ,XLXSBJFL_ZDXJJCLLX,XLXSBJFL_JMBGSYZID,XLXSBJFL_JGMBGRPID,"
|
||||
+ " XLXSBJFL_QYRQ,XLXSBJFL_TYBZ,XLXSBJFL_TYRQ,XLXSBJFL_BZ,XLXSBJFL_WHR,XLXSBJFL_WHRID,XLXSBJFL_WHSJ,XLXSBJFL_MRCKC,XLXSBJFL_MXBH,XLXSBJFL_TBJCLID,XLXSBJFL_LBJCLID,XLXSBJFL_ZLGZCLS,XLXSBJFL_BJDYBJTXS,XLXSBJFL_BJQSTXS,XLXSBJFL_ZDXJJCLXX,XLXSBJFL_ZDXJJCLTXS,XLXSBJFL_CPBJMRXSWS,XLXSBJFL_TZWLHQ) " + "\r\n"
|
||||
+ " values(:XLXSBJFL_BJFLID,:XLXSBJFL_BJFLMC,:XLXSBJFL_BJFLTZM,:XLXSBJFL_XSXH,:XLXSBJFL_JGBTJYSS,:XLXSBJFL_JGBIDS,:XLXSBJFL_XSQYIDS, "
|
||||
+ " :XLXSBJFL_CPMLID,:XLXSBJFL_SDJGBCLHQFW,:XLXSBJFL_XSJGBJJ,:XLXSBJFL_XSJGBBJJCE,:XLXSBJFL_BJJCLLX,:XLXSBJFL_TZCLHQ,:XLXSBJFL_TZJGBBJ,:XLXSBJFL_TZBJDHQLJ,:XLXSBJFL_TZBJ,:XLXSBJFL_JGBBJBM,:XLXSBJFL_BJDHQLJBM,:XLXSBJFL_BJBM, "
|
||||
+ " :XLXSBJFL_ZDXJQZBJDFL,:XLXSBJFL_ZDXJGS,:XLXSBJFL_JSJGS,:XLXSBJFL_JLRBJCP,:XLXSBJFL_BABZFGDY,:XLXSBJFL_JJZJGBXH,:XLXSBJFL_TZBJBJBB,"
|
||||
+ " :XLXSBJFL_BJDHQLY,:XLXSBJFL_LJJCLLX,:XLXSBJFL_BJLJJCLLX,:XLXSBJFL_XHGGYMHJS,:XLXSBJFL_XSTZZDXJ,:XLXSBJFL_ABJDHQJSBJ,XLXSBJFL_XSCPBJXJ, "
|
||||
+ " :XLXSBJFL_XSTZCPBJ,:XLXSBJFL_XSTZBJJE,:XLXSBJFL_XTCPBJYZ,:XLXSBJFL_TLJTZGXQTCL,:XLXSBJFL_YXJJCLLX,:XLXSBJFL_XSYLRYZID,:XLXSBJFL_XSYKJJGHJ,:XLXSBJFL_XSYKJJGLM,"
|
||||
+ " :XLXSBJFL_BJCPFZJS,:XLXSBJFL_XHABJCSDP,:XLXSBJFL_LJJCLPLTJFW,:XLXSBJFL_XSYXJ,:XLXSBJFL_XSYZ,:XLXSBJFL_XSFBH,:XLXSBJFL_XSYSCP,:XLXSBJFL_JLBJDHQ,"
|
||||
+ " :XLXSBJFL_JYF,:XLXSBJFL_YFWLID,:XLXSBJFL_BJHYF,:XLXSBJFL_XSZDXJ,:XLXSBJFL_ZDXJJCLLX,:XLXSBJFL_JMBGSYZID,:XLXSBJFL_JGMBGRPID,"
|
||||
+ " :XLXSBJFL_QYRQ,:XLXSBJFL_TYBZ,:XLXSBJFL_TYRQ,:XLXSBJFL_BZ, :XLXSBJFL_WHR,:XLXSBJFL_WHRID,:XLXSBJFL_WHSJ,:XLXSBJFL_MRCKC,:XLXSBJFL_MXBH,:XLXSBJFL_TBJCLID,:XLXSBJFL_LBJCLID,:XLXSBJFL_ZLGZCLS,:XLXSBJFL_BJDYBJTXS,:XLXSBJFL_BJQSTXS,:XLXSBJFL_ZDXJJCLXX,:XLXSBJFL_ZDXJJCLTXS,:XLXSBJFL_CPBJMRXSWS,:XLXSBJFL_TZWLHQ)",
|
||||
|
||||
DeleteSql = " delete from XLXSBJFL where XLXSBJFL_BJFLID=:XLXSBJFL_BJFLID ")]
|
||||
|
||||
public class XLXSBJFL : EntityManager
|
||||
{
|
||||
|
||||
private string _XLXSBJFL_BJFLID;
|
||||
[ColumnMap(DbField = "XLXSBJFL_BJFLID", CtrlName = "txtBJFLID", Type = FieldType.C, DbTitle = "报价分类号", DefaultValue = "",
|
||||
IsAllowNull = false, IsKey = true, Length = 8)]
|
||||
public string XLXSBJFL_BJFLID
|
||||
{
|
||||
get { return _XLXSBJFL_BJFLID; }
|
||||
set { _XLXSBJFL_BJFLID = value; }
|
||||
}
|
||||
|
||||
private string _OLDBJFLID;
|
||||
[ColumnMap(DbField = "OLDBJFLID", CtrlName = "txtOLDBJFLID", Type = FieldType.HiddenField, DbTitle = "报价分类号", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 8)]
|
||||
public string OLDBJFLID
|
||||
{
|
||||
get { return _OLDBJFLID; }
|
||||
set { _OLDBJFLID = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_XSXH;
|
||||
[ColumnMap(DbField = "XLXSBJFL_XSXH", CtrlName = "txtXSXH", Type = FieldType.F, DbTitle = "显示序号", DefaultValue = "0",
|
||||
IsAllowNull = false, IsKey = false, Length = 22)]
|
||||
public string XLXSBJFL_XSXH
|
||||
{
|
||||
get { return _XLXSBJFL_XSXH; }
|
||||
set { _XLXSBJFL_XSXH = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_BJFLMC;
|
||||
[ColumnMap(DbField = "XLXSBJFL_BJFLMC", CtrlName = "txtBJFLMC", Type = FieldType.C, DbTitle = "报价分类名称", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 30)]
|
||||
public string XLXSBJFL_BJFLMC
|
||||
{
|
||||
get { return _XLXSBJFL_BJFLMC; }
|
||||
set { _XLXSBJFL_BJFLMC = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_BJFLTZM;
|
||||
[ColumnMap(DbField = "XLXSBJFL_BJFLTZM", CtrlName = "txtBJFLTZM", Type = FieldType.C, DbTitle = "报价分类特征码", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||
public string XLXSBJFL_BJFLTZM
|
||||
{
|
||||
get { return _XLXSBJFL_BJFLTZM; }
|
||||
set { _XLXSBJFL_BJFLTZM = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_MXBH;
|
||||
[ColumnMap(DbField = "XLXSBJFL_MXBH", CtrlName = "cbxMXBH", Type = FieldType.CBX, DbTitle = "价格表类型", DefaultValue = "",
|
||||
IsAllowNull = false, IsKey = false, Length = 3)]
|
||||
public string XLXSBJFL_MXBH
|
||||
{
|
||||
get { return _XLXSBJFL_MXBH; }
|
||||
set { _XLXSBJFL_MXBH = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_JGBTJYSS;
|
||||
[ColumnMap(DbField = "XLXSBJFL_JGBTJYSS", CtrlName = "cbxJGBTJYSS", Type = FieldType.CL, DbTitle = "价格表调价因素", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 250)]
|
||||
public string XLXSBJFL_JGBTJYSS
|
||||
{
|
||||
get { return _XLXSBJFL_JGBTJYSS; }
|
||||
set { _XLXSBJFL_JGBTJYSS = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_JGBIDS;
|
||||
[ColumnMap(DbField = "XLXSBJFL_JGBIDS", CtrlName = "cbxJGBIDS", Type = FieldType.CL, DbTitle = "适用价格表", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 250)]
|
||||
public string XLXSBJFL_JGBIDS
|
||||
{
|
||||
get { return _XLXSBJFL_JGBIDS; }
|
||||
set { _XLXSBJFL_JGBIDS = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_XSQYIDS;
|
||||
[ColumnMap(DbField = "XLXSBJFL_XSQYIDS", CtrlName = "cbxXSQYIDS", Type = FieldType.CL, DbTitle = "适用销售区域", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 250)]
|
||||
public string XLXSBJFL_XSQYIDS
|
||||
{
|
||||
get { return _XLXSBJFL_XSQYIDS; }
|
||||
set { _XLXSBJFL_XSQYIDS = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_MRCKC;
|
||||
[ColumnMap(DbField = "XLXSBJFL_MRCKC", CtrlName = "chkMRCKC", Type = FieldType.Y, DbTitle = "默认查库存", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_MRCKC
|
||||
{
|
||||
get { return _XLXSBJFL_MRCKC; }
|
||||
set { _XLXSBJFL_MRCKC = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_BJDYBJTXS;
|
||||
[ColumnMap(DbField = "XLXSBJFL_BJDYBJTXS", CtrlName = "txtBJDYBJTXS", Type = FieldType.HiddenField, DbTitle = "报价低于表价提醒色", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||
public string XLXSBJFL_BJDYBJTXS
|
||||
{
|
||||
get { return _XLXSBJFL_BJDYBJTXS; }
|
||||
set { _XLXSBJFL_BJDYBJTXS = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_BJQSTXS;
|
||||
[ColumnMap(DbField = "XLXSBJFL_BJQSTXS", CtrlName = "txtBJQSTXS", Type = FieldType.HiddenField, DbTitle = "表价缺失提醒色", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||
public string XLXSBJFL_BJQSTXS
|
||||
{
|
||||
get { return _XLXSBJFL_BJQSTXS; }
|
||||
set { _XLXSBJFL_BJQSTXS = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_ZDXJJCLXX;
|
||||
[ColumnMap(DbField = "XLXSBJFL_ZDXJJCLXX", CtrlName = "txtZDXJJCLXX", Type = FieldType.F, DbTitle = "最低限价价差率下限", DefaultValue = "0",
|
||||
IsAllowNull = true, IsKey = false, Length = 0)]
|
||||
public string XLXSBJFL_ZDXJJCLXX
|
||||
{
|
||||
get { return _XLXSBJFL_ZDXJJCLXX; }
|
||||
set { _XLXSBJFL_ZDXJJCLXX = value; }
|
||||
}
|
||||
|
||||
|
||||
private string _XLXSBJFL_ZDXJJCLTXS;
|
||||
[ColumnMap(DbField = "XLXSBJFL_ZDXJJCLTXS", CtrlName = "txtZDXJJCLTXS", Type = FieldType.HiddenField, DbTitle = "超限提醒色", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||
public string XLXSBJFL_ZDXJJCLTXS
|
||||
{
|
||||
get { return _XLXSBJFL_ZDXJJCLTXS; }
|
||||
set { _XLXSBJFL_ZDXJJCLTXS = value; }
|
||||
}
|
||||
|
||||
|
||||
private string _XLXSBJFL_CPMLID;
|
||||
[ColumnMap(DbField = "XLXSBJFL_CPMLID", CtrlName = "cbxCPMLID", Type = FieldType.CBX, DbTitle = "产品目录", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 2)]
|
||||
public string XLXSBJFL_CPMLID
|
||||
{
|
||||
get { return _XLXSBJFL_CPMLID; }
|
||||
set { _XLXSBJFL_CPMLID = value; }
|
||||
}
|
||||
|
||||
//锁定价格表材料行情范围
|
||||
private string _XLXSBJFL_SDJGBCLHQFW;
|
||||
[ColumnMap(DbField = "XLXSBJFL_SDJGBCLHQFW", CtrlName = "chkSDJGBCLHQFW", Type = FieldType.Y, DbTitle = "锁定价格表材料行情范围", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_SDJGBCLHQFW
|
||||
{
|
||||
get { return _XLXSBJFL_SDJGBCLHQFW; }
|
||||
set { _XLXSBJFL_SDJGBCLHQFW = value; }
|
||||
}
|
||||
|
||||
//显示价格表行情料价_XSLJ
|
||||
|
||||
//显示基价
|
||||
private string _XLXSBJFL_XSJGBJJ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_XSJGBJJ", CtrlName = "chkXSJGBJJ", Type = FieldType.Y, DbTitle = "显示价格表基价", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_XSJGBJJ
|
||||
{
|
||||
get { return _XLXSBJFL_XSJGBJJ; }
|
||||
set { _XLXSBJFL_XSJGBJJ = value; }
|
||||
}
|
||||
|
||||
//XLXSBJFL_XSJGBBJJCE
|
||||
private string _XLXSBJFL_XSJGBBJJCE;
|
||||
[ColumnMap(DbField = "XLXSBJFL_XSJGBBJJCE", CtrlName = "chkXSJGBBJJCE", Type = FieldType.Y, DbTitle = "显示价格表表价价差额", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_XSJGBBJJCE
|
||||
{
|
||||
get { return _XLXSBJFL_XSJGBBJJCE; }
|
||||
set { _XLXSBJFL_XSJGBBJJCE = value; }
|
||||
}
|
||||
|
||||
//显示表价价差率_XSJCL
|
||||
|
||||
//表价价差率类型
|
||||
private string _XLXSBJFL_BJJCLLX;
|
||||
[ColumnMap(DbField = "XLXSBJFL_BJJCLLX", CtrlName = "cbxBJJCLLX", Type = FieldType.CBX, DbTitle = "表价价差率公式", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_BJJCLLX
|
||||
{
|
||||
get { return _XLXSBJFL_BJJCLLX; }
|
||||
set { _XLXSBJFL_BJJCLLX = value; }
|
||||
}
|
||||
|
||||
//意向价价差率类型
|
||||
private string _XLXSBJFL_YXJJCLLX;
|
||||
[ColumnMap(DbField = "XLXSBJFL_YXJJCLLX", CtrlName = "cbxYXJJCLLX", Type = FieldType.CBX, DbTitle = "意向价价差率公式", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_YXJJCLLX
|
||||
{
|
||||
get { return _XLXSBJFL_YXJJCLLX; }
|
||||
set { _XLXSBJFL_YXJJCLLX = value; }
|
||||
}
|
||||
|
||||
|
||||
private string _XLXSBJFL_XSYLRYZID;
|
||||
[ColumnMap(DbField = "XLXSBJFL_XSYLRYZID", CtrlName = "cbxLRYZ", Type = FieldType.CBX, DbTitle = "录入因子", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||
public string XLXSBJFL_XSYLRYZID
|
||||
{
|
||||
get { return _XLXSBJFL_XSYLRYZID; }
|
||||
set { _XLXSBJFL_XSYLRYZID = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_XSYKJJGHJ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_XSYKJJGHJ", CtrlName = "cbxKJJGHJ", Type = FieldType.CL, DbTitle = "可见价格环节", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 60)]
|
||||
public string XLXSBJFL_XSYKJJGHJ
|
||||
{
|
||||
get { return _XLXSBJFL_XSYKJJGHJ; }
|
||||
set { _XLXSBJFL_XSYKJJGHJ = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_XSYKJJGLM;
|
||||
[ColumnMap(DbField = "XLXSBJFL_XSYKJJGLM", CtrlName = "cbxKJJGLM", Type = FieldType.CL, DbTitle = "可见价格栏目", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 30)]
|
||||
public string XLXSBJFL_XSYKJJGLM
|
||||
{
|
||||
get { return _XLXSBJFL_XSYKJJGLM; }
|
||||
set { _XLXSBJFL_XSYKJJGLM = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_TZCLHQ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_TZCLHQ", CtrlName = "chkTZCLHQ", Type = FieldType.Y, DbTitle = "调整材料行情", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_TZCLHQ
|
||||
{
|
||||
get { return _XLXSBJFL_TZCLHQ; }
|
||||
set { _XLXSBJFL_TZCLHQ = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_TZWLHQ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_TZWLHQ", CtrlName = "chkTZWLHQ", Type = FieldType.Y, DbTitle = "调整物料行情", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_TZWLHQ
|
||||
{
|
||||
get { return _XLXSBJFL_TZWLHQ; }
|
||||
set { _XLXSBJFL_TZWLHQ = value; }
|
||||
}
|
||||
|
||||
//调整价格表表价
|
||||
private string _XLXSBJFL_TZJGBBJ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_TZJGBBJ", CtrlName = "cbxTZJGBBJ", Type = FieldType.CBX, DbTitle = "调整价格表表价", DefaultValue = "1",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_TZJGBBJ
|
||||
{
|
||||
get { return _XLXSBJFL_TZJGBBJ; }
|
||||
set { _XLXSBJFL_TZJGBBJ = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_TZBJBJBB;
|
||||
[ColumnMap(DbField = "XLXSBJFL_TZBJBJBB", CtrlName = "chkTZBJBJBB", Type = FieldType.Y, DbTitle = "调整表价报价不变", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_TZBJBJBB
|
||||
{
|
||||
get { return _XLXSBJFL_TZBJBJBB; }
|
||||
set { _XLXSBJFL_TZBJBJBB = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_TZBJDHQLJ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_TZBJDHQLJ", CtrlName = "cbxTZBJDHQLJ", Type = FieldType.CBX, DbTitle = "调整报价单行情料价", DefaultValue = "1",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_TZBJDHQLJ
|
||||
{
|
||||
get { return _XLXSBJFL_TZBJDHQLJ; }
|
||||
set { _XLXSBJFL_TZBJDHQLJ = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_TZBJ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_TZBJ", CtrlName = "cbxTZBJ", Type = FieldType.CBX, DbTitle = "调整报价", DefaultValue = "1",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_TZBJ
|
||||
{
|
||||
get { return _XLXSBJFL_TZBJ; }
|
||||
set { _XLXSBJFL_TZBJ = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_JGBBJBM;
|
||||
[ColumnMap(DbField = "XLXSBJFL_JGBBJBM", CtrlName = "txtJGBBJBM", Type = FieldType.C, DbTitle = "价格表表价别名", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 30)]
|
||||
public string XLXSBJFL_JGBBJBM
|
||||
{
|
||||
get { return _XLXSBJFL_JGBBJBM; }
|
||||
set { _XLXSBJFL_JGBBJBM = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_BJDHQLJBM;
|
||||
[ColumnMap(DbField = "XLXSBJFL_BJDHQLJBM", CtrlName = "txtBJDHQLJBM", Type = FieldType.C, DbTitle = "报价单行情料价别名", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 30)]
|
||||
public string XLXSBJFL_BJDHQLJBM
|
||||
{
|
||||
get { return _XLXSBJFL_BJDHQLJBM; }
|
||||
set { _XLXSBJFL_BJDHQLJBM = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_BJBM;
|
||||
[ColumnMap(DbField = "XLXSBJFL_BJBM", CtrlName = "txtBJBM", Type = FieldType.C, DbTitle = "报价别名", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 30)]
|
||||
public string XLXSBJFL_BJBM
|
||||
{
|
||||
get { return _XLXSBJFL_BJBM; }
|
||||
set { _XLXSBJFL_BJBM = value; }
|
||||
}
|
||||
|
||||
|
||||
private string _XLXSBJFL_ZDXJQZBJDFL;
|
||||
[ColumnMap(DbField = "XLXSBJFL_ZDXJQZBJDFL", CtrlName = "cbxZDXJQZBJDFL", Type = FieldType.CBX, DbTitle = "最低限价取自报价的分类", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||
public string XLXSBJFL_ZDXJQZBJDFL
|
||||
{
|
||||
get { return _XLXSBJFL_ZDXJQZBJDFL; }
|
||||
set { _XLXSBJFL_ZDXJQZBJDFL = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_ZDXJGS;
|
||||
[ColumnMap(DbField = "XLXSBJFL_ZDXJGS", CtrlName = "txtValue", Type = FieldType.HiddenField, DbTitle = "最低限价公式", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 250)]
|
||||
public string XLXSBJFL_ZDXJGS
|
||||
{
|
||||
get { return _XLXSBJFL_ZDXJGS; }
|
||||
set { _XLXSBJFL_ZDXJGS = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_JSJGS;
|
||||
[ColumnMap(DbField = "XLXSBJFL_JSJGS", CtrlName = "txtJSJGSValue", Type = FieldType.HiddenField, DbTitle = "结算价公式", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 250)]
|
||||
public string XLXSBJFL_JSJGS
|
||||
{
|
||||
get { return _XLXSBJFL_JSJGS; }
|
||||
set { _XLXSBJFL_JSJGS = value; }
|
||||
}
|
||||
|
||||
//报价单行情来源
|
||||
private string _XLXSBJFL_BJDHQLY;
|
||||
[ColumnMap(DbField = "XLXSBJFL_BJDHQLY", CtrlName = "cbxBJDHQLY", Type = FieldType.CBX, DbTitle = "报价单行情来源", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_BJDHQLY
|
||||
{
|
||||
get { return _XLXSBJFL_BJDHQLY; }
|
||||
set { _XLXSBJFL_BJDHQLY = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_CPBJMRXSWS;
|
||||
[ColumnMap(DbField = "XLXSBJFL_CPBJMRXSWS", CtrlName = "txtCPBJMRXSWS", Type = FieldType.F, DbTitle = "报价默认小数位数", DefaultValue = "0",
|
||||
IsAllowNull = true, IsKey = false, Length = 0)]
|
||||
public string XLXSBJFL_CPBJMRXSWS
|
||||
{
|
||||
get { return _XLXSBJFL_CPBJMRXSWS; }
|
||||
set { _XLXSBJFL_CPBJMRXSWS = value; }
|
||||
}
|
||||
|
||||
|
||||
//报价产品辅助检索
|
||||
private string _XLXSBJFL_BJCPFZJS;
|
||||
[ColumnMap(DbField = "XLXSBJFL_BJCPFZJS", CtrlName = "cbxBJCPFZJS", Type = FieldType.CBX, DbTitle = "报价产品辅助检索", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_BJCPFZJS
|
||||
{
|
||||
get { return _XLXSBJFL_BJCPFZJS; }
|
||||
set { _XLXSBJFL_BJCPFZJS = value; }
|
||||
}
|
||||
|
||||
//不按标准覆盖电压
|
||||
private string _XLXSBJFL_BABZFGDY;
|
||||
[ColumnMap(DbField = "XLXSBJFL_BABZFGDY", CtrlName = "chkBABZFGDY", Type = FieldType.Y, DbTitle = "不按标准覆盖电压", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_BABZFGDY
|
||||
{
|
||||
get { return _XLXSBJFL_BABZFGDY; }
|
||||
set { _XLXSBJFL_BABZFGDY = value; }
|
||||
}
|
||||
|
||||
//仅加载价格型号
|
||||
private string _XLXSBJFL_JJZJGBXH;
|
||||
[ColumnMap(DbField = "XLXSBJFL_JJZJGBXH", CtrlName = "chkJJZJGBXH", Type = FieldType.Y, DbTitle = "仅加载价格型号", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_JJZJGBXH
|
||||
{
|
||||
get { return _XLXSBJFL_JJZJGBXH; }
|
||||
set { _XLXSBJFL_JJZJGBXH = value; }
|
||||
}
|
||||
|
||||
//型号按报价次数倒排
|
||||
private string _XLXSBJFL_XHABJCSDP;
|
||||
[ColumnMap(DbField = "XLXSBJFL_XHABJCSDP", CtrlName = "chkXHABJCSDP", Type = FieldType.Y, DbTitle = "型号按报价次数倒排", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_XHABJCSDP
|
||||
{
|
||||
get { return _XLXSBJFL_XHABJCSDP; }
|
||||
set { _XLXSBJFL_XHABJCSDP = value; }
|
||||
}
|
||||
|
||||
//料价价差率批量调价范围
|
||||
private string _XLXSBJFL_LJJCLPLTJFW;
|
||||
[ColumnMap(DbField = "XLXSBJFL_LJJCLPLTJFW", CtrlName = "cbxLJJCLPLTJFW", Type = FieldType.CL, DbTitle = "料价价差率批量调价范围", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 30)]
|
||||
public string XLXSBJFL_LJJCLPLTJFW
|
||||
{
|
||||
get { return _XLXSBJFL_LJJCLPLTJFW; }
|
||||
set { _XLXSBJFL_LJJCLPLTJFW = value; }
|
||||
}
|
||||
|
||||
//铜铝价调整默认更新其他材料
|
||||
private string _XLXSBJFL_TLJTZGXQTCL;
|
||||
[ColumnMap(DbField = "XLXSBJFL_TLJTZGXQTCL", CtrlName = "chkTLJTZGXQTCL", Type = FieldType.Y, DbTitle = "铜铝价调整默认更新其他材料", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_TLJTZGXQTCL
|
||||
{
|
||||
get { return _XLXSBJFL_TLJTZGXQTCL; }
|
||||
set { _XLXSBJFL_TLJTZGXQTCL = value; }
|
||||
}
|
||||
|
||||
//显示意向价
|
||||
private string _XLXSBJFL_XSYXJ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_XSYXJ", CtrlName = "chkXSYXJ", Type = FieldType.Y, DbTitle = "显示意向价", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_XSYXJ
|
||||
{
|
||||
get { return _XLXSBJFL_XSYXJ; }
|
||||
set { _XLXSBJFL_XSYXJ = value; }
|
||||
}
|
||||
|
||||
//显示印字
|
||||
private string _XLXSBJFL_XSYZ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_XSYZ", CtrlName = "chkXSYZ", Type = FieldType.Y, DbTitle = "显示印字", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_XSYZ
|
||||
{
|
||||
get { return _XLXSBJFL_XSYZ; }
|
||||
set { _XLXSBJFL_XSYZ = value; }
|
||||
}
|
||||
|
||||
//显示包号
|
||||
private string _XLXSBJFL_XSFBH;
|
||||
[ColumnMap(DbField = "XLXSBJFL_XSFBH", CtrlName = "chkXSBH", Type = FieldType.Y, DbTitle = "显示包号", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_XSFBH
|
||||
{
|
||||
get { return _XLXSBJFL_XSFBH; }
|
||||
set { _XLXSBJFL_XSFBH = value; }
|
||||
}
|
||||
|
||||
//显示产品报价限价
|
||||
private string _XLXSBJFL_XSCPBJXJ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_XSCPBJXJ", CtrlName = "chkXSCPBJXJ", Type = FieldType.Y, DbTitle = "显示产品报价限价", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_XSCPBJXJ
|
||||
{
|
||||
get { return _XLXSBJFL_XSCPBJXJ; }
|
||||
set { _XLXSBJFL_XSCPBJXJ = value; }
|
||||
}
|
||||
|
||||
//显示原产品
|
||||
private string _XLXSBJFL_XSYSCP;
|
||||
[ColumnMap(DbField = "XLXSBJFL_XSYSCP", CtrlName = "chkXSYSCP", Type = FieldType.Y, DbTitle = "显示原产品", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_XSYSCP
|
||||
{
|
||||
get { return _XLXSBJFL_XSYSCP; }
|
||||
set { _XLXSBJFL_XSYSCP = value; }
|
||||
}
|
||||
|
||||
//型号规格右模糊检索
|
||||
private string _XLXSBJFL_XHGGYMHJS;
|
||||
[ColumnMap(DbField = "XLXSBJFL_XHGGYMHJS", CtrlName = "chkXHGGYMHJS", Type = FieldType.Y, DbTitle = "型号规格右模糊检索", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_XHGGYMHJS
|
||||
{
|
||||
get { return _XLXSBJFL_XHGGYMHJS; }
|
||||
set { _XLXSBJFL_XHGGYMHJS = value; }
|
||||
}
|
||||
|
||||
//料价价差率类型
|
||||
private string _XLXSBJFL_LJJCLLX;
|
||||
[ColumnMap(DbField = "XLXSBJFL_LJJCLLX", CtrlName = "cbxLJJCLLX", Type = FieldType.CBX, DbTitle = "料价价差率类型", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_LJJCLLX
|
||||
{
|
||||
get { return _XLXSBJFL_LJJCLLX; }
|
||||
set { _XLXSBJFL_LJJCLLX = value; }
|
||||
}
|
||||
|
||||
//表价料价价差率公式
|
||||
private string _XLXSBJFL_BJLJJCLLX;
|
||||
[ColumnMap(DbField = "XLXSBJFL_BJLJJCLLX", CtrlName = "cbxBJLJJCL", Type = FieldType.CBX, DbTitle = "表价料价价差率公式", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_BJLJJCLLX
|
||||
{
|
||||
get { return _XLXSBJFL_BJLJJCLLX; }
|
||||
set { _XLXSBJFL_BJLJJCLLX = value; }
|
||||
}
|
||||
|
||||
//显示调整报价
|
||||
private string _XLXSBJFL_XSTZCPBJ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_XSTZCPBJ", CtrlName = "chkXSTZCPBJ", Type = FieldType.Y, DbTitle = "显示调整报价", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_XSTZCPBJ
|
||||
{
|
||||
get { return _XLXSBJFL_XSTZCPBJ; }
|
||||
set { _XLXSBJFL_XSTZCPBJ = value; }
|
||||
}
|
||||
|
||||
//显示调整最低限价
|
||||
private string _XLXSBJFL_XSTZZDXJ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_XSTZZDXJ", CtrlName = "chkXSTZZDXJ", Type = FieldType.Y, DbTitle = "显示调整最低限价", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_XSTZZDXJ
|
||||
{
|
||||
get { return _XLXSBJFL_XSTZZDXJ; }
|
||||
set { _XLXSBJFL_XSTZZDXJ = value; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
//显示调整报价金额
|
||||
private string _XLXSBJFL_XSTZBJJE;
|
||||
[ColumnMap(DbField = "XLXSBJFL_XSTZBJJE", CtrlName = "chkXSTZBJJE", Type = FieldType.Y, DbTitle = "显示调整报价金额", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_XSTZBJJE
|
||||
{
|
||||
get { return _XLXSBJFL_XSTZBJJE; }
|
||||
set { _XLXSBJFL_XSTZBJJE = value; }
|
||||
}
|
||||
|
||||
//报价一致校验
|
||||
private string _XLXSBJFL_XTCPBJYZ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_XTCPBJYZ", CtrlName = "cbxBJYZJY", Type = FieldType.CBX, DbTitle = "报价一致校验", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_XTCPBJYZ
|
||||
{
|
||||
get { return _XLXSBJFL_XTCPBJYZ; }
|
||||
set { _XLXSBJFL_XTCPBJYZ = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_TBJCLID;
|
||||
[ColumnMap(DbField = "XLXSBJFL_TBJCLID", CtrlName = "cbxTBJCLID", Type = FieldType.CBX, DbTitle = "铜报价材料", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 20)]
|
||||
public string XLXSBJFL_TBJCLID
|
||||
{
|
||||
get { return _XLXSBJFL_TBJCLID; }
|
||||
set { _XLXSBJFL_TBJCLID = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_LBJCLID;
|
||||
[ColumnMap(DbField = "XLXSBJFL_LBJCLID", CtrlName = "cbxLBJCLID", Type = FieldType.CBX, DbTitle = "铝报价材料", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 20)]
|
||||
public string XLXSBJFL_LBJCLID
|
||||
{
|
||||
get { return _XLXSBJFL_LBJCLID; }
|
||||
set { _XLXSBJFL_LBJCLID = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_JYF;
|
||||
[ColumnMap(DbField = "XLXSBJFL_JYF", CtrlName = "chkJYF", Type = FieldType.Y, DbTitle = "计运费", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_JYF
|
||||
{
|
||||
get { return _XLXSBJFL_JYF; }
|
||||
set { _XLXSBJFL_JYF = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_YFWLID;
|
||||
[ColumnMap(DbField = "XLXSBJFL_YFWLID", CtrlName = "cbxYFWLID", Type = FieldType.CBX, DbTitle = "运费物料ID", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 20)]
|
||||
public string XLXSBJFL_YFWLID
|
||||
{
|
||||
get { return _XLXSBJFL_YFWLID; }
|
||||
set { _XLXSBJFL_YFWLID = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_BJHYF;
|
||||
[ColumnMap(DbField = "XLXSBJFL_BJHYF", CtrlName = "chkBJHYF", Type = FieldType.Y, DbTitle = "报价含运费", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_BJHYF
|
||||
{
|
||||
get { return _XLXSBJFL_BJHYF; }
|
||||
set { _XLXSBJFL_BJHYF = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_JLBJDHQ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_JLBJDHQ", CtrlName = "chkJLBJDHQ", Type = FieldType.Y, DbTitle = "记录报价单行情", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_JLBJDHQ
|
||||
{
|
||||
get { return _XLXSBJFL_JLBJDHQ; }
|
||||
set { _XLXSBJFL_JLBJDHQ = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_ABJDHQJSBJ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_ABJDHQJSBJ", CtrlName = "chkABJDHQJSBJ", Type = FieldType.Y, DbTitle = "按报价单行情计算表价", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_ABJDHQJSBJ
|
||||
{
|
||||
get { return _XLXSBJFL_ABJDHQJSBJ; }
|
||||
set { _XLXSBJFL_ABJDHQJSBJ = value; }
|
||||
}
|
||||
|
||||
|
||||
private string _XLXSBJFL_ZLGZCLS;
|
||||
[ColumnMap(DbField = "XLXSBJFL_ZLGZCLS", CtrlName = "cbxZLGZCLS", DbTitle = "重量关注材料", Type = FieldType.CL, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 250)]
|
||||
public string XLXSBJFL_ZLGZCLS
|
||||
{
|
||||
get { return _XLXSBJFL_ZLGZCLS; }
|
||||
set { _XLXSBJFL_ZLGZCLS = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_ZDXJJCLLX;
|
||||
[ColumnMap(DbField = "XLXSBJFL_ZDXJJCLLX", CtrlName = "cbxZDXJJCLLX", DbTitle = "最低限价价差率公式", Type = FieldType.CBX, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_ZDXJJCLLX
|
||||
{
|
||||
get { return _XLXSBJFL_ZDXJJCLLX; }
|
||||
set { _XLXSBJFL_ZDXJJCLLX = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_JMBGSYZID;
|
||||
[ColumnMap(DbField = "XLXSBJFL_JMBGSYZID", CtrlName = "cbxJMBGSYZID", DbTitle = "截面比公式适用因子", Type = FieldType.CBX, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||
public string XLXSBJFL_JMBGSYZID
|
||||
{
|
||||
get { return _XLXSBJFL_JMBGSYZID; }
|
||||
set { _XLXSBJFL_JMBGSYZID = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_XSZDXJ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_XSZDXJ", CtrlName = "chkXSDZXJ", Type = FieldType.Y, DbTitle = "显示最低限价", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_XSZDXJ
|
||||
{
|
||||
get { return _XLXSBJFL_XSZDXJ; }
|
||||
set { _XLXSBJFL_XSZDXJ = value; }
|
||||
}
|
||||
|
||||
|
||||
// 私有变量启用日期
|
||||
private string _XLXSBJFL_QYRQ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_QYRQ", CtrlName = "datQYSJ", Type=FieldType.D, DbTitle = "启用日期",DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||
public string XLXSBJFL_QYRQ
|
||||
{
|
||||
get { return _XLXSBJFL_QYRQ; }
|
||||
set { _XLXSBJFL_QYRQ = value; }
|
||||
}
|
||||
|
||||
// 私有变量停用标志
|
||||
private string _XLXSBJFL_TYBZ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_TYBZ", CtrlName = "chkTYBZ", Type=FieldType.Y, DbTitle = "停用标志",DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_TYBZ
|
||||
{
|
||||
get { return _XLXSBJFL_TYBZ; }
|
||||
set { _XLXSBJFL_TYBZ = value; }
|
||||
}
|
||||
|
||||
// 私有变量停用日期
|
||||
private string _XLXSBJFL_TYRQ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_TYRQ", CtrlName = "datTYSJ", Type=FieldType.D, DbTitle = "停用日期",DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||
public string XLXSBJFL_TYRQ
|
||||
{
|
||||
get { return _XLXSBJFL_TYRQ; }
|
||||
set { _XLXSBJFL_TYRQ = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFL_BZ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_BZ", CtrlName = "txtBZ", DbTitle = "备注", Type = FieldType.C, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 250)]
|
||||
public string XLXSBJFL_BZ
|
||||
{
|
||||
get { return _XLXSBJFL_BZ; }
|
||||
set { _XLXSBJFL_BZ = value; }
|
||||
}
|
||||
|
||||
//仅录入报价产品
|
||||
private string _XLXSBJFL_JLRBJCP;
|
||||
[ColumnMap(DbField = "XLXSBJFL_JLRBJCP", CtrlName = "chkJLRBJCP", Type = FieldType.Y, DbTitle = "仅录入报价产品", DefaultValue = "N",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJFL_JLRBJCP
|
||||
{
|
||||
get { return _XLXSBJFL_JLRBJCP; }
|
||||
set { _XLXSBJFL_JLRBJCP = value; }
|
||||
}
|
||||
|
||||
// 私有变量维护人
|
||||
private string _XLXSBJFL_WHR;
|
||||
[ColumnMap(DbField = "XLXSBJFL_WHR", CtrlName = "txtWHR", Type=FieldType.C, DbTitle = "维护人",DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 30)]
|
||||
public string XLXSBJFL_WHR
|
||||
{
|
||||
get { return _XLXSBJFL_WHR; }
|
||||
set { _XLXSBJFL_WHR = value; }
|
||||
}
|
||||
|
||||
// 私有变量维护人工号
|
||||
private string _XLXSBJFL_WHRID;
|
||||
[ColumnMap(DbField = "XLXSBJFL_WHRID", CtrlName = "txtWHRID", Type = FieldType.HiddenField, DbTitle = "维护人ID", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||
public string XLXSBJFL_WHRID
|
||||
{
|
||||
get { return _XLXSBJFL_WHRID; }
|
||||
set { _XLXSBJFL_WHRID = value; }
|
||||
}
|
||||
|
||||
// 私有变量维护时间
|
||||
private string _XLXSBJFL_WHSJ;
|
||||
[ColumnMap(DbField = "XLXSBJFL_WHSJ", CtrlName = "datWHSJ", Type=FieldType.DT, DbTitle = "维护时间",DefaultValue = "",
|
||||
IsAllowNull = false, IsKey =true, Length = 18)]
|
||||
public string XLXSBJFL_WHSJ
|
||||
{
|
||||
get { return _XLXSBJFL_WHSJ; }
|
||||
set { _XLXSBJFL_WHSJ = value; }
|
||||
}
|
||||
|
||||
//私有变量价格模板GRPID
|
||||
private string _XLXSBJFL_JGMBGRPID;
|
||||
[ColumnMap(DbField = "XLXSBJFL_JGMBGRPID", CtrlName = "txtDOCGRPID", DbTitle = "文档分组号", Type = FieldType.HiddenField, DefaultValue = "0",
|
||||
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||
public string XLXSBJFL_JGMBGRPID
|
||||
{
|
||||
get { return _XLXSBJFL_JGMBGRPID; }
|
||||
set { _XLXSBJFL_JGMBGRPID = value; }
|
||||
}
|
||||
|
||||
|
||||
private string _XLXSBJFL_JGMBFJS;
|
||||
[ColumnMap(DbField = "XLXSBJFL_JGMBFJS", CtrlName = "txtFJS", DbTitle = "附件数", Type = FieldType.HiddenField, DefaultValue = "0",
|
||||
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||
public string XLXSBJFL_JGMBFJS
|
||||
{
|
||||
get { return _XLXSBJFL_JGMBFJS; }
|
||||
set { _XLXSBJFL_JGMBFJS = value; }
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据RGB编码获取颜色名称
|
||||
/// </summary>
|
||||
/// <param name="sColorID"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetColourMCByID(string sColorID)
|
||||
{
|
||||
string sName = "";
|
||||
switch (sColorID)
|
||||
{
|
||||
case "#FFFFFF":
|
||||
sName = "白色";
|
||||
break;
|
||||
case "#FF0000":
|
||||
sName = "红色";
|
||||
break;
|
||||
case "#FF6262":
|
||||
sName = "浅红色";
|
||||
break;
|
||||
case "#FF00FF":
|
||||
sName = "紫红色";
|
||||
break;
|
||||
case "#FFFF00":
|
||||
sName = "黄色";
|
||||
break;
|
||||
case "#F5DEB3":
|
||||
sName = "浅黄色";
|
||||
break;
|
||||
case "#008000":
|
||||
sName = "绿色";
|
||||
break;
|
||||
case "#00FFFF":
|
||||
sName = "浅绿色";
|
||||
break;
|
||||
case "#0000FF":
|
||||
sName = "蓝色";
|
||||
break;
|
||||
case "#8784F0":
|
||||
sName = "浅蓝色";
|
||||
break;
|
||||
case "#F0FFFF":
|
||||
sName = "天蓝色";
|
||||
break;
|
||||
case "#808000":
|
||||
sName = "橄榄色";
|
||||
break;
|
||||
case "#800080":
|
||||
sName = "紫色";
|
||||
break;
|
||||
case "#D4D0C8":
|
||||
sName = "灰色";
|
||||
break;
|
||||
case "无":
|
||||
sName = "无";
|
||||
break;
|
||||
}
|
||||
return sName;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 公式编码=>公式名称的转换
|
||||
/// </summary>
|
||||
/// <param name="sZDXJGS"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetZDXJGSMC(string sZDXJGS)
|
||||
{
|
||||
string sReturn = sZDXJGS;
|
||||
Dictionary<string, string> dic = XLBJDUtils.GetALLYZIDDic();
|
||||
|
||||
dic.Add("CLCB", "成本");
|
||||
dic.Add("JGBJJ", "基价");
|
||||
dic.Add("JGBBJ", "表价");
|
||||
dic.Add("CPBJ", "报价");
|
||||
dic.Add("ZDXJ", "最低限价");
|
||||
|
||||
foreach (KeyValuePair<string, string> kvp in dic)
|
||||
{
|
||||
sReturn = sReturn.Replace(kvp.Key, kvp.Value);
|
||||
}
|
||||
|
||||
return sReturn;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// >公式名称=>公式编码的转换
|
||||
/// </summary>
|
||||
/// <param name="sZDXJGS"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetZDXJGSBM(string sZDXJGS)
|
||||
{
|
||||
string sReturn = sZDXJGS;
|
||||
Dictionary<string, string> Yzdic = XLBJDUtils.GetALLYZIDDic();
|
||||
Dictionary<string, string> dic = new Dictionary<string, string>();
|
||||
dic.Clear();
|
||||
|
||||
foreach (string sYZID in Yzdic.Keys)
|
||||
{
|
||||
if (!dic.ContainsKey(Yzdic[sYZID]))
|
||||
{
|
||||
dic.Add(Yzdic[sYZID], sYZID);
|
||||
}
|
||||
}
|
||||
dic.Add("成本", "CLCB");
|
||||
dic.Add("基价", "JGBJJ");
|
||||
dic.Add("表价", "JGBBJ");
|
||||
dic.Add("报价", "CPBJ");
|
||||
dic.Add("最低限价", "ZDXJ");
|
||||
|
||||
foreach (KeyValuePair<string, string> kvp in dic)
|
||||
{
|
||||
sReturn = sReturn.Replace(kvp.Key, kvp.Value);
|
||||
}
|
||||
|
||||
return sReturn;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using GThinking.N_MISPROAS.Caching;
|
||||
using System.Data;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
internal class BJFLCache : DbDataCacheBase
|
||||
{
|
||||
public DataTable dtXLXSBJFL;
|
||||
public DataView dvXLXSBJFLBy_BJFLID;
|
||||
|
||||
public BJFLCache()
|
||||
: base("DBERP", "N_XLXSBJ_XLXSBJFL", "XLXSBJFL")
|
||||
{
|
||||
}
|
||||
|
||||
protected override void FillData(string subKey)
|
||||
{
|
||||
TDatabase db = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(db);
|
||||
SQL.Clear();
|
||||
SQL.Add(@"select XLXSBJFL_BJFLID,XLXSBJFL_BJFLMC,XLXSBJFL_QYRQ,XLXSBJFL_TYBZ,XLXSBJFL_TYRQ,XLXSBJFL_BZ,
|
||||
XLXSBJFL_WHR,XLXSBJFL_WHRID,XLXSBJFL_WHSJ,XLXSBJFL_XSQYIDS,XLXSBJFL_JGBTJYSS,XLXSBJFL_MRCKC,
|
||||
XLXSBJFL_JGBIDS,XLXSBJFL_CPMLID,XLXSBJFL_XSJGBJJ,XLXSBJFL_XSJGBBJJCE,XLXSBJFL_BJJCLLX,XLXSBJFL_JSJJCLLX,
|
||||
XLXSBJFL_LJJCLLX,XLXSBJFL_TZCLHQ,XLXSBJFL_TZWLHQ,XLXSBJFL_TZJGBBJ,XLXSBJFL_TZBJBJBB,XLXSBJFL_XSTZCPBJ,
|
||||
XLXSBJFL_XSTZBJJE,XLXSBJFL_SDJGBCLHQFW,XLXSBJFL_BJDHQLY,XLXSBJFL_BJCPFZJS,XLXSBJFL_XHABJCSDP,
|
||||
XLXSBJFL_JYF,XLXSBJFL_YFWLID,XLXSBJFL_BJHYF,XLXSBJFL_MXBH,XLXSBJFL_TBJCLID,XLXSBJFL_LBJCLID,
|
||||
XLXSBJFL_ZLGZCLS,XLXSBJFL_BJDYBJTXS,XLXSBJFL_XJDYBJTXS,XLXSBJFL_BJQSTXS,XLXSBJFL_CPBJMRXSWS,XLXSBJFL_XTCPBJYZ,
|
||||
XLXSBJFL_ZDXJGS,XLXSBJFL_XSZDXJ,XLXSBJFL_ZDXJJCLLX,XLXSBJFL_JLRBJCP,XLXSBJFL_JGBBJBM,XLXSBJFL_XSCPBJXJ,
|
||||
XLXSBJFL_JLBJDHQ,XLXSBJFL_XHGGYMHJS,XLXSBJFL_XSXH,XLXSBJFL_BJFLTZM,XLXSBJFL_LJJCLPLTJFW,XLXSBJFL_ST,
|
||||
XLXSBJFL_BABZFGDY,XLXSBJFL_JMBGSYZID,XLXSBJFL_TZQCPBJGS,XLXSBJFL_XSYXJ,XLXSBJFL_XSXLBZMS,XLXSBJFL_TZBJDHQLJ,
|
||||
XLXSBJFL_TZBJ,XLXSBJFL_JGMBGRPID,XLXSBJFL_ZDXJJCLXX,XLXSBJFL_ZDXJJCLTXS,XLXSBJFL_BJLJJCLLX,XLXSBJFL_JSJBM,XLXSBJFL_JSJXSWS,XLXSBJFL_CJGS,
|
||||
XLXSBJFL_XSYZ,XLXSBJFL_XSYSCP,XLXSBJFL_ZDXJQZBJDFL,XLXSBJFL_TLJTZGXQTCL,XLXSBJFL_BJDHQLJBM,XLXSBJFL_ABJDHQJSBJ,XLXSBJFL_FJGBCPBJSBJ,XLXSBJFL_JMBGSBM,
|
||||
XLXSBJFL_BJBM,XLXSBJFL_XSTZZDXJ,XLXSBJFL_JSJGS,XLXSBJFL_JJZJGBXH,XLXSBJFL_YXJJCLLX,XLXSBJFL_XSFBH,XLXSBJFL_XSYLRYZID,XLXSBJFL_XSYKJJGHJ,XLXSBJFL_XSYKJJGLM,XLXSBJFL_XSLSBJ,
|
||||
XLXSBJFL_JGBBJZDWPID,XLXSBJFL_CPBJZDWPID,XLXSBJFL_LRBJCPWPID,XLXSBJFL_TZYLBL,XLXSBJFL_MYHSSX,XLXSBJFL_BJJCLBJRQDWCP,XLXSBJFL_LJJCLBJRQDWCP,XLXSBJFL_ZDXJJCLBJRQDWCP ");
|
||||
SQL.Add(" from XLXSBJFL ");
|
||||
SQL.Add(" where 1=1 ");
|
||||
SQL.ClassId = "N_XLXSBJ.BJFLCache";
|
||||
SQL.SqlId = "FillData_1";
|
||||
DataSet ds = db.OpenDataSet(SQL);
|
||||
if (ds.Tables.Count > 0)
|
||||
{
|
||||
dtXLXSBJFL = ds.Tables[0];
|
||||
dvXLXSBJFLBy_BJFLID = new DataView(dtXLXSBJFL, "", "XLXSBJFL_BJFLID", DataViewRowState.CurrentRows);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+652
@@ -0,0 +1,652 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleCard.Master" AutoEventWireup="true"
|
||||
Codebehind="BJFLInfo.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJFLInfo" Title="线缆销售报价分类"
|
||||
ValidateRequest="false" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleCard.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="cphUserToolbar" runat="server">
|
||||
<asp:Table CellPadding="0" CellSpacing="0" runat="server" ID="tbl1">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell BorderWidth="0px" BorderStyle="NotSet">
|
||||
<gtc:gtToolButton ID="btnTJYZ" BorderWidth="0px" BorderStyle="NotSet" Width="70px"
|
||||
Height="19px" ButtonType="Button" ShowCaption="True" runat="server" OnClick="btnTJYZ_Click"
|
||||
Caption="调价因子" />
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnRefresh" OnClick="btnRefresh_Click"
|
||||
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
<asp:Content ID="cntForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||
<table cellpadding="0" border="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="LABEL" runat="server" Text="报价分类号:"></gtc:gtLabel></td>
|
||||
<td align="left">
|
||||
<gtc:gtTextBox ID="txtBJFLID" runat="server" CharCase="ecUpperCase" Tag="star" Width="72px">
|
||||
</gtc:gtTextBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblXSXH" runat="server" Text="显示序号:"></gtc:gtLabel></td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtXSXH" runat="server" DecimalPlaces="0" Width="68px"></gtc:gtNumTextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel10" runat="server" Text="报价分类名称:"></gtc:gtLabel></td>
|
||||
<td align="left">
|
||||
<gtc:gtTextBox ID="txtBJFLMC" runat="server" CharCase="ecUpperCase" ReadOnly="True"
|
||||
Tag="star" Width="142px">
|
||||
</gtc:gtTextBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel33" runat="server" Text="特征码:"></gtc:gtLabel></td>
|
||||
<td align="left">
|
||||
<gtc:gtTextBox ID="txtBJFLTZM" runat="server" Width="68px">
|
||||
</gtc:gtTextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height:5px;"></tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
<gtc:gtLabel ID="GtLabel25" runat="server" Text="--价格表适配--" ForeColor="Blue"></gtc:gtLabel></td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel8" runat="server" Text="价格表类型:"></gtc:gtLabel></td>
|
||||
<td align="left" colspan="3">
|
||||
<gtc:gtComboBox ID="cbxMXBH" runat="server" Width="362px" Tag="Star" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="cbxMXBH_SelectedIndexChanged">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel2" runat="server" Text="价格表调价因素:"></gtc:gtLabel></td>
|
||||
<td align="left" colspan="3">
|
||||
<gtc:gtCheckedDropDownList ID="cbxJGBTJYSS" runat="server" Width="362px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="cbxJGBTJYSS_SelectedIndexChanged">
|
||||
</gtc:gtCheckedDropDownList>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel3" runat="server" Text="适用价格表:"></gtc:gtLabel></td>
|
||||
<td align="left" colspan="3">
|
||||
<gtc:gtCheckedDropDownList ID="cbxJGBIDS" runat="server" Width="362px" ShowValue="false">
|
||||
</gtc:gtCheckedDropDownList>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel1" runat="server" Text="适用销售区域:"></gtc:gtLabel></td>
|
||||
<td align="left" colspan="3">
|
||||
<gtc:gtCheckedDropDownList ID="cbxXSQYIDS" runat="server" Width="362px">
|
||||
</gtc:gtCheckedDropDownList>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel9" runat="server" Text="产品目录:"></gtc:gtLabel></td>
|
||||
<td align="left" colspan="3">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxCPMLID" runat="server" Width="142px" AutoPostBack="true" OnSelectedIndexChanged="cbxCPMLID_SelectedIndexChanged">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkSDJGBCLHQFW" runat="server" Text="锁定价格表材料行情范围" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height:5px;"></tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
<gtc:gtLabel ID="GtLabel26" runat="server" Text="--检索及提示--" ForeColor="Blue"></gtc:gtLabel></td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel13" runat="server" Text="报价产品辅助检索:"></gtc:gtLabel></td>
|
||||
<td align="left" colspan="3">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxBJCPFZJS" runat="server" Width="142px" Tag="Star">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkBABZFGDY" runat="server" Text="不按标准覆盖电压" Width="138px" />
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkJJZJGBXH" runat="server" Text="仅加载价格表型号" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td align="left" colspan="3">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkXHABJCSDP" runat="server" Text="型号按报价次数倒排" Width="140px" />
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkXHGGYMHJS" runat="server" Text="型号规格右模糊检索" Width="140px" />
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel47" runat="server" Text="报价一致校验:"></gtc:gtLabel></td>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxBJYZJY" runat="server" Text="" ShowValue="false" Width="142px"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel20" runat="server" Text="报价低于表价提醒色:"></gtc:gtLabel></td>
|
||||
<td align="left">
|
||||
<gtc:gtColorComboBox ID="cbxBJDYBJTXS" runat="server" Width="142px" DropDownCount="15" UseDefaultColors="false"></gtc:gtColorComboBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel21" runat="server" Text="表价缺失提醒色:"></gtc:gtLabel></td>
|
||||
<td align="left">
|
||||
<gtc:gtColorComboBox ID="cbxBJQSTXS" runat="server" Width="142px" DropDownCount="15" UseDefaultColors="false"></gtc:gtColorComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel39" runat="server" Text="最低限价价差率下限:"></gtc:gtLabel></td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox runat="server" ID="txtZDXJJCLXX" Width="72px" Tag="Percent"></gtc:gtNumTextBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel40" runat="server" Text="超限提醒色:"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtColorComboBox ID="cbxZDXJJCLTXS" runat="server" Width="142px" DropDownCount="15" UseDefaultColors="false"></gtc:gtColorComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height:5px;"></tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
<gtc:gtLabel ID="GtLabel27" runat="server" Text="--栏目显示控制--" ForeColor="Blue"></gtc:gtLabel></td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel22" runat="server" Text="报价默认小数位数:"></gtc:gtLabel></td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtCPBJMRXSWS" runat="server" DecimalPlaces="0" ShowZero="true" Width="72px" MinValue="-999" MaxValue="999"></gtc:gtNumTextBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtCheckBox ID="chkJLRBJCP" runat="server" Text="仅录入报价产品+" AutoPostBack="true" OnCheckedChanged="chkJLRBJCP_OnCheckedChanged"/>
|
||||
</td>
|
||||
<%-- 按角色隐藏--%>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxLRYZ" runat="server" Width="140px">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
<gtc:gtButton ID="btnAJSYCLM" runat="server" Text="按角色隐藏栏目" OnClick="btnAJSYCLM_Click" Visible="true" />
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel46" runat="server" Text="可见价格环节:"></gtc:gtLabel></td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckedDropDownList ID="cbxKJJGHJ" runat="server" Width="140px">
|
||||
</gtc:gtCheckedDropDownList>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel45" runat="server" Text="可见价格栏目:"></gtc:gtLabel></td>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckedDropDownList ID="cbxKJJGLM" runat="server" Width="140px">
|
||||
</gtc:gtCheckedDropDownList>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel7" runat="server" Text="表价价差率公式:"></gtc:gtLabel></td>
|
||||
<td align="left" colspan="3">
|
||||
<gtc:gtComboBox ID="cbxBJJCLLX" runat="server" Width="362px">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel12" runat="server" Text="料价价差率公式:"></gtc:gtLabel></td>
|
||||
<td align="left" colspan="3">
|
||||
<gtc:gtComboBox ID="cbxLJJCLLX" runat="server" Width="362px">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblBJLJJCLLX" runat="server" Text="表价料价价差率公式:"></gtc:gtLabel></td>
|
||||
<td align="left" colspan="3">
|
||||
<gtc:gtComboBox ID="cbxBJLJJCL" runat="server" Width="362px">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblZDXJQZBJDFL" runat="server" Text="最低限价取自报价的分类:"></gtc:gtLabel></td>
|
||||
<td align="left" colspan="3">
|
||||
<gtc:gtComboBox ID="cbxZDXJQZBJDFL" runat="server" Width="362px">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel24" runat="server">最低限价公式:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left" colspan="3">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<gtc:gtTextBox ID="txtZDXJGS" runat="server" Width="369px" ReadOnly="true" Enabled="false" Rows="1" TextMode="MultiLine">
|
||||
</gtc:gtTextBox>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtButton ID="btnSZ" Text="设置..." runat="server" Height="19px" Width="55px" OnClick="btnSZ_Click">
|
||||
</gtc:gtButton>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel28" runat="server" Text="最低限价价差率公式:"></gtc:gtLabel></td>
|
||||
<td align="left" colspan="3">
|
||||
<gtc:gtComboBox ID="cbxZDXJJCLLX" runat="server" Width="362px">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel44" runat="server" Text="意向价价差率公式:"></gtc:gtLabel></td>
|
||||
<td align="left" colspan="3">
|
||||
<gtc:gtComboBox ID="cbxYXJJCLLX" runat="server" Width="362px">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel43" runat="server">结算价公式:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left" colspan="3">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<gtc:gtTextBox ID="txtJSJGS" runat="server" Width="369px" ReadOnly="true" Enabled="false" Rows="1" TextMode="MultiLine">
|
||||
</gtc:gtTextBox>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtButton ID="btnJSJGSSZ" Text="设置..." runat="server" Height="19px" Width="55px" OnClick="btnJSJGSSZ_Click">
|
||||
</gtc:gtButton>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel35" runat="server" Text="截面比公式适用因子:"></gtc:gtLabel></td>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxJMBGSYZID" runat="server" Width="140px">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkXSYXJ" runat="server" Text="显示意向价" Width="140px" AutoPostBack="true" OnCheckedChanged="chkXSYXJ_OnCheckedChanged" />
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkXSYZ" runat="server" Text="显示印字" Width="140px" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkXSDZXJ" runat="server" Text="显示最低限价" Width="140px" />
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkXSJGBJJ" runat="server" Text="显示基价" Width="140px" />
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkXSJGBBJJCE" runat="server" Text="显示表价价差额" Width="140px" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkXSYSCP" runat="server" Text="显示原始产品" Width="140px" />
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkXSBH" runat="server" Text="显示包号" Width="140px" />
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkXSCPBJXJ" runat="server" Text="显示产品报价限价" Width="140px" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height:5px;"></tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
<gtc:gtLabel ID="GtLabel29" runat="server" Text="--栏目操作控制--" ForeColor="Blue"></gtc:gtLabel></td>
|
||||
<td>
|
||||
</td>
|
||||
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkXSTZCPBJ" runat="server" Text="调整报价" Width="140px" />
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkXSTZBJJE" runat="server" Text="调整金额" />
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkXSTZZDXJ" runat="server" Text="调整最低限价" AutoPostBack="true" OnCheckedChanged="chkXSTZZDXJ_OnCheckedChanged" />
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkMRCKC" runat="server" Text="默认查库存" Width="140px" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel14" runat="server" Text="调整表价:"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxTZJGBBJ" runat="server" Width="142px" Tag="Star" ShowValue="false" AutoPostBack="true" OnSelectedIndexChanged = "OncbxTZJGBBJSelected">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel32" runat="server" Text="表价别名:"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtTextBox ID="txtJGBBJBM" runat="server"></gtc:gtTextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkTZBJBJBB" runat="server" Text="调整表价报价不变" Width="140px" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel37" runat="server" Text="调整报价:"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxTZBJ" runat="server" Width="142px" Tag="Star" ShowValue="false">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel42" runat="server" Text="报价别名:"></gtc:gtLabel>
|
||||
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtTextBox ID="txtBJBM" runat="server"></gtc:gtTextBox>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel36" runat="server" Text="调整报价单材料行情:"></gtc:gtLabel>
|
||||
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxTZBJDHQLJ" runat="server" Width="142px" Tag="Star" ShowValue="false">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel41" runat="server" Text="报价单行情料价别名:"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtTextBox ID="txtBJDHQLJBM" runat="server"></gtc:gtTextBox>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel15" runat="server" Text="铜报价材料:"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxTBJCLID" runat="server" Width="142px">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel16" runat="server" Text="铝报价材料:"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxLBJCLID" runat="server" Width="142px">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height:5px;"></tr>
|
||||
<tr>
|
||||
<td>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel34" runat="server" Text="料价价差率批量调价范围:"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left" >
|
||||
<gtc:gtCheckedDropDownList ID="cbxLJJCLPLTJFW" runat="server" Width="142px">
|
||||
</gtc:gtCheckedDropDownList>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkTLJTZGXQTCL" runat="server" Text="铜铝价调整默认更新其他材料" />
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr style="height:5px;"></tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
<gtc:gtLabel ID="GtLabel30" runat="server" Text="--报价行情适配--" ForeColor="Blue"></gtc:gtLabel></td>
|
||||
<td>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkJLBJDHQ" runat="server" Text="记录报价单行情" AutoPostBack = "true" OnCheckedChanged = "chkJLBJDHQ_CheckedChanged"/>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkABJDHQJSBJ" runat="server" Text="按报价单行情计算表价" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel23" runat="server" Text="报价单行情来源:"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxBJDHQLY" runat="server" Width="142px" Tag="Star">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkTZCLHQ" runat="server" Text="调整材料行情" />
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkTZWLHQ" runat="server" Text="调整物料行情" />
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr style="height:5px;"></tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
<gtc:gtLabel ID="GtLabel31" runat="server" Text=""></gtc:gtLabel></td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel19" runat="server" Text="重量关注材料:"></gtc:gtLabel></td>
|
||||
<td align="left" colspan="3">
|
||||
<gtc:gtCheckedDropDownList ID="cbxZLGZCLS" runat="server" Width="425px">
|
||||
</gtc:gtCheckedDropDownList>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left"></td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel38" runat="server" Text="价格模板:"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left" colspan="3">
|
||||
<gtc:gtAttachList ID="altAttachList" runat="server" Width="425px"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
</td>
|
||||
<td align="left" colspan="1">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkJYF" runat="server" Text="计运费" AutoPostBack="true" OnCheckedChanged="chkJYF_OnCheckedChanged" visible="false"/>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkBJHYF" runat="server" Text="报价含运费" visible="false"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel17" runat="server" Text="运费物料:" visible="false"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxYFWLID" runat="server" Width="142px" visible="false">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height:5px;"></tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel4" runat="server">启用日期:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="right">
|
||||
<table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<gtc:gtDateTimeTextBox ID="datQYSJ" runat="server" AutoPostBack="True" OnTextChanged="datTYSJ_TextChanged"></gtc:gtDateTimeTextBox>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox Text="停用" ID="chkTYBZ" runat="server" AutoPostBack="True" OnCheckedChanged="chkTYBZ_CheckedChanged"
|
||||
Width="50px" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel6" runat="server">停用日期:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtDateTimeTextBox ID="datTYSJ" runat="server" AutoPostBack="True" OnTextChanged="datTYSJ_TextChanged"></gtc:gtDateTimeTextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel11" runat="server">备注:</gtc:gtLabel></td>
|
||||
<td align="left" colspan="3">
|
||||
<gtc:gtTextBox ID="txtBZ" runat="server" Tag="None" Width="425px" Rows="1" TextMode="MultiLine">
|
||||
</gtc:gtTextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel18" runat="server" Text="维护人:">
|
||||
</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtTextBox ID="txtWHR" runat="server" ReadOnly="True" Width="72px">
|
||||
</gtc:gtTextBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel5" runat="server" Text="维护时间:">
|
||||
</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtDateTime ID="datWHSJ" runat="server" Enabled="False" Width="142px">
|
||||
</gtc:gtDateTime>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:HiddenField ID="txtWHRID" runat="server" />
|
||||
<asp:HiddenField ID="txtOLDBJFLID" runat="server" />
|
||||
<asp:HiddenField ID="txtBJDYBJTXS" runat="server" />
|
||||
<asp:HiddenField ID="txtBJQSTXS" runat="server" />
|
||||
<asp:HiddenField ID="txtZDXJJCLTXS" runat="server" />
|
||||
<asp:HiddenField ID="txtValue" runat="server" /><%--最低限价公式--%>
|
||||
<asp:HiddenField ID="txtJSJGSValue" runat="server" /><%--结算价公式--%>
|
||||
<asp:HiddenField ID="txtOLD_TBJCLID" runat="server" />
|
||||
<asp:HiddenField ID="txtOLD_LBJCLID" runat="server" />
|
||||
<asp:HiddenField ID="txtDOCGRPID" runat="server" />
|
||||
<asp:HiddenField ID="txtFJS" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ID="cntHidden" ContentPlaceHolderID="cphBrand" runat="server">
|
||||
</asp:Content>
|
||||
+1213
File diff suppressed because it is too large
Load Diff
Generated
+1303
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using System.Web.Script.Serialization;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using GThinking.N_WORKFLOW;
|
||||
using GThinking.N_MISPRO;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
[EntityType(Db = "DBERP", Table = "XLXSBJFLJSLM", IsWf = false, IsWhr = false, WhrPrefix = "", IsAttach = false)]
|
||||
public partial class BJFLJS : EntityObject
|
||||
{
|
||||
public string sBJFLID = "";
|
||||
|
||||
|
||||
public override TSQL SetQuerySql()
|
||||
{
|
||||
TSQL SQL = base.SetQuerySql();
|
||||
SQL.Clear();
|
||||
SQL.Add("select XLXSBJFLJSLM_LMLX,XLXSBJFLJSLM_LMID,XLXSBJFLJSLM_LMID as LMMC, ");
|
||||
SQL.Add("max(case when XLXSBJFLJSLM_JSLX='X' and XLXSBJFLJSLM_YCBZ='Y' then 'Y' else 'N' end) as XJYJS,");
|
||||
SQL.Add("max(case when XLXSBJFLJSLM_JSLX='S' and XLXSBJFLJSLM_YCBZ='Y' then 'Y' else 'N' end) as SJYJS,");
|
||||
SQL.Add("max(case when XLXSBJFLJSLM_JSLX='H' and XLXSBJFLJSLM_YCBZ='Y' then 'Y' else 'N' end) as HJYJS,");
|
||||
SQL.Add("max(case when XLXSBJFLJSLM_JSLX='Q' and XLXSBJFLJSLM_YCBZ='Y' then 'Y' else 'N' end) as QTR ");
|
||||
SQL.Add(" from XLXSBJFLJSLM");
|
||||
SQL.Add(" where XLXSBJFLJSLM_BJFLID=:pBJFLID ");
|
||||
SQL.Add("group by XLXSBJFLJSLM_LMLX, XLXSBJFLJSLM_LMID ");
|
||||
SQL.Add("order by XLXSBJFLJSLM_LMLX, XLXSBJFLJSLM_LMID ");
|
||||
SQL.ParamByName("pBJFLID").Value = sBJFLID;
|
||||
return SQL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="True" Codebehind="BJFLJSLM.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJFLJSLM"
|
||||
MasterPageFile="~/N_MODEL/Page/MasterOperation.Master" Title="按角色隐藏栏目" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterOperation.Master" %>
|
||||
<asp:Content ID="Button" ContentPlaceHolderID="CphButton" runat="server">
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Query" ContentPlaceHolderID="CphQuery" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Form" ContentPlaceHolderID="CphBill" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="GridSetId" ContentPlaceHolderID="CphForm" runat="server">
|
||||
<gtc:gtPageControl ID="Tab" runat="server" AutoPostBack="True" ActiveTabIndex="0">
|
||||
<gtc:gtPagePanel ID="pagSHD" runat="server" HeaderText="按角色隐藏栏目">
|
||||
<ContentTemplate>
|
||||
<asp:UpdatePanel runat="server" ID="UPSHD" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div onresize="initFitDiv(divGDZSY0);if(document.getElementById('divGDZSY0').style.height.replace('px','') <=200)document.getElementById('divGDZSY0').style.height='200px';"
|
||||
style="width: 100%; position: absolute">
|
||||
</div>
|
||||
<div id="divGDZSY0" style="position: relative; overflow: hidden;">
|
||||
<gtc:gtAjaxGridView ID="grdJSLM" runat="server" Height="100%" EnabledToolBar="false" ReadOnly="false">
|
||||
<Columns>
|
||||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJFLJSLM_LMLX" HeaderText="栏目类型" EditType="etString"
|
||||
ReadOnly="true" Width="50px">
|
||||
</gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJFLJSLM_LMID" HeaderText="栏目ID" EditType="etString"
|
||||
Visible="false" Width="200px"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn DataField="LMMC" HeaderText="栏目名称" EditType="etString"
|
||||
ReadOnly="true" Width="200px"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn DataField="XJYJS" HeaderText="询价员" EditType="etCheckBox"
|
||||
Visible="true" Width="100px"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn DataField="SJYJS" HeaderText="审价员" EditType="etCheckBox"
|
||||
Visible="true" Width="100px"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn DataField="HJYJS" HeaderText="核价员" EditType="etCheckBox"
|
||||
Visible="true" Width="100px"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn DataField="QTR" HeaderText="其他人" EditType="etCheckBox"
|
||||
Visible="true" Width="100px"></gtc:gtAjaxGridViewColumn>
|
||||
|
||||
</Columns>
|
||||
</gtc:gtAjaxGridView>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</ContentTemplate>
|
||||
</gtc:gtPagePanel>
|
||||
</gtc:gtPageControl>
|
||||
<script type="text/javascript">initFitDiv(divGDZSY0);if(document.getElementById('divGDZSY0').style.height.replace('px','') <=200)document.getElementById('divGDZSY0').style.height='200px';</script>
|
||||
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,355 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MISPRO;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using GThinking.N_CONTROL;
|
||||
using GThinking.N_PUBLIC;
|
||||
using System.Collections.Generic;
|
||||
using GThinking.N_MISPRO.MISPROAS;
|
||||
using GThinking.N_MISPRO.Caching;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class BJFLJSLM : OperationBase
|
||||
{
|
||||
BJFLJS entity = new BJFLJS();
|
||||
|
||||
#region 页面初始化
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860023;
|
||||
this.UMName = "按角色隐藏栏目";
|
||||
this.CurMaster = Master;
|
||||
this.Tabs = Tab;
|
||||
this.PageWidth = 700;
|
||||
this.PageHeight = 500;
|
||||
AddListSetMap(new ListSet(pagSHD.ID, null, grdJSLM, entity, UPSHD));
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.Master.PnlQuery.GroupingText = "按角色隐藏栏目";
|
||||
this.Master.PnlBill.GroupingText = "按角色隐藏栏目";
|
||||
this.Master.PnlQuery.Visible = false;
|
||||
Master.BtnQueryVisible = false;
|
||||
Master.BtnReportVisible = false;
|
||||
|
||||
InsertBeforeQuery(PageParam.GetRTrimString("BJFLID"));
|
||||
}
|
||||
|
||||
base.InitPage();
|
||||
if (!IsPostBack)
|
||||
{
|
||||
Master_OnQuery();
|
||||
GridDataBind();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region 模板继承事件
|
||||
|
||||
protected override void Master_OnQuery()
|
||||
{
|
||||
entity.sBJFLID = PageParam.GetRTrimString("BJFLID");
|
||||
base.Master_OnQuery();
|
||||
}
|
||||
|
||||
|
||||
protected override void GridDataBind()
|
||||
{
|
||||
base.GridDataBind();
|
||||
}
|
||||
|
||||
protected override bool Master_OnBeforeOK(object sender, EventArgs e)
|
||||
{
|
||||
return base.Master_OnBeforeOK(sender, e);
|
||||
}
|
||||
protected override bool DataLogicValid()
|
||||
{
|
||||
return base.DataLogicValid();
|
||||
}
|
||||
protected override bool Master_OnOK()
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
dberp.BeginTrans();
|
||||
try
|
||||
{
|
||||
TSQL tmpSQL = new TSQL(dberp);
|
||||
|
||||
if (grdJSLM.NewRows.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < grdJSLM.NewRows.Count; i++)
|
||||
{
|
||||
string XJYJS = grdJSLM.GetValueByFieldName("XJYJS", grdJSLM.NewRows[i]).ToString().Trim();
|
||||
string SJYJS = grdJSLM.GetValueByFieldName("SJYJS", grdJSLM.NewRows[i]).ToString().Trim();
|
||||
string HJYJS = grdJSLM.GetValueByFieldName("HJYJS", grdJSLM.NewRows[i]).ToString().Trim();
|
||||
string QTR = grdJSLM.GetValueByFieldName("QTR", grdJSLM.NewRows[i]).ToString().Trim();
|
||||
string sLMID = grdJSLM.GetValueByFieldName("XLXSBJFLJSLM_LMID", grdJSLM.NewRows[i]).ToString().Trim();
|
||||
string sBJFLID = PageParam.GetRTrimString("BJFLID");
|
||||
UpdateByJSLX(dberp, tmpSQL, sLMID, "X", sBJFLID, XJYJS);
|
||||
UpdateByJSLX(dberp, tmpSQL, sLMID, "S", sBJFLID, SJYJS);
|
||||
UpdateByJSLX(dberp, tmpSQL, sLMID, "H", sBJFLID, HJYJS);
|
||||
UpdateByJSLX(dberp, tmpSQL, sLMID, "Q", sBJFLID, QTR);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
//使用脚本给父页面的隐藏控件赋值,调用父页面的控件事件
|
||||
DialogOperationScript dos = new DialogOperationScript(this);
|
||||
////dos.SetOwnerControlValue("ctl00_CPHForm_txtBJCLID", cbxBJCL.SelectedValue.Trim());
|
||||
//dos.ClickOwnerButton(PageParam.GetRTrimString("RefreshCtrlID"));
|
||||
ShowMessage("修改成功!");
|
||||
dos.CloseSelf();
|
||||
dos.Execute();
|
||||
CacheNotify.TableIsUpdated("DBERP", "XLXSBJFLJSLM");
|
||||
dberp.CommitTrans();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
dberp.RollbackTrans();
|
||||
ShowMessage(ex.Message);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
protected override void Grid_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
if (e.Row.Cells[0].Text.Trim().Equals("K") && (e.Row.Cells[2].Text.Trim() != "") && (e.Row.Cells[2].Text.Trim() != " "))
|
||||
{
|
||||
e.Row.Cells[2].Text = GetKZXXMC(e.Row.Cells[2].Text.Trim());
|
||||
}
|
||||
else if ((e.Row.Cells[2].Text.Trim() != "") && (e.Row.Cells[2].Text.Trim() != " "))
|
||||
{
|
||||
e.Row.Cells[2].Text = XLBJDUtils.GetLMMC(e.Row.Cells[2].Text.Trim());
|
||||
}
|
||||
|
||||
if (e.Row.Cells[0].Text.Trim().Equals("B"))
|
||||
{
|
||||
e.Row.Cells[0].Text = "按钮";
|
||||
}
|
||||
else if (e.Row.Cells[0].Text.Trim().Equals("M"))
|
||||
{
|
||||
e.Row.Cells[0].Text = "明细栏目";
|
||||
}
|
||||
else if (e.Row.Cells[0].Text.Trim().Equals("K"))
|
||||
{
|
||||
e.Row.Cells[0].Text = "附加信息";
|
||||
}
|
||||
}
|
||||
|
||||
base.Grid_RowDataBound(sender, e);
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义函数
|
||||
|
||||
//在第一次打开时判断是否需要插入
|
||||
private void InsertBeforeQuery(string sBJFLID)
|
||||
{
|
||||
if (!sBJFLID.Trim().Equals(""))
|
||||
{
|
||||
//更新扩展信息栏目
|
||||
DeleteKZXX(sBJFLID);
|
||||
InsertKZXX(sBJFLID, "X");
|
||||
InsertKZXX(sBJFLID, "S");
|
||||
InsertKZXX(sBJFLID, "H");
|
||||
InsertKZXX(sBJFLID, "Q");
|
||||
//获取字典中不在表中的栏目ID
|
||||
List<string> NotInTableLMID = new List<string>(XLBJDUtils.GetLMID(GetExistedLMID(sBJFLID)));
|
||||
List<string> NotInTableLMIDOthers = new List<string>(XLBJDUtils.GetLMID(GetExistedLMIDByJSLX(sBJFLID,"Q")));
|
||||
if (NotInTableLMIDOthers.Count > 0)
|
||||
{
|
||||
//将不在表中的栏目ID插入数据表
|
||||
foreach (string item in NotInTableLMIDOthers)
|
||||
{
|
||||
InsertByJSLX(item, "Q", sBJFLID);
|
||||
}
|
||||
}
|
||||
if (NotInTableLMID.Count > 0)
|
||||
{
|
||||
//将不在表中的栏目ID插入数据表
|
||||
foreach (string item in NotInTableLMID)
|
||||
{
|
||||
InsertByJSLX(item, "X", sBJFLID);
|
||||
InsertByJSLX(item, "S", sBJFLID);
|
||||
InsertByJSLX(item, "H", sBJFLID);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//根据角色类别插入
|
||||
private void InsertByJSLX(string sLMID, string sJSLX, string sBJFLID)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
dberp.BeginTrans();
|
||||
try
|
||||
{
|
||||
TSQL tmpSQL = new TSQL(dberp);
|
||||
tmpSQL.Clear();
|
||||
tmpSQL.Add("insert into XLXSBJFLJSLM(XLXSBJFLJSLM_BJFLID,XLXSBJFLJSLM_JSLX,XLXSBJFLJSLM_LMLX,XLXSBJFLJSLM_LMID,XLXSBJFLJSLM_YCBZ)");
|
||||
tmpSQL.Add("values(");
|
||||
tmpSQL.Add(string.Format("'{0}',", sBJFLID));
|
||||
tmpSQL.Add(string.Format("'{0}',", sJSLX));
|
||||
//tmpSQL.Add("'X',");
|
||||
tmpSQL.Add(string.Format("'{0}',", XLBJDUtils.GetLMLX(sLMID)));
|
||||
tmpSQL.Add(string.Format("'{0}',", sLMID));
|
||||
tmpSQL.Add("'N'");
|
||||
tmpSQL.Add(")");
|
||||
dberp.ExecSQL(tmpSQL);
|
||||
|
||||
dberp.CommitTrans();
|
||||
}
|
||||
catch
|
||||
{
|
||||
dberp.RollbackTrans();
|
||||
ShowMessage("操作数据集出错,请和系统管理员联系!");
|
||||
}
|
||||
}
|
||||
|
||||
//查询数据表已经存在的栏目ID
|
||||
private List<string> GetExistedLMID(string sBJFLID)
|
||||
{
|
||||
List<string> ExistedLMID = new List<string>();
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sSQL = new TSQL(dberp);
|
||||
sSQL.Clear();
|
||||
sSQL.Add("select XLXSBJFLJSLM_LMID from XLXSBJFLJSLM where XLXSBJFLJSLM_BJFLID=:pFLID");
|
||||
sSQL.Add("order by XLXSBJFLJSLM_LMID");
|
||||
sSQL.ParamByName("pFLID").Value = sBJFLID;
|
||||
DataSet ds = dberp.OpenDataSet(sSQL);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
string sLMID = ds.Tables[0].Rows[i]["XLXSBJFLJSLM_LMID"].ToString().Trim();
|
||||
if (!ExistedLMID.Contains(sLMID))
|
||||
ExistedLMID.Add(sLMID);
|
||||
}
|
||||
|
||||
}
|
||||
return ExistedLMID;
|
||||
}
|
||||
|
||||
//查询数据表已经存在的其他人栏目ID
|
||||
private List<string> GetExistedLMIDByJSLX(string sBJFLID,string sJSLX)
|
||||
{
|
||||
List<string> ExistedLMID = new List<string>();
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sSQL = new TSQL(dberp);
|
||||
sSQL.Clear();
|
||||
sSQL.Add("select XLXSBJFLJSLM_LMID from XLXSBJFLJSLM where XLXSBJFLJSLM_BJFLID=:pFLID and XLXSBJFLJSLM_JSLX=:pJSLX");
|
||||
sSQL.Add("order by XLXSBJFLJSLM_LMID");
|
||||
sSQL.ParamByName("pFLID").Value = sBJFLID;
|
||||
sSQL.ParamByName("pJSLX").Value = sJSLX;
|
||||
DataSet ds = dberp.OpenDataSet(sSQL);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
string sLMID = ds.Tables[0].Rows[i]["XLXSBJFLJSLM_LMID"].ToString().Trim();
|
||||
if (!ExistedLMID.Contains(sLMID))
|
||||
ExistedLMID.Add(sLMID);
|
||||
}
|
||||
|
||||
}
|
||||
return ExistedLMID;
|
||||
}
|
||||
|
||||
//按角色类型更新数据表
|
||||
private void UpdateByJSLX(TDatabase dberp, TSQL tmpSQL, string sLMID, string sJSLX, string sBJFLID, string sYCBZ)
|
||||
{
|
||||
tmpSQL.Clear();
|
||||
tmpSQL.Add(" update XLXSBJFLJSLM set ");
|
||||
tmpSQL.Add(string.Format("XLXSBJFLJSLM_YCBZ='{0}'", sYCBZ));
|
||||
tmpSQL.Add(string.Format(" ,XLXSBJFLJSLM_WHR='{0}'", CurSession.UserName.Trim()));
|
||||
tmpSQL.Add(string.Format(" ,XLXSBJFLJSLM_WHSJ='{0}'", CMISproConvert.ConvertTime(DateTime.Now)));
|
||||
tmpSQL.Add(string.Format(" ,XLXSBJFLJSLM_WHRID='{0}'", CurSession.UserId.Trim()));
|
||||
tmpSQL.Add(string.Format(" where XLXSBJFLJSLM_BJFLID='{0}' and XLXSBJFLJSLM_LMID='{1}' and XLXSBJFLJSLM_JSLX='{2}'", sBJFLID, sLMID, sJSLX));
|
||||
dberp.ExecSQL(tmpSQL);
|
||||
}
|
||||
|
||||
//删除扩展信息
|
||||
private void DeleteKZXX(string sBJFLID)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
dberp.BeginTrans();
|
||||
try
|
||||
{
|
||||
TSQL tmpSQL = new TSQL(dberp);
|
||||
tmpSQL.Clear();
|
||||
tmpSQL.Add("delete from XLXSBJFLJSLM where XLXSBJFLJSLM_BJFLID = :pBJFLID and XLXSBJFLJSLM_LMLX = 'K' ");
|
||||
tmpSQL.Add(" and not exists (select 1 from XLXSBJKZXXSZ where XLXSBJKZXXSZ_DYZD = XLXSBJFLJSLM_LMID ) ");
|
||||
tmpSQL.ParamByName("pBJFLID").Value = sBJFLID;
|
||||
dberp.ExecSQL(tmpSQL);
|
||||
dberp.CommitTrans();
|
||||
}
|
||||
catch
|
||||
{
|
||||
dberp.RollbackTrans();
|
||||
ShowMessage("操作数据集出错,请和系统管理员联系!");
|
||||
}
|
||||
}
|
||||
|
||||
//插入扩展信息
|
||||
private void InsertKZXX(string sBJFLID,string sJSLX)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
dberp.BeginTrans();
|
||||
try
|
||||
{
|
||||
TSQL tmpSQL = new TSQL(dberp);
|
||||
tmpSQL.Clear();
|
||||
tmpSQL.Add("insert into XLXSBJFLJSLM(XLXSBJFLJSLM_BJFLID,XLXSBJFLJSLM_JSLX,XLXSBJFLJSLM_LMLX,XLXSBJFLJSLM_LMID,XLXSBJFLJSLM_YCBZ) ");
|
||||
tmpSQL.Add(" select :pBJFLID,:pJSLX,'K',XLXSBJKZXXSZ_DYZD,'N' ");
|
||||
tmpSQL.Add(" from XLXSBJKZXXSZ ");
|
||||
tmpSQL.Add(" where XLXSBJKZXXSZ_DYZD not in (select XLXSBJFLJSLM_LMID from XLXSBJFLJSLM where XLXSBJFLJSLM_BJFLID = :pBJFLID and XLXSBJFLJSLM_JSLX = :pJSLX)");
|
||||
tmpSQL.ParamByName("pBJFLID").Value = sBJFLID;
|
||||
tmpSQL.ParamByName("pJSLX").Value = sJSLX;
|
||||
dberp.ExecSQL(tmpSQL);
|
||||
dberp.CommitTrans();
|
||||
}
|
||||
catch
|
||||
{
|
||||
dberp.RollbackTrans();
|
||||
ShowMessage("操作数据集出错,请和系统管理员联系!");
|
||||
}
|
||||
}
|
||||
|
||||
//获取扩展信息的栏目名称
|
||||
private string GetKZXXMC(string sDYZD)
|
||||
{
|
||||
string sKZXXMC="";
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL tmpSQL = new TSQL(dberp);
|
||||
tmpSQL.Clear();
|
||||
tmpSQL.Add("select XLXSBJKZXXSZ_MC from XLXSBJKZXXSZ where XLXSBJKZXXSZ_DYZD = :pDYZD");
|
||||
tmpSQL.ParamByName("pDYZD").Value = sDYZD;
|
||||
DataSet ds = dberp.OpenDataSet(tmpSQL);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
sKZXXMC = ds.Tables[0].Rows[0]["XLXSBJKZXXSZ_MC"].ToString().Trim();
|
||||
return sKZXXMC;
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
Generated
+70
@@ -0,0 +1,70 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9174
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJFLJSLM 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJFLJSLM {
|
||||
|
||||
/// <summary>
|
||||
/// Tab 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtPageControl Tab;
|
||||
|
||||
/// <summary>
|
||||
/// pagSHD 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtPagePanel pagSHD;
|
||||
|
||||
/// <summary>
|
||||
/// UPSHD 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdatePanel UPSHD;
|
||||
|
||||
/// <summary>
|
||||
/// grdJSLM 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtAjaxGridView grdJSLM;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterOperation Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterOperation)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using GThinking.N_MISPROAS.Caching;
|
||||
using System.Data;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
internal class BJFLJSLMCache : DbDataCacheBase
|
||||
{
|
||||
public DataTable dtXLXSBJFLJSLM;
|
||||
public DataView dvXLXSBJFLJSLMLBy_BJFLID;
|
||||
|
||||
public BJFLJSLMCache()
|
||||
: base("DBERP", "N_XLXSBJ_XLXSBJFLJSLM", "XLXSBJFLJSLM")
|
||||
{
|
||||
}
|
||||
|
||||
protected override void FillData(string subKey)
|
||||
{
|
||||
TDatabase db = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(db);
|
||||
SQL.Clear();
|
||||
SQL.Add(@"select XLXSBJFLJSLM_BJFLID,XLXSBJFLJSLM_JSLX,XLXSBJFLJSLM_LMLX,XLXSBJFLJSLM_LMID,XLXSBJFLJSLM_YCBZ");
|
||||
SQL.Add(" from XLXSBJFLJSLM ");
|
||||
SQL.Add(" where 1=1 ");
|
||||
SQL.ClassId = "N_XLXSBJ.BJFLJSLMCache";
|
||||
SQL.SqlId = "FillData_1";
|
||||
DataSet ds = db.OpenDataSet(SQL);
|
||||
if (ds.Tables.Count > 0)
|
||||
{
|
||||
dtXLXSBJFLJSLM = ds.Tables[0];
|
||||
dvXLXSBJFLJSLMLBy_BJFLID = new DataView(dtXLXSBJFLJSLM, "", "XLXSBJFLJSLM_BJFLID", DataViewRowState.CurrentRows);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public class BJFLJSLMXX
|
||||
{
|
||||
/// <summary>
|
||||
/// 报价分类ID
|
||||
/// </summary>
|
||||
private string _XLXSBJFLJSLM_BJFLID = string.Empty;
|
||||
|
||||
public string XLXSBJFLJSLM_BJFLID
|
||||
{
|
||||
get { return _XLXSBJFLJSLM_BJFLID; }
|
||||
set { _XLXSBJFLJSLM_BJFLID = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 角色类型
|
||||
/// </summary>
|
||||
private string _XLXSBJFLJSLM_JSLX = string.Empty;
|
||||
|
||||
public string XLXSBJFLJSLM_JSLX
|
||||
{
|
||||
get { return _XLXSBJFLJSLM_JSLX; }
|
||||
set { _XLXSBJFLJSLM_JSLX = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 栏目类型
|
||||
/// </summary>
|
||||
private string _XLXSBJFLJSLM_LMLX = string.Empty;
|
||||
|
||||
public string XLXSBJFLJSLM_LMLX
|
||||
{
|
||||
get { return _XLXSBJFLJSLM_LMLX; }
|
||||
set { _XLXSBJFLJSLM_LMLX = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 栏目ID
|
||||
/// </summary>
|
||||
private string _XLXSBJFLJSLM_LMID = string.Empty;
|
||||
|
||||
public string XLXSBJFLJSLM_LMID
|
||||
{
|
||||
get { return _XLXSBJFLJSLM_LMID; }
|
||||
set { _XLXSBJFLJSLM_LMID = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 隐藏标志
|
||||
/// </summary>
|
||||
private string _XLXSBJFLJSLM_YCBZ = string.Empty;
|
||||
|
||||
public string XLXSBJFLJSLM_YCBZ
|
||||
{
|
||||
get { return _XLXSBJFLJSLM_YCBZ; }
|
||||
set { _XLXSBJFLJSLM_YCBZ = value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
+223
@@ -0,0 +1,223 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
||||
Codebehind="BJFLList.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJFLList" Title="线缆销售报价分类"
|
||||
EnableEventValidation="false" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
<asp:Table ID="tblToolButton" runat="server" CellPadding="0" CellSpacing="0">
|
||||
<asp:TableRow ID="TableRow1" runat="server">
|
||||
<asp:TableCell BorderWidth="0px" BorderStyle="NotSet">
|
||||
<gtc:gtToolButton ID="btnTJYZ" BorderWidth="0px" BorderStyle="NotSet" Width="70px"
|
||||
Height="19px" ButtonType="Button" ShowCaption="True" runat="server" OnClick="btnTJYZ_Click"
|
||||
Caption="调价因子" />
|
||||
</asp:TableCell>
|
||||
<asp:TableCell BorderWidth="0px" BorderStyle="NotSet">
|
||||
<gtc:gtToolButton ID="btnKH" BorderWidth="0px" BorderStyle="NotSet" Width="70px"
|
||||
Height="19px" ButtonType="Button" ShowCaption="True" runat="server" OnClick="btnKH_OnClick"
|
||||
Caption="适用客户" />
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentForm" ContentPlaceHolderID="CPHForm" runat="server">
|
||||
<gtc:gtGridView ID="grdXLXSBJFL" runat="server" CellPadding="2" CellSpacing="2" AutoGenerateColumns="False"
|
||||
AllowPaging="True" EnableViewState="false">
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<Columns>
|
||||
<asp:BoundField DataField="XLXSBJFL_BJFLID" HeaderText="报价分类号">
|
||||
<itemstyle width="120px" />
|
||||
<headerstyle horizontalalign="Center" width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_BJFLMC" HeaderText="报价分类名称">
|
||||
<itemstyle width="220px" />
|
||||
<headerstyle horizontalalign="Center" width="220px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_XSXH" HeaderText="显示序号">
|
||||
<itemstyle width="60px" horizontalalign="Right" />
|
||||
<headerstyle horizontalalign="Center" width="60px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_JGBTJYSS" HeaderText="价格表调价因素">
|
||||
<itemstyle width="220px" />
|
||||
<headerstyle horizontalalign="Center" width="220px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_JGBIDS" HeaderText="适用价格表">
|
||||
<itemstyle width="220px" />
|
||||
<headerstyle horizontalalign="Center" width="220px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_XSQYIDS" HeaderText="适用销售区域">
|
||||
<itemstyle width="220px" />
|
||||
<headerstyle horizontalalign="Center" width="220px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_MRCKC" HeaderText="默认查库存">
|
||||
<itemstyle width="60px" />
|
||||
<headerstyle horizontalalign="Center" width="33px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_CPMLID" HeaderText="产品目录">
|
||||
<itemstyle width="120px" />
|
||||
<headerstyle horizontalalign="Center" width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_SDJGBCLHQFW" HeaderText="锁定价格表材料行情范围">
|
||||
<itemstyle width="126px" />
|
||||
<headerstyle horizontalalign="Center" width="126px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_XSJGBJJ" HeaderText="显示基价">
|
||||
<itemstyle width="60px" />
|
||||
<headerstyle horizontalalign="Center" width="33px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_XSJGBBJJCE" HeaderText="显示表价价差额">
|
||||
<itemstyle width="80px" />
|
||||
<headerstyle horizontalalign="Center" width="33px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_XSTZCPBJ" HeaderText="调整报价">
|
||||
<itemstyle width="120px" />
|
||||
<headerstyle horizontalalign="Center" width="33px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_XSTZBJJE" HeaderText="调整金额">
|
||||
<itemstyle width="120px" />
|
||||
<headerstyle horizontalalign="Center" width="33px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_XTCPBJYZ" HeaderText="相同产品报价一致">
|
||||
<itemstyle width="100px" />
|
||||
<headerstyle horizontalalign="Center" width="33px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_TZCLHQ" HeaderText="调整材料行情">
|
||||
<itemstyle width="80px" />
|
||||
<headerstyle horizontalalign="Center" width="33px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_TZJGBBJ" HeaderText="调整表价">
|
||||
<itemstyle width="80px" />
|
||||
<headerstyle horizontalalign="Center" width="80px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_BJJCLLX" HeaderText="表价价差率公式">
|
||||
<itemstyle width="220px" />
|
||||
<headerstyle horizontalalign="Center" width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_LJJCLLX" HeaderText="料价价差率公式">
|
||||
<itemstyle width="220px" />
|
||||
<headerstyle horizontalalign="Center" width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_BJDHQLY" HeaderText="报价单行情来源">
|
||||
<itemstyle width="120px" />
|
||||
<headerstyle horizontalalign="Center" width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_BJCPFZJS" HeaderText="报价产品辅助检索">
|
||||
<itemstyle width="120px" />
|
||||
<headerstyle horizontalalign="Center" width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_XHABJCSDP" HeaderText="型号按报价次数倒排">
|
||||
<itemstyle width="120px" />
|
||||
<headerstyle horizontalalign="Center" width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_JYF" HeaderText="计运费">
|
||||
<itemstyle width="60px" />
|
||||
<headerstyle horizontalalign="Center" width="33px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_QYRQ" HeaderText="启用日期">
|
||||
<itemstyle width="72px" />
|
||||
<headerstyle horizontalalign="Center" width="72px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_TYBZ" HeaderText="停用">
|
||||
<itemstyle width="33px" />
|
||||
<headerstyle horizontalalign="Center" width="33px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_TYRQ" HeaderText="停用日期">
|
||||
<itemstyle width="72px" />
|
||||
<headerstyle horizontalalign="Center" width="72px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_BZ" HeaderText="备注">
|
||||
<itemstyle width="250px" />
|
||||
<headerstyle horizontalalign="Center" width="250px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_WHR" HeaderText="维护人">
|
||||
<itemstyle width="72px" />
|
||||
<headerstyle horizontalalign="Center" width="72px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFL_WHSJ" HeaderText="维护时间">
|
||||
<itemstyle width="125px" />
|
||||
<headerstyle horizontalalign="Center" width="125px" />
|
||||
</asp:BoundField>
|
||||
</Columns>
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_BJFLID" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_BJFLMC" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_XSXH" ShowHint="True" EditType="etnumber" NumberDecimalPlace="0">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_JGBTJYSS" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_JGBIDS" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_XSQYIDS" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_MRCKC" EditType="etCheckBox">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_CPMLID" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_SDJGBCLHQFW" EditType="etCheckBox">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_XSJGBJJ" EditType="etCheckBox">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_XSJGBBJJCE" EditType="etCheckBox">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_BJJCLLX" ShowHint="True" EditType="etDropDown">
|
||||
<DropDownItems>
|
||||
<asp:ListItem Value="1">(调整后报价金额-表价金额)/调整后报价金额*100</asp:ListItem>
|
||||
<asp:ListItem Value="2">(表价金额-调整后报价金额)/表价金额*100</asp:ListItem>
|
||||
<asp:ListItem Value="3">表价金额/调整后报价金额*100</asp:ListItem>
|
||||
<asp:ListItem Value="4">(调整后报价金额-表价金额)/表价金额*100</asp:ListItem>
|
||||
</DropDownItems>
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_LJJCLLX" ShowHint="True" EditType="etDropDown">
|
||||
<DropDownItems>
|
||||
<asp:ListItem Value="1">(调整后报价金额-价格表行情料价金额)/调整后报价金额*100</asp:ListItem>
|
||||
<asp:ListItem Value="2">(调整后报价金额-报价单行情料价金额)/调整后报价金额*100</asp:ListItem>
|
||||
<asp:ListItem Value="3">(调整后报价金额-报价单行情料价金额)/报价单行情料价金额*100</asp:ListItem>
|
||||
</DropDownItems>
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_XSTZCPBJ" EditType="etCheckBox">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_XSTZBJJE" EditType="etCheckBox">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_XTCPBJYZ" EditType="etCheckBox">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_TZCLHQ" EditType="etCheckBox">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_TZJGBBJ" EditType="etDropDown">
|
||||
<DropDownItems>
|
||||
<asp:ListItem Value="1">不允许调整表价</asp:ListItem>
|
||||
<asp:ListItem Value="2">允许调整表价</asp:ListItem>
|
||||
<asp:ListItem Value="3">仅允许调整无清单产品的表价</asp:ListItem>
|
||||
</DropDownItems>
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_BJDHQLY" ShowHint="True" EditType="etDropDown">
|
||||
<DropDownItems>
|
||||
<asp:ListItem Value="1">价格表行情</asp:ListItem>
|
||||
<asp:ListItem Value="2">报价日行情</asp:ListItem>
|
||||
</DropDownItems>
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_BJCPFZJS" ShowHint="True" EditType="etDropDown">
|
||||
<DropDownItems>
|
||||
<asp:ListItem Value="1">先材料清单再价格表检索</asp:ListItem>
|
||||
<asp:ListItem Value="2">先价格表再材料清单检索</asp:ListItem>
|
||||
</DropDownItems>
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_XHABJCSDP" EditType="etCheckBox">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_JYF" EditType="etCheckBox">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_QYRQ" EditType="etDateTime" DateTimeEditKins="dtDate">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_TYBZ" EditType="etCheckBox">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_TYRQ" EditType="etDateTime" DateTimeEditKins="dtDate">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_BZ" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_WHR">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFL_WHSJ" EditType="etDateTime" DateTimeEditKins="dtDateTime">
|
||||
</gtc:gtGridView_Column>
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,261 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using GThinking.N_MISPRO;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using System.Text;
|
||||
using GThinking.N_CONTROL;
|
||||
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class BJFLList : SingleGridBase
|
||||
{
|
||||
XLXSBJFL entity = new XLXSBJFL();
|
||||
|
||||
#region Page类事件继承
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860023;
|
||||
this.UMName = "线缆销售报价分类";
|
||||
this.CurMaster = Master;
|
||||
this.ModuleGV = grdXLXSBJFL;
|
||||
this.CurEntity = entity;
|
||||
this.sURLTarget = "BJFLInfo.aspx";
|
||||
this.PageHeight = 600;
|
||||
this.PageWidth = 750;
|
||||
|
||||
base.DataKeyNames = new string[] { "XLXSBJFL_BJFLID" };
|
||||
this.Master.EnableQueryBtn = false;
|
||||
|
||||
base.InitPage();
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
Master_OnStandardQuery(null, null);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 模板事件
|
||||
protected override void Master_OnStandardQuery(object sender, EventArgs e)
|
||||
{
|
||||
entity.EntityTable.QuerySelSql = GetSql();
|
||||
base.Master_OnStandardQuery(sender, e);
|
||||
entity.GridDataBind(grdXLXSBJFL,tSession);
|
||||
}
|
||||
|
||||
protected override void moduleGV_PageIndexChanging(object sender, GridViewPageEventArgs e)
|
||||
{
|
||||
entity.EntityTable.QuerySelSql = GetSql();
|
||||
base.moduleGV_PageIndexChanging(sender, e);
|
||||
grdXLXSBJFL.SelectedIndex = -1;
|
||||
}
|
||||
|
||||
protected override void moduleGV_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
if ((e.Row.Cells[3].Text.Trim() != "") && (e.Row.Cells[3].Text.Trim() != " "))
|
||||
{
|
||||
e.Row.Cells[3].Text = GetJGBTJYSS(e.Row.Cells[3].Text.Trim());
|
||||
}
|
||||
if ((e.Row.Cells[4].Text.Trim() != "") && (e.Row.Cells[4].Text.Trim() != " "))
|
||||
{
|
||||
e.Row.Cells[4].Text = GetJGBXX(e.Row.Cells[4].Text.Trim());
|
||||
}
|
||||
if ((e.Row.Cells[5].Text.Trim() != "") && (e.Row.Cells[5].Text.Trim() != " "))
|
||||
{
|
||||
e.Row.Cells[5].Text = GetXSQYXX(e.Row.Cells[5].Text.Trim());
|
||||
}
|
||||
LinkPageParam.AddString("XLXSBJFL_BJFLID", this.grdXLXSBJFL.DataKeys[e.Row.RowIndex]["XLXSBJFL_BJFLID"].ToString().Trim());
|
||||
}
|
||||
base.moduleGV_RowDataBound(sender, e);
|
||||
}
|
||||
|
||||
protected override void BeforeDelete(TDatabase db, ref bool ActionIsDone)
|
||||
{
|
||||
entity.Param.Add("XLXSBJFL_BJFLID", this.grdXLXSBJFL.DataKeys[grdXLXSBJFL.SelectedIndex]["XLXSBJFL_BJFLID"].ToString().Trim());
|
||||
base.BeforeDelete(db, ref ActionIsDone);
|
||||
}
|
||||
|
||||
protected override bool Master_BeforeDeleteAction(object sender, EventArgs e)
|
||||
{
|
||||
if (!base.Master_BeforeDeleteAction(sender, e))
|
||||
{ return false; }
|
||||
|
||||
if (grdXLXSBJFL.DataKeys[grdXLXSBJFL.SelectedIndex]["XLXSBJFL_BJFLID"].ToString().Trim().Equals("--------"))
|
||||
{
|
||||
ShowMessage("演示分类不允许删除!");
|
||||
return false;
|
||||
}
|
||||
|
||||
string sSQL = string.Format("select 1 from XLXSBJD where XLXSBJD_BJFLID = '{0}'",
|
||||
grdXLXSBJFL.DataKeys[grdXLXSBJFL.SelectedIndex]["XLXSBJFL_BJFLID"].ToString().Trim());
|
||||
if (CMISproDataBase.ExistsRecord("DBERP", sSQL))
|
||||
{
|
||||
ShowMessage("已被报价单使用,不允许删除!");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void AfterDelete(TDatabase db, ref bool ActionIsDone)
|
||||
{
|
||||
base.AfterDelete(db, ref ActionIsDone);
|
||||
db.ExecSQL(string.Format("delete from XLXSBJFLKH where XLXSBJFLKH_BJFLID='{0}'", grdXLXSBJFL.DataKeys[grdXLXSBJFL.SelectedIndex]["XLXSBJFL_BJFLID"].ToString().Trim()));
|
||||
db.ExecSQL(string.Format("delete from XLXSBJFLYZ where XLXSBJFLYZ_BJFLID='{0}'", grdXLXSBJFL.DataKeys[grdXLXSBJFL.SelectedIndex]["XLXSBJFL_BJFLID"].ToString().Trim()));
|
||||
db.ExecSQL(string.Format("delete from XLXSBJFLJSLM where XLXSBJFLJSLM_BJFLID='{0}'", grdXLXSBJFL.DataKeys[grdXLXSBJFL.SelectedIndex]["XLXSBJFL_BJFLID"].ToString().Trim()));
|
||||
}
|
||||
|
||||
protected override bool Master_AfterDeleteAction(object sender, EventArgs e)
|
||||
{
|
||||
if (!base.Master_AfterDeleteAction(sender, e))
|
||||
{ return false; }
|
||||
entity.EntityTable.QuerySelSql = GetSql();
|
||||
entity.GridDataBind(grdXLXSBJFL, tSession);
|
||||
grdXLXSBJFL.SelectedIndex = -1;
|
||||
return true;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义函数
|
||||
|
||||
private string GetSql()
|
||||
{
|
||||
StringBuilder strSQL = new StringBuilder();
|
||||
strSQL.AppendLine(" select XLXSBJFL_BJFLID,XLXSBJFL_BJFLMC,XLXSBJFL_XSXH,XLXSBJFL_JGBTJYSS,XLXSBJFL_JGBIDS,XLXSBJFL_XSQYIDS,XLXSBJFL_QYRQ,isnull(XLXSBJFL_TYBZ,'N') AS XLXSBJFL_TYBZ,XLXSBJFL_TYRQ,");
|
||||
strSQL.AppendLine(" XLXSBJFL_BZ, XLXSBJFL_WHR,XLXSBJFL_WHRID,XLXSBJFL_WHSJ,XLXSBJFL_MRCKC, ");
|
||||
strSQL.AppendLine(" RTRIM(XLXSBJFL_CPMLID) ||'|'|| RTRIM(XLXSCPML_CPMLMC) AS XLXSBJFL_CPMLID,XLXSBJFL_SDJGBCLHQFW,XLXSBJFL_XSJGBJJ,XLXSBJFL_XSJGBBJJCE,XLXSBJFL_BJJCLLX, ");
|
||||
strSQL.AppendLine(" XLXSBJFL_TZCLHQ,XLXSBJFL_TZJGBBJ, XLXSBJFL_BJDHQLY,XLXSBJFL_LJJCLLX, ");
|
||||
strSQL.AppendLine(" XLXSBJFL_XSTZCPBJ, XLXSBJFL_ZDXJGS, XLXSBJFL_XSTZBJJE,XLXSBJFL_XTCPBJYZ,XLXSBJFL_BJCPFZJS,XLXSBJFL_XHABJCSDP,XLXSBJFL_JYF,XLXSBJFL_YFWLID,XLXSBJFL_BJHYF ");
|
||||
strSQL.AppendLine(" from XLXSBJFL ");
|
||||
strSQL.AppendLine(" left join XLXSCPML on XLXSCPML_CPMLID = XLXSBJFL_CPMLID ");
|
||||
strSQL.AppendLine(" where 1=1 order by XLXSBJFL_XSXH,XLXSBJFL_BJFLID ");
|
||||
return strSQL.ToString();
|
||||
}
|
||||
|
||||
private string GetJGBTJYSS(string sJGBTJYSList)
|
||||
{
|
||||
string[] sJGBTJYSs = sJGBTJYSList.Trim().Split(',');
|
||||
string Result = "";
|
||||
for (int i = 0; i < sJGBTJYSs.Length; i++)
|
||||
{
|
||||
if (sJGBTJYSs[i].Trim().Equals("1"))
|
||||
{
|
||||
Result += "1|表价(出厂价)=基价(材料价)&调价,";
|
||||
}
|
||||
else if (sJGBTJYSs[i].Trim().Equals("2"))
|
||||
{
|
||||
Result += "2|表价(区域价)=基价(出厂价)&调价,";
|
||||
}
|
||||
else if (sJGBTJYSs[i].Trim().Equals("3"))
|
||||
{
|
||||
Result += "3|表价(现行价)=基价(出厂价+材料价价差)&调价,";
|
||||
}
|
||||
}
|
||||
return Result.TrimEnd(',');
|
||||
}
|
||||
|
||||
private string GetXSQYXX(string sXSQYIDList)
|
||||
{
|
||||
string[] sXSQYIDs = sXSQYIDList.Trim().Split(',');
|
||||
string Result = "";
|
||||
for (int i = 0; i < sXSQYIDs.Length; i++)
|
||||
{
|
||||
Result += sXSQYIDs[i].Trim() + "|" + GetXSQYMC(sXSQYIDs[i].Trim()) + ",";
|
||||
}
|
||||
return Result.TrimEnd(',');
|
||||
}
|
||||
|
||||
private string GetXSQYMC(string sXSQYID)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sql = new TSQL(dberp);
|
||||
sql.Add("select XSQY_XSQYMC from XSQY where XSQY_XSQYID=:pXSQYID ");
|
||||
sql.ParamByName("pXSQYID").Value = sXSQYID.Trim();
|
||||
DataSet ds = dberp.OpenDataSet(sql);
|
||||
string sXSQYMC = "";
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
sXSQYMC = ds.Tables[0].Rows[0][0].ToString().Trim();
|
||||
}
|
||||
return sXSQYMC;
|
||||
}
|
||||
|
||||
private string GetJGBXX(string sJGBIDList)
|
||||
{
|
||||
string[] sJGBIDs = sJGBIDList.Trim().Split(',');
|
||||
string Result = "";
|
||||
for (int i = 0; i < sJGBIDs.Length; i++)
|
||||
{
|
||||
if (sJGBIDs[i].Trim().Equals("CUR"))
|
||||
Result += "CUR|当前有效价格表,";
|
||||
else
|
||||
Result += sJGBIDs[i].Trim() + "|" + GetJGBMC(sJGBIDs[i].Trim()) + ",";
|
||||
}
|
||||
return Result.TrimEnd(',');
|
||||
}
|
||||
|
||||
private string GetJGBMC(string sJGBID)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sql = new TSQL(dberp);
|
||||
sql.Add("select XLXSJGB_JGBMC from XLXSJGB where XLXSJGB_MXBH='JGB' and XLXSJGB_JGBID=:pJGBID ");
|
||||
sql.ParamByName("pJGBID").Value = sJGBID.Trim();
|
||||
DataSet ds = dberp.OpenDataSet(sql);
|
||||
string sJGBMC = "";
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
sJGBMC = ds.Tables[0].Rows[0][0].ToString().Trim();
|
||||
}
|
||||
return sJGBMC;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 控件事件
|
||||
protected void btnKH_OnClick(object sender, EventArgs e)
|
||||
{
|
||||
if (grdXLXSBJFL.SelectedIndex < 0)
|
||||
{
|
||||
ShowMessage("请选择处理记录!");
|
||||
return;
|
||||
}
|
||||
string sBJFLID = grdXLXSBJFL.DataKeys[grdXLXSBJFL.SelectedIndex]["XLXSBJFL_BJFLID"].ToString().Trim();
|
||||
|
||||
TPageParams tpp = new TPageParams();
|
||||
tpp.UrlPath = "BJFL_KHList.aspx";
|
||||
tpp.CallAction = TPageCallAction.pcaBrowse;
|
||||
tpp.AddString("BJFLID", sBJFLID);
|
||||
OpenDialog(tpp);
|
||||
}
|
||||
|
||||
protected void btnTJYZ_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (grdXLXSBJFL.SelectedIndex < 0)
|
||||
{
|
||||
ShowMessage("请选择处理记录!");
|
||||
return;
|
||||
}
|
||||
|
||||
string sBJFLID = grdXLXSBJFL.DataKeys[grdXLXSBJFL.SelectedIndex]["XLXSBJFL_BJFLID"].ToString().Trim();
|
||||
|
||||
TPageParams param = new TPageParams();
|
||||
param.UrlPath = "BJFL_TJYZList.aspx";
|
||||
param.AddString("BJFLID", sBJFLID);
|
||||
OpenDialog(param);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+79
@@ -0,0 +1,79 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9174
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJFLList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJFLList {
|
||||
|
||||
/// <summary>
|
||||
/// tblToolButton 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table tblToolButton;
|
||||
|
||||
/// <summary>
|
||||
/// TableRow1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TableRow TableRow1;
|
||||
|
||||
/// <summary>
|
||||
/// btnTJYZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnTJYZ;
|
||||
|
||||
/// <summary>
|
||||
/// btnKH 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnKH;
|
||||
|
||||
/// <summary>
|
||||
/// grdXLXSBJFL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView grdXLXSBJFL;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleGrid Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleGrid)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using GThinking.N_MISPROAS.Caching;
|
||||
using System.Data;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
internal class BJFLYZCache : DbDataCacheBase
|
||||
{
|
||||
public DataTable dtXLXSBJFLYZ;
|
||||
public DataView dvXLXSBJFLYZBy_BJFLID;
|
||||
|
||||
public BJFLYZCache()
|
||||
: base("DBERP", "N_XLXSBJ_XLXSBJFLYZ", "XLXSBJFLYZ")
|
||||
{
|
||||
}
|
||||
|
||||
protected override void FillData(string subKey)
|
||||
{
|
||||
TDatabase db = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(db);
|
||||
SQL.Clear();
|
||||
SQL.Add(@"select XLXSBJFLYZ_BJFLID,XLXSBJFLYZ_YZID ");
|
||||
SQL.Add(" from XLXSBJFLYZ ");
|
||||
SQL.Add(" where 1=1 ");
|
||||
SQL.ClassId = "N_XLXSBJ.BJFLYZCache";
|
||||
SQL.SqlId = "FillData_1";
|
||||
DataSet ds = db.OpenDataSet(SQL);
|
||||
if (ds.Tables.Count > 0)
|
||||
{
|
||||
dtXLXSBJFLYZ = ds.Tables[0];
|
||||
dvXLXSBJFLYZBy_BJFLID = new DataView(dtXLXSBJFLYZ, "", "XLXSBJFLYZ_BJFLID", DataViewRowState.CurrentRows);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public class XLXSBJFLYZXX
|
||||
{
|
||||
#region ³ÉÔ±±äÁ¿
|
||||
|
||||
/// <summary>
|
||||
/// ±¨¼Û·ÖÀàID
|
||||
/// </summary>
|
||||
private string _XLXSBJFLYZ_BJFLID = string.Empty;
|
||||
|
||||
public string XLXSBJFLYZ_BJFLID
|
||||
{
|
||||
get { return _XLXSBJFLYZ_BJFLID; }
|
||||
set { _XLXSBJFLYZ_BJFLID = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Òò×ÓID
|
||||
/// </summary>
|
||||
private string _XLXSBJFLYZ_YZID = string.Empty;
|
||||
|
||||
public string XLXSBJFLYZ_YZID
|
||||
{
|
||||
get { return _XLXSBJFLYZ_YZID; }
|
||||
set { _XLXSBJFLYZ_YZID = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSBJCL", Umid = 100860023, IsWorkFlow = false, IsAttach = false, UseWhr = false)]
|
||||
|
||||
public class BJFL_BJRHQCL : EntityManager
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
||||
Codebehind="BJFL_BJRHQCLList.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJFL_BJRHQCLList" Title="报价日行情材料" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||
<gtc:gtGridView ID="ContentGrid" runat="server" AutoGenerateColumns="False" EnableViewState="false" OnRowDoubleClick="ContentGrid_RowDoubleClick">
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<Columns>
|
||||
<asp:BoundField HeaderText="材料编码" DataField="XLXSBJCL_BJCLID">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="材料名称" DataField="XLXSBJCL_BJCLMC">
|
||||
<itemstyle width="200px"></itemstyle>
|
||||
<headerstyle width="200px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="报价日行情" DataField="BJRQHQ">
|
||||
<itemstyle width="60px"></itemstyle>
|
||||
<headerstyle width="60px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="维护人" DataField="WHR">
|
||||
<itemstyle width="72px"></itemstyle>
|
||||
<headerstyle width="72px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="维护时间" DataField="WHSJ">
|
||||
<itemstyle width="125px"></itemstyle>
|
||||
<headerstyle width="125px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
</Columns>
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJCL_BJCLID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJCL_BJCLMC" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="BJRQHQ" EditType="etCheckBox" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WHR" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WHSJ" EditType="etDateTime" DateTimeEditKins="dtDateTime">
|
||||
</gtc:gtGridView_Column>
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentSync" ContentPlaceHolderID="CPHSync" runat="server">
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,120 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using GThinking.N_MISPRO;
|
||||
using GThinking.N_CONTROL;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class BJFL_BJRHQCLList : SingleGridBase
|
||||
{
|
||||
BJFL_BJRHQCL entity = new BJFL_BJRHQCL();
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860023;
|
||||
this.UMName = "线缆销售报价分类";
|
||||
this.CurMaster = Master;
|
||||
this.ModuleGV = ContentGrid;
|
||||
this.CurEntity = entity;
|
||||
this.PageHeight = 600;
|
||||
this.PageWidth = 750;
|
||||
base.DataKeyNames = new string[] { "XLXSBJCL_BJCLID" };
|
||||
Master.EnableNewBtn = false;
|
||||
Master.EnableCopyBtn = false;
|
||||
Master.EnableViewBtn = false;
|
||||
Master.EnableEditBtn = false;
|
||||
Master.EnableDeleteBtn = false;
|
||||
Master.EnableQueryBtn = false;
|
||||
|
||||
base.InitPage();
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
Master_OnStandardQuery(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
#region 模板继承事件
|
||||
|
||||
protected override void Master_OnStandardQuery(object sender, EventArgs e)
|
||||
{
|
||||
base.Master_OnStandardQuery(sender, e);
|
||||
entity.EntityTable.QuerySelSql = GetQuerySql();
|
||||
entity.GridDataBind(ContentGrid, tSession);
|
||||
}
|
||||
|
||||
protected override void moduleGV_PageIndexChanging(object sender, GridViewPageEventArgs e)
|
||||
{
|
||||
entity.EntityTable.QuerySelSql = GetQuerySql();
|
||||
ContentGrid.SelectedIndex = -1;
|
||||
base.moduleGV_PageIndexChanging(sender, e);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义方法
|
||||
|
||||
private string GetQuerySql()
|
||||
{
|
||||
string sSQL = " select XLXSBJCL_BJCLID,XLXSBJCL_BJCLMC, "
|
||||
+ " case when XLXSBJFLBJRHQCL_BJCLID is null then 'N' else 'Y' end as BJRQHQ, "
|
||||
+ " case when XLXSBJFLBJRHQCL_BJCLID is null then XLXSBJCL_WHRID else XLXSBJFLBJRHQCL_WHRID end as WHRID, "
|
||||
+ " case when XLXSBJFLBJRHQCL_BJCLID is null then XLXSBJCL_WHR else XLXSBJFLBJRHQCL_WHR end as WHR,"
|
||||
+ " case when XLXSBJFLBJRHQCL_BJCLID is null then XLXSBJCL_WHSJ else XLXSBJFLBJRHQCL_WHSJ end as WHSJ "
|
||||
+ " from XLXSBJCL "
|
||||
+ " left join XLXSBJFLBJRHQCL on XLXSBJFLBJRHQCL_BJFLID=:pBJFLID and XLXSBJFLBJRHQCL_BJCLID=XLXSBJCL_BJCLID "
|
||||
+ " where XLXSBJCL_BJRHQ='Y' "
|
||||
+ " order by XLXSBJCL_BJCLID ";
|
||||
entity.Param.Add("pBJFLID", PageParam.GetRTrimString("BJFLID"));
|
||||
return sSQL;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 控件事件
|
||||
|
||||
protected void ContentGrid_RowDoubleClick(object sender, GThinking.N_CONTROL.RowDoubleClickEventArgs e)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
string sBJFLID = PageParam.GetRTrimString("BJFLID");
|
||||
string sBJCLID = ContentGrid.DataKeys[ContentGrid.SelectedIndex]["XLXSBJCL_BJCLID"].ToString().Trim();
|
||||
if (CMISproDataBase.ExistsRecord("DBERP", string.Format("select 1 from XLXSBJFLBJRHQCL where XLXSBJFLBJRHQCL_BJFLID='{0}' and XLXSBJFLBJRHQCL_BJCLID='{1}'",
|
||||
sBJFLID, sBJCLID)))
|
||||
{
|
||||
dberp.ExecSQL(string.Format("delete from XLXSBJFLBJRHQCL where XLXSBJFLBJRHQCL_BJFLID='{0}' and XLXSBJFLBJRHQCL_BJCLID='{1}'", sBJFLID, sBJCLID));
|
||||
}
|
||||
else
|
||||
{
|
||||
if (CMISproDataBase.ExistsRecord("DBERP", string.Format("select 1 from XLXSBJFL where XLXSBJFL_BJFLID='{0}' and XLXSBJFL_JGBTJYSS='3'", sBJFLID)))
|
||||
{
|
||||
ShowMessage("价格表调价因素“3|表价(现行价)=基价(出厂价+材料价价差)&调价”暂不支持设置报价日行情材料!");
|
||||
return;
|
||||
}
|
||||
TSQL sql = new TSQL(dberp);
|
||||
sql.Add("insert into XLXSBJFLBJRHQCL(XLXSBJFLBJRHQCL_BJFLID,XLXSBJFLBJRHQCL_BJCLID,XLXSBJFLBJRHQCL_WHRID,XLXSBJFLBJRHQCL_WHR,XLXSBJFLBJRHQCL_WHSJ)");
|
||||
sql.Add(" values(:XLXSBJFLBJRHQCL_BJFLID,:XLXSBJFLBJRHQCL_BJCLID,:XLXSBJFLBJRHQCL_WHRID,:XLXSBJFLBJRHQCL_WHR,:XLXSBJFLBJRHQCL_WHSJ)");
|
||||
sql.ParamByName("XLXSBJFLBJRHQCL_BJFLID").Value = sBJFLID;
|
||||
sql.ParamByName("XLXSBJFLBJRHQCL_BJCLID").Value = sBJCLID;
|
||||
sql.ParamByName("XLXSBJFLBJRHQCL_WHR").Value = tSession.UserName;
|
||||
sql.ParamByName("XLXSBJFLBJRHQCL_WHRID").Value = tSession.UserId;
|
||||
sql.ParamByName("XLXSBJFLBJRHQCL_WHSJ").Value = DateTime.Now;
|
||||
dberp.ExecSQL(sql);
|
||||
}
|
||||
moduleGV_PageIndexChanging(null, null);
|
||||
FormAreaUpdate();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+43
@@ -0,0 +1,43 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9148
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJFL_BJRHQCLList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJFL_BJRHQCLList {
|
||||
|
||||
/// <summary>
|
||||
/// ContentGrid 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView ContentGrid;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleGrid Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleGrid)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSBJFLKH", Umid = 100860023, IsWorkFlow = false, IsAttach = false,
|
||||
|
||||
QuerySelSql = "select XLXSBJFLKH_BJFLID, XLXSBJFLKH_KHID, XLXSBJFLKH_BZ, "
|
||||
+ " XLXSBJFLKH_WHR, XLXSBJFLKH_WHRID,XLXSBJFLKH_WHSJ from XLXSBJFLKH where 1=1 order by XLXSBJFLKH_BJFLID,XLXSBJFLKH_KHID ",
|
||||
|
||||
EntitySelSql = "select XLXSBJFLKH_BJFLID, XLXSBJFLKH_KHID, XLXSBJFLKH_KHID as old_XLXSBJFLKH_KHID, XLXSBJFLKH_BZ,KH_MC, "
|
||||
+ " XLXSBJFLKH_WHR, XLXSBJFLKH_WHRID,XLXSBJFLKH_WHSJ from XLXSBJFLKH "
|
||||
+ " LEFT JOIN KH ON KH_KHID = XLXSBJFLKH_KHID"
|
||||
+ " where XLXSBJFLKH_BJFLID=:XLXSBJFLKH_BJFLID and XLXSBJFLKH_KHID=:XLXSBJFLKH_KHID ",
|
||||
|
||||
UpdateSql = "update XLXSBJFLKH set XLXSBJFLKH_BJFLID=:XLXSBJFLKH_BJFLID, XLXSBJFLKH_KHID=:XLXSBJFLKH_KHID, XLXSBJFLKH_BZ=:XLXSBJFLKH_BZ, "
|
||||
+ " XLXSBJFLKH_WHR= :XLXSBJFLKH_WHR, XLXSBJFLKH_WHRID= :XLXSBJFLKH_WHRID, XLXSBJFLKH_WHSJ= :XLXSBJFLKH_WHSJ where XLXSBJFLKH_BJFLID=:XLXSBJFLKH_BJFLID and XLXSBJFLKH_KHID=:old_XLXSBJFLKH_KHID ",
|
||||
|
||||
InsertSql = "insert into XLXSBJFLKH(XLXSBJFLKH_BJFLID, XLXSBJFLKH_KHID, XLXSBJFLKH_BZ, "
|
||||
+ " XLXSBJFLKH_WHR, XLXSBJFLKH_WHRID,XLXSBJFLKH_WHSJ) "
|
||||
+ "values(:XLXSBJFLKH_BJFLID, :XLXSBJFLKH_KHID, :XLXSBJFLKH_BZ, "
|
||||
+ " :XLXSBJFLKH_WHR, :XLXSBJFLKH_WHRID, :XLXSBJFLKH_WHSJ) ",
|
||||
|
||||
DeleteSql = "delete from XLXSBJFLKH where XLXSBJFLKH_BJFLID=:XLXSBJFLKH_BJFLID and XLXSBJFLKH_KHID=:XLXSBJFLKH_KHID ")]
|
||||
|
||||
public class BJFL_KH : EntityManager
|
||||
{
|
||||
#region 字段属性
|
||||
//关键字
|
||||
private string _XLXSBJFLKH_BJFLID;
|
||||
[ColumnMap(DbField = "XLXSBJFLKH_BJFLID", CtrlName = "txtBJDFLID", Type = FieldType.HiddenField, DbTitle = "报价分类ID", DefaultValue = "",
|
||||
IsAllowNull = false, IsKey = true, Length = 8)]
|
||||
public string XLXSBJFLKH_BJFLID
|
||||
{
|
||||
get { return _XLXSBJFLKH_BJFLID; }
|
||||
set { _XLXSBJFLKH_BJFLID = value; }
|
||||
}
|
||||
|
||||
//关键字
|
||||
private string _XLXSBJFLKH_KHID;
|
||||
[ColumnMap(DbField = "XLXSBJFLKH_KHID", CtrlName = "txtKHID", Type = FieldType.C, DbTitle = "客户ID", DefaultValue = "",
|
||||
IsAllowNull = false, IsKey = true, Length = 8)]
|
||||
public string XLXSBJFLKH_KHID
|
||||
{
|
||||
get { return _XLXSBJFLKH_KHID; }
|
||||
set { _XLXSBJFLKH_KHID = value; }
|
||||
}
|
||||
|
||||
private string _old_XLXSBJFLKH_KHID;
|
||||
[ColumnMap(DbField = "old_XLXSBJFLKH_KHID", CtrlName = "txtOLDKHID", Type = FieldType.C, DbTitle = "旧客户ID", DefaultValue = "", PrintVisible = false,
|
||||
IsAllowNull = true, IsKey = true, Length = 8)]
|
||||
public string old_XLXSBJFLKH_KHID
|
||||
{
|
||||
get { return _old_XLXSBJFLKH_KHID; }
|
||||
set { _old_XLXSBJFLKH_KHID = value; }
|
||||
}
|
||||
|
||||
private string _KH_MC;
|
||||
[ColumnMap(DbField = "KH_MC", CtrlName = "txtKHMC", Type = FieldType.C, DbTitle = "客户名称", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 120)]
|
||||
public string KH_MC
|
||||
{
|
||||
get { return _KH_MC; }
|
||||
set { _KH_MC = value; }
|
||||
}
|
||||
|
||||
//备注
|
||||
private string _XLXSBJFLKH_BZ;
|
||||
[ColumnMap(DbField = "XLXSBJFLKH_BZ", CtrlName = "txtBZ", Type = FieldType.C, DbTitle = "备注", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 250)]
|
||||
public string XLXSBJFLKH_BZ
|
||||
{
|
||||
get { return _XLXSBJFLKH_BZ; }
|
||||
set { _XLXSBJFLKH_BZ = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFLKH_WHR;
|
||||
[ColumnMap(DbField = "XLXSBJFLKH_WHR", CtrlName = "txtWHR", Type = FieldType.C, DbTitle = "维护人", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 30)]
|
||||
public string XLXSBJFLKH_WHR
|
||||
{
|
||||
get { return _XLXSBJFLKH_WHR; }
|
||||
set { _XLXSBJFLKH_WHR = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFLKH_WHRID;
|
||||
[ColumnMap(DbField = "XLXSBJFLKH_WHRID", CtrlName = "txtWHRID", Type = FieldType.HiddenField, DbTitle = "维护人工号", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||
public string XLXSBJFLKH_WHRID
|
||||
{
|
||||
get { return _XLXSBJFLKH_WHRID; }
|
||||
set { _XLXSBJFLKH_WHRID = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJFLKH_WHSJ;
|
||||
[ColumnMap(DbField = "XLXSBJFLKH_WHSJ", CtrlName = "datWHSJ", Type = FieldType.DT, DbTitle = "维护时间", DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 18)]
|
||||
public string XLXSBJFLKH_WHSJ
|
||||
{
|
||||
get { return _XLXSBJFLKH_WHSJ; }
|
||||
set { _XLXSBJFLKH_WHSJ = value; }
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleCard.Master" AutoEventWireup="true"
|
||||
Codebehind="BJFL_KHInfo.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJFL_KHInfo" Title="适用客户" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleCard.Master" %>
|
||||
<asp:Content ID="cntForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||
<table style="width: 100%">
|
||||
<tr style="height: 23px">
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel2" runat="server">客户编码:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<gtc:gtTextBox ID="txtKHID" runat="server" Width="120px" AutoPostBack="true" OnTextChanged="txtKHID_OnTextChanged"
|
||||
MaxLength="8" CharCase="ecUpperCase" Tag="Star"></gtc:gtTextBox>
|
||||
</td>
|
||||
<td>
|
||||
<gtc:gtTextBox ID="txtOLDKHID" runat="server" Width="40px" CharCase="ecUpperCase" Visible="False"></gtc:gtTextBox>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr style="height: 22px">
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" style="width: 14%">
|
||||
<gtc:gtLabel ID="GtLabel5" runat="server">客户名称:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left" style="width: 39%">
|
||||
<gtc:gtTextBox ID="txtKHMC" runat="server" Width="84.6%"></gtc:gtTextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height: 22px">
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" valign="top">
|
||||
<gtc:gtLabel ID="GtLabel18" runat="server">备注:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtTextBox ID="txtBZ" runat="server" Rows="3" TextMode="MultiLine" MaxLength="4000"
|
||||
TabIndex="6" Width="84.6%"></gtc:gtTextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height: 22px">
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel12" runat="server">维护人:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtTextBox ID="txtWHR" runat="server" Enabled="False" Tag="None" ReadOnly="True"
|
||||
Width="72px" TabIndex="7"></gtc:gtTextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height: 22px">
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel13" runat="server">维护时间:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtDateTime ID="datWHSJ" runat="server" Enabled="False" ReadOnly="True" Width="142px"
|
||||
TabIndex="9"></gtc:gtDateTime>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:HiddenField ID="txtWHRID" runat="server" />
|
||||
<asp:HiddenField ID="txtBJDFLID" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ID="cntHidden" ContentPlaceHolderID="cphBrand" runat="server">
|
||||
</asp:Content>
|
||||
Binary file not shown.
Generated
+151
@@ -0,0 +1,151 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.8941
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJFL_KHInfo 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJFL_KHInfo {
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel2;
|
||||
|
||||
/// <summary>
|
||||
/// txtKHID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtKHID;
|
||||
|
||||
/// <summary>
|
||||
/// txtOLDKHID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtOLDKHID;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel5;
|
||||
|
||||
/// <summary>
|
||||
/// txtKHMC 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtKHMC;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel18 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel18;
|
||||
|
||||
/// <summary>
|
||||
/// txtBZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtBZ;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel12 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel12;
|
||||
|
||||
/// <summary>
|
||||
/// txtWHR 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtWHR;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel13 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel13;
|
||||
|
||||
/// <summary>
|
||||
/// datWHSJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtDateTime datWHSJ;
|
||||
|
||||
/// <summary>
|
||||
/// txtWHRID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtWHRID;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJDFLID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtBJDFLID;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleCard Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleCard)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
||||
Codebehind="BJFL_KHList.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJFL_KHList"
|
||||
Title="适用客户" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentForm" ContentPlaceHolderID="CPHForm" runat="server">
|
||||
<gtc:gtGridView ID="grdContentGrid" runat="server" EnableViewState="false" AutoGenerateColumns="False"
|
||||
CellPadding="2" CellSpacing="2" AllowPaging="True" AllowSorting="True">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="XLXSBJFLKH_KHID" HeaderText="客户编码">
|
||||
<itemstyle width="100px"></itemstyle>
|
||||
<headerstyle width="100px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KH_MC" HeaderText="客户名称">
|
||||
<itemstyle width="200px"></itemstyle>
|
||||
<headerstyle width="200px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFLKH_BZ" HeaderText="备注">
|
||||
<itemstyle width="250px"></itemstyle>
|
||||
<headerstyle width="250px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFLKH_WHR" HeaderText="维护人">
|
||||
<itemstyle width="72px"></itemstyle>
|
||||
<headerstyle width="72px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJFLKH_WHSJ" HeaderText="维护时间">
|
||||
<itemstyle width="125px" />
|
||||
<headerstyle width="125px" horizontalalign="Center" />
|
||||
</asp:BoundField>
|
||||
</Columns>
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFLKH_KHID" EditType="etString" ShowHint ="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KH_MC" EditType="etString" ShowHint ="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFLKH_BZ" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFLKH_WHR" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJFLKH_WHSJ" DateTimeEditKins="dtDateTime" EditType="etDateTime">
|
||||
</gtc:gtGridView_Column>
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentSync" ContentPlaceHolderID="CPHSync" runat="server">
|
||||
</asp:Content>
|
||||
Binary file not shown.
Generated
+43
@@ -0,0 +1,43 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.8941
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJFL_KHList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJFL_KHList {
|
||||
|
||||
/// <summary>
|
||||
/// grdContentGrid 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView grdContentGrid;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleGrid Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleGrid)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSBJFLYZ", Umid = 100860023, IsWorkFlow = false, IsAttach = false, UseWhr = false)]
|
||||
|
||||
public class BJFL_TJYZ : EntityManager
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
||||
Codebehind="BJFL_TJYZList.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJFL_TJYZList" Title="调价因子" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||
<div style="display: flex;">
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<gtc:gtTextBox ID="txtTZQCPBJGS" runat="server" Width="610px" ReadOnly="true" Height="19px" Enabled="false">
|
||||
</gtc:gtTextBox>
|
||||
</td>
|
||||
<td>
|
||||
<gtc:gtButton ID="btnQYGS" Text="启用公式" runat="server" Width="70px" Height="19px" OnClick="btnQYGS_Click">
|
||||
</gtc:gtButton>
|
||||
</td>
|
||||
<td>
|
||||
<gtc:gtButton ID="btnQKGS" Text="清空公式" runat="server" Width="70px" Height="19px" OnClick="btnQKGS_Click">
|
||||
</gtc:gtButton>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<gtc:gtGridView ID="ContentGrid" runat="server" AutoGenerateColumns="False" EnableViewState="false" OnRowDoubleClick="ContentGrid_RowDoubleClick">
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<Columns>
|
||||
<asp:BoundField HeaderText="调价因子编码" DataField="YZID">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="调整因子名称" DataField="YZMC">
|
||||
<itemstyle width="100px"></itemstyle>
|
||||
<headerstyle width="100px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="使用" DataField="SY">
|
||||
<itemstyle width="66px"></itemstyle>
|
||||
<headerstyle width="66px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="备注" DataField="BZ">
|
||||
<itemstyle width="250px"></itemstyle>
|
||||
<headerstyle width="250px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="维护人" DataField="WHR">
|
||||
<itemstyle width="72px"></itemstyle>
|
||||
<headerstyle width="72px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="维护时间" DataField="WHSJ">
|
||||
<itemstyle width="125px"></itemstyle>
|
||||
<headerstyle width="125px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
</Columns>
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="YZID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="YZMC" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="SY" EditType="etCheckBox" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="BZ" EditType="etstring">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WHR" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WHSJ" EditType="etDateTime" DateTimeEditKins="dtDateTime">
|
||||
</gtc:gtGridView_Column>
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentSync" ContentPlaceHolderID="CPHSync" runat="server">
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,668 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using GThinking.N_MISPRO;
|
||||
using GThinking.N_CONTROL;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using System.Collections.Generic;
|
||||
using GThinking.N_MISPRO.Caching;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class BJFL_TJYZList : SingleGridBase
|
||||
{
|
||||
BJFL_TJYZ entity = new BJFL_TJYZ();
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860023;
|
||||
this.UMName = "线缆销售报价分类";
|
||||
this.CurMaster = Master;
|
||||
this.ModuleGV = ContentGrid;
|
||||
this.CurEntity = entity;
|
||||
this.PageHeight = 600;
|
||||
this.PageWidth = 750;
|
||||
base.DataKeyNames = new string[] { "YZID" };
|
||||
Master.EnableNewBtn = false;
|
||||
Master.EnableCopyBtn = false;
|
||||
Master.EnableViewBtn = false;
|
||||
Master.EnableEditBtn = false;
|
||||
Master.EnableDeleteBtn = false;
|
||||
Master.EnableQueryBtn = false;
|
||||
|
||||
base.InitPage();
|
||||
if (!IsPostBack)
|
||||
{
|
||||
InitTZQCPBJGS();
|
||||
Master_OnStandardQuery(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
#region 模板继承事件
|
||||
|
||||
protected override void Master_OnStandardQuery(object sender, EventArgs e)
|
||||
{
|
||||
base.Master_OnStandardQuery(sender, e);
|
||||
entity.EntityTable.QuerySelSql = GetQuerySql();
|
||||
entity.GridDataBind(ContentGrid, tSession);
|
||||
}
|
||||
|
||||
protected override void moduleGV_PageIndexChanging(object sender, GridViewPageEventArgs e)
|
||||
{
|
||||
entity.EntityTable.QuerySelSql = GetQuerySql();
|
||||
ContentGrid.SelectedIndex = -1;
|
||||
base.moduleGV_PageIndexChanging(sender, e);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义方法
|
||||
|
||||
private string GetQuerySql()
|
||||
{
|
||||
string sAddSql=string.Empty;
|
||||
if (IsXSTZZDXJ(PageParam.GetRTrimString("BJFLID")))
|
||||
{
|
||||
if (IsTZZDXJContained(PageParam.GetRTrimString("BJFLID")))
|
||||
sAddSql = "union all select 'TZZDXJ','调整最低限价','Y','系统自动生成','SUPERVISOR','超级用户',GETDATE(),9999";
|
||||
else
|
||||
sAddSql = "union all select 'TZZDXJ','调整最低限价','N','系统自动生成','SUPERVISOR','超级用户',GETDATE(),9999";
|
||||
}
|
||||
string sSQL = " select XLXSTZYZ_YZID as YZID,XLXSTZYZ_YZMC as YZMC,"
|
||||
+ " case when XLXSBJFLYZ_YZID is null then 'N' else 'Y' end as SY,"
|
||||
+ " case when XLXSBJFLYZ_YZID is null then XLXSTZYZ_BZ else XLXSBJFLYZ_BZ end as BZ,"
|
||||
+ " case when XLXSBJFLYZ_YZID is null then XLXSTZYZ_WHRID else XLXSBJFLYZ_WHRID end as WHRID,"
|
||||
+ " case when XLXSBJFLYZ_YZID is null then XLXSTZYZ_WHR else XLXSBJFLYZ_WHR end as WHR,"
|
||||
+ " case when XLXSBJFLYZ_YZID is null then XLXSTZYZ_WHSJ else XLXSBJFLYZ_WHSJ end as WHSJ,"
|
||||
+ " XLXSTZYZ_XSXH"
|
||||
+ " from XLXSTZYZ left join XLXSBJFLYZ on XLXSBJFLYZ_BJFLID=:pBJFLID and XLXSBJFLYZ_YZID=XLXSTZYZ_YZID"
|
||||
+ " where XLXSTZYZ_MXBH='BJD' "
|
||||
+ sAddSql
|
||||
+ " order by XLXSTZYZ_XSXH,XLXSTZYZ_YZID";
|
||||
entity.Param.Add("pBJFLID", PageParam.GetRTrimString("BJFLID"));
|
||||
|
||||
return sSQL;
|
||||
}
|
||||
|
||||
//允许加入因子,返回true 因子顺序不符合规格,返回false
|
||||
private bool CanYZIDSave(TDatabase dberp, TSQL sql, string sBJFLID, string sYZID)
|
||||
{
|
||||
if (IsQYGS(sBJFLID))
|
||||
return true;
|
||||
Dictionary<string, string> dicXLXSTZYZ = new Dictionary<string, string>();
|
||||
dicXLXSTZYZ.Clear();
|
||||
DataSet ds = new DataSet();
|
||||
|
||||
sql.Clear();
|
||||
sql.Add(" select XLXSBJFLYZ_YZID,XLXSTZYZ_JJFS from XLXSBJFLYZ ");
|
||||
sql.Add(" left join XLXSTZYZ on XLXSTZYZ_YZID = XLXSBJFLYZ_YZID ");
|
||||
sql.Add(" where XLXSBJFLYZ_BJFLID =:pBJFLID ");
|
||||
if (!sYZID.Equals(""))
|
||||
{
|
||||
sql.Add(" and XLXSBJFLYZ_YZID <> :pYZID ");
|
||||
sql.ParamByName("pYZID").Value = sYZID;
|
||||
}
|
||||
sql.Add(" and isnull(XLXSTZYZ_BCYTJ,'N') <> 'Y' ");
|
||||
sql.Add(" order by XLXSTZYZ_XSXH ");
|
||||
sql.ParamByName("pBJFLID").Value = sBJFLID;
|
||||
ds = dberp.OpenDataSet(sql);
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
dicXLXSTZYZ.Add(ds.Tables[0].Rows[i]["XLXSBJFLYZ_YZID"].ToString().Trim(), ds.Tables[0].Rows[i]["XLXSTZYZ_JJFS"].ToString().Trim());
|
||||
}
|
||||
List<string> lst = new List<string>();
|
||||
lst.Clear();
|
||||
//如果是扣点/加点,则加入 1 如果是加价则加入 0,最终形成:空或者01或者10或者1或者0,不能形成101形式或者010形式或者1010等大于2个数据的形式
|
||||
foreach (KeyValuePair<string, string> kvp in dicXLXSTZYZ)
|
||||
{
|
||||
if (kvp.Value.Equals("JJ"))
|
||||
{
|
||||
if (lst.Count == 0)
|
||||
{
|
||||
lst.Add("0");
|
||||
}
|
||||
else if (lst[lst.Count - 1] == "1")
|
||||
{
|
||||
lst.Add("0");
|
||||
}
|
||||
else if (lst[lst.Count - 1] == "0")
|
||||
{
|
||||
//不处理
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//此处包含加点扣点乘以除以
|
||||
if (lst.Count == 0)
|
||||
{
|
||||
lst.Add("1");
|
||||
}
|
||||
else if (lst[lst.Count - 1] == "1")
|
||||
{
|
||||
//不处理
|
||||
}
|
||||
else if (lst[lst.Count - 1] == "0")
|
||||
{
|
||||
lst.Add("1");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (lst.Count >= 3)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//获取当前报价分类所使用的因子ID、计算顺序、调价类型、调价因子ID、调因子值因子ID、加价方式
|
||||
public static List<BJFLYZXX> GetBJFLYZXX(string sBJFLID, out Dictionary<string, string> YZJJFS)
|
||||
{
|
||||
YZJJFS = new Dictionary<string, string>();
|
||||
List<BJFLYZXX> BJFLYZXX_List = new List<BJFLYZXX>();
|
||||
List<XLXSBJFLYZXX> bjflYZ = XLBJDUtils.GetBJFLYZXXByBJFLID(sBJFLID);
|
||||
if (bjflYZ.Count > 0)
|
||||
{
|
||||
foreach(XLXSBJFLYZXX sYZ in bjflYZ)
|
||||
{
|
||||
TZYZXX yzxx=XLBJDUtils.GetYZXXByYZID(sYZ.XLXSBJFLYZ_YZID);
|
||||
BJFLYZXX bjFLYZXX = new BJFLYZXX();
|
||||
bjFLYZXX.YZID = yzxx.XLXSTZYZ_YZID;
|
||||
bjFLYZXX.JSXH = CMISproConvert.StrToFloat(yzxx.XLXSTZYZ_XSXH);
|
||||
bjFLYZXX.TJLX = yzxx.XLXSTZYZ_TJLX;
|
||||
bjFLYZXX.TJYZID = yzxx.XLXSTZYZ_TJYZID;
|
||||
bjFLYZXX.TYZZYZID = yzxx.XLXSTZYZ_TYZZYZID;
|
||||
bjFLYZXX.JJFS = yzxx.XLXSTZYZ_JJFS;
|
||||
bjFLYZXX.YZZGS = yzxx.XLXSTZYZ_YZID;
|
||||
BJFLYZXX_List.Add(bjFLYZXX);
|
||||
YZJJFS[bjFLYZXX.YZID] = bjFLYZXX.JJFS;
|
||||
}
|
||||
|
||||
}
|
||||
if (IsTZZDXJContained(sBJFLID))
|
||||
{
|
||||
string sTZQCPBJGS = string.Empty;
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
SQL.Clear();
|
||||
SQL.Add("select XLXSBJFL_TZQCPBJGS from XLXSBJFL where XLXSBJFL_BJFLID=:pBJFLID");
|
||||
SQL.ParamByName("pBJFLID").Value = sBJFLID;
|
||||
DataSet ds = dberp.OpenDataSet(SQL);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
double iTZZDXJXH = 0;
|
||||
string sYZID = "TZZDXJ";
|
||||
sTZQCPBJGS = ds.Tables[0].Rows[0][0].ToString().Trim();
|
||||
// 查找 TZZDXJ 的索引
|
||||
int tzzdxjIndex = sTZQCPBJGS.IndexOf("TZZDXJ");
|
||||
int bjIndex = sTZQCPBJGS.Substring(0, tzzdxjIndex).LastIndexOf("BJ");
|
||||
while (bjIndex != -1)
|
||||
{
|
||||
string sBJYZID = sTZQCPBJGS.Substring(bjIndex, 4);
|
||||
if (XLBJDUtils.GetYZXXByYZID(sBJYZID).XLXSTZYZ_TJLX == "1" && XLBJDUtils.GetYZXXByYZID(sBJYZID).XLXSTZYZ_TJYZID.Equals(sBJYZID))
|
||||
{
|
||||
iTZZDXJXH = CMISproConvert.StrToFloat(XLBJDUtils.GetYZXXByYZID(sBJYZID).XLXSTZYZ_XSXH, 0) + 0.5;
|
||||
break;
|
||||
}
|
||||
else
|
||||
bjIndex = sTZQCPBJGS.Substring(0, bjIndex).LastIndexOf("BJ");
|
||||
}
|
||||
|
||||
BJFLYZXX bjFLYZXX = new BJFLYZXX();
|
||||
bjFLYZXX.YZID = sYZID;
|
||||
bjFLYZXX.JSXH = iTZZDXJXH;
|
||||
bjFLYZXX.TJLX = "1";
|
||||
bjFLYZXX.TJYZID = sYZID;
|
||||
bjFLYZXX.TYZZYZID = "";
|
||||
bjFLYZXX.JJFS = "JD";
|
||||
bjFLYZXX.YZZGS = sYZID;
|
||||
BJFLYZXX_List.Add(bjFLYZXX);
|
||||
YZJJFS[bjFLYZXX.YZID] = bjFLYZXX.JJFS;
|
||||
|
||||
}
|
||||
}
|
||||
BJFLYZXX_List.Sort(new BJFLYZXXComparer());
|
||||
return BJFLYZXX_List;
|
||||
|
||||
}
|
||||
|
||||
public static string GetJSGS(string sBJFLID)
|
||||
{
|
||||
Dictionary<string, string> YZJJFS = new Dictionary<string, string>();
|
||||
List<BJFLYZXX> BJFLYZXX_List = GetBJFLYZXX(sBJFLID, out YZJJFS);
|
||||
string formula = "JGBBJ";
|
||||
//先调因子值
|
||||
foreach (BJFLYZXX item in BJFLYZXX_List)
|
||||
{
|
||||
if ((!string.IsNullOrEmpty(item.TYZZYZID) )&& item.TJLX == "1" && YZJJFS.ContainsKey(item.TYZZYZID))
|
||||
{
|
||||
item.YZZGS = GetJSGSbyJJFS(item.YZZGS, item.TYZZYZID, YZJJFS[item.TYZZYZID]);
|
||||
}
|
||||
}
|
||||
//再按分组相加
|
||||
Dictionary<string, BJFLYZXX> groupedSums = new Dictionary<string, BJFLYZXX>();
|
||||
foreach (BJFLYZXX item in BJFLYZXX_List)
|
||||
{
|
||||
if (item.TJLX == "1")
|
||||
{
|
||||
if (groupedSums.ContainsKey(item.TJYZID))
|
||||
{
|
||||
groupedSums[item.TJYZID].YZZGS = "(" + groupedSums[item.TJYZID].YZZGS + "+" + item.YZZGS + ")";
|
||||
}
|
||||
else
|
||||
{
|
||||
groupedSums[item.TJYZID] = item;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
//生成计算公式
|
||||
foreach (BJFLYZXX item in groupedSums.Values)
|
||||
{
|
||||
formula = GetJSGSbyJJFS(formula, item);
|
||||
}
|
||||
|
||||
return formula;
|
||||
}
|
||||
|
||||
public static string GetJSGSbyJJFS(string sformula, string sYZZGS, string sJJFS)
|
||||
{
|
||||
switch (sJJFS)
|
||||
{
|
||||
|
||||
case "JD": return sformula + "*(1+" + sYZZGS + "/100)";
|
||||
|
||||
case "KD": return sformula + "/(1-" + sYZZGS + "/100)";
|
||||
|
||||
case "DD": return sformula + "/(1+" + sYZZGS + "/100)";
|
||||
|
||||
case "MD": return sformula + "*(1-" + sYZZGS + "/100)";
|
||||
|
||||
case "JJ": return "(" + sformula + "+" + sYZZGS + ")";
|
||||
|
||||
case "MX": return sformula + "*" + sYZZGS;
|
||||
|
||||
case "DX": return sformula + "/(" + sYZZGS + ")";
|
||||
|
||||
default: return sformula;
|
||||
}
|
||||
}
|
||||
|
||||
public static string GetJSGSbyJJFS(string sformula, BJFLYZXX bJFLYZXX)
|
||||
{
|
||||
|
||||
return GetJSGSbyJJFS(sformula, bJFLYZXX.YZZGS, bJFLYZXX.JJFS);
|
||||
}
|
||||
|
||||
private bool IsQYGS(string sBJFLID)
|
||||
{
|
||||
if (CMISproDataBase.ExistsRecord("DBERP", string.Format("select 1 from XLXSBJFL where XLXSBJFL_BJFLID='{0}' and isnull(XLXSBJFL_TZQCPBJGS,' ') <> ' ' ", sBJFLID)))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
//存在上点除、下点乘的加价方式
|
||||
private bool HasSXJJFS(string sBJFLID)
|
||||
{
|
||||
List<XLXSBJFLYZXX> bjflYZ = XLBJDUtils.GetBJFLYZXXByBJFLID(sBJFLID);
|
||||
if (bjflYZ.Count > 0)
|
||||
{
|
||||
foreach (XLXSBJFLYZXX sYZ in bjflYZ)
|
||||
{
|
||||
TZYZXX yzxx = XLBJDUtils.GetYZXXByYZID(sYZ.XLXSBJFLYZ_YZID);
|
||||
if (yzxx.XLXSTZYZ_JJFS.Equals("SX"))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private bool HasTYZZYZChecked(string sBJFLID, string sYZID)
|
||||
{
|
||||
TZYZXX yzxx = XLBJDUtils.GetYZXXByYZID(sYZID);
|
||||
List<XLXSBJFLYZXX> bjflYZ = XLBJDUtils.GetBJFLYZXXByBJFLID(sBJFLID);
|
||||
if (bjflYZ.Count > 0)
|
||||
{
|
||||
foreach (XLXSBJFLYZXX sYZ in bjflYZ)
|
||||
{
|
||||
if (yzxx.XLXSTZYZ_TYZZYZID.Equals(sYZ.XLXSBJFLYZ_YZID))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private bool TYZZYZIsUsed(string sBJFLID, string sYZID)
|
||||
{
|
||||
TZYZXX yzxx =XLBJDUtils.GetYZXXByYZID(sYZID);
|
||||
if (yzxx.XLXSTZYZ_MXBH=="BJD"&&yzxx.XLXSTZYZ_TJLX=="1")
|
||||
return true;
|
||||
|
||||
List<XLXSBJFLYZXX> bjflYZ = XLBJDUtils.GetBJFLYZXXByBJFLID(sBJFLID);
|
||||
if (bjflYZ.Count > 0)
|
||||
{
|
||||
foreach (XLXSBJFLYZXX sYZ in bjflYZ)
|
||||
{
|
||||
yzxx=XLBJDUtils.GetYZXXByYZID(sYZ.XLXSBJFLYZ_YZID);
|
||||
if (yzxx.XLXSTZYZ_TYZZYZID.Equals(sYZID))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private bool IsXSTZZDXJ(string sBJFLID)
|
||||
{
|
||||
if (CMISproDataBase.ExistsRecord("DBERP", string.Format("select 1 from XLXSBJFL where XLXSBJFL_BJFLID='{0}' and XLXSBJFL_XSTZZDXJ ='Y' and isnull(XLXSBJFL_TZQCPBJGS,' ') <> ' ' ", sBJFLID)))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool IsTZZDXJContained(string sBJFLID)
|
||||
{
|
||||
if (CMISproDataBase.ExistsRecord("DBERP", string.Format("select 1 from XLXSBJFL where XLXSBJFL_TZQCPBJGS like '%TZZDXJ%' and XLXSBJFL_BJFLID='{0}'", sBJFLID)))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
private void InitTZQCPBJGS()
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
SQL.Clear();
|
||||
SQL.Add("select isnull(XLXSBJFL_TZQCPBJGS,' ') as TZQCPBJGS from XLXSBJFL where XLXSBJFL_BJFLID=:pBJFLID ");
|
||||
SQL.ParamByName("pBJFLID").Value = PageParam.GetRTrimString("BJFLID");
|
||||
DataSet ds = dberp.OpenDataSet(SQL);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
txtTZQCPBJGS.Text = ds.Tables[0].Rows[0]["TZQCPBJGS"].ToString();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 控件事件
|
||||
|
||||
protected void ContentGrid_RowDoubleClick(object sender, GThinking.N_CONTROL.RowDoubleClickEventArgs e)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sql = new TSQL(dberp);
|
||||
string sBJFLID = PageParam.GetRTrimString("BJFLID");
|
||||
string sYZID = ContentGrid.DataKeys[ContentGrid.SelectedIndex]["YZID"].ToString().Trim();
|
||||
|
||||
if (sYZID.Equals("TZZDXJ"))
|
||||
{
|
||||
//如果已经有公式里已经含有TZZDXJ,说明是取消勾选,先清空再生成。
|
||||
if (IsTZZDXJContained(sBJFLID))
|
||||
{
|
||||
sql.Clear();
|
||||
sql.Add("update XLXSBJFL set XLXSBJFL_TZQCPBJGS=' ' where XLXSBJFL_BJFLID=:pBJFLID");
|
||||
sql.ParamByName("pBJFLID").Value = sBJFLID;
|
||||
dberp.ExecSQL(sql);
|
||||
btnQYGS_Click(null, null);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
string sTZQCPBJGS = "(" + txtTZQCPBJGS.Text.Trim() + ")*(1+TZZDXJ/100)";
|
||||
sql.Clear();
|
||||
sql.Add("update XLXSBJFL set XLXSBJFL_TZQCPBJGS=:pTZQCPBJGS where XLXSBJFL_BJFLID=:pBJFLID");
|
||||
sql.ParamByName("pTZQCPBJGS").Value = sTZQCPBJGS;
|
||||
sql.ParamByName("pBJFLID").Value = sBJFLID;
|
||||
dberp.ExecSQL(sql);
|
||||
txtTZQCPBJGS.Text = sTZQCPBJGS;
|
||||
moduleGV_PageIndexChanging(null, null);
|
||||
FormAreaUpdate();
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (CMISproDataBase.ExistsRecord("DBERP", string.Format("select 1 from XLXSBJFLYZ where XLXSBJFLYZ_BJFLID='{0}' and XLXSBJFLYZ_YZID='{1}'",
|
||||
sBJFLID, sYZID)))
|
||||
{
|
||||
if (HasTYZZYZChecked(sBJFLID, sYZID))
|
||||
{
|
||||
ShowMessage("请先取消勾选当前因子的调因子值方式指定的因子!");
|
||||
return;
|
||||
}
|
||||
|
||||
if (CMISproDataBase.ExistsRecord("DBERP", string.Format("select 1 from XLXSBJFL where XLXSBJFL_BJFLID='{0}' and XLXSBJFL_JMBGSYZID='{1}'",
|
||||
sBJFLID, sYZID)))
|
||||
{
|
||||
ShowMessage("当前选择因子已被指定为“截面比公式适用因子”,不允许取消勾选!");
|
||||
return;
|
||||
}
|
||||
if (!CanYZIDSave(dberp, sql, sBJFLID, sYZID))
|
||||
{
|
||||
ShowMessage("当前选择因子不满足“加价因子必须全部在加点/扣点因子之前或者之后”规则,不允许去除!请至“100860005|线缆销售报价单因子”模块调整因子顺序或者重新选择因子!");
|
||||
return;
|
||||
}
|
||||
dberp.ExecSQL(string.Format("delete from XLXSBJFLYZ where XLXSBJFLYZ_BJFLID='{0}' and XLXSBJFLYZ_YZID='{1}'", sBJFLID, sYZID));
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!TYZZYZIsUsed(sBJFLID, sYZID))
|
||||
{
|
||||
ShowMessage("当前报价分类未选择调因子值方式为当前选择因子的调价格因子,不允许勾选!");
|
||||
return;
|
||||
}
|
||||
if (IsQYGS(sBJFLID) && CMISproDataBase.ExistsRecord("DBERP", string.Format("select 1 from XLXSTZYZ where XLXSTZYZ_MXBH='BJD' and XLXSTZYZ_YZID='{0}' and XLXSTZYZ_JJFS = 'SX' ", sYZID)))
|
||||
{
|
||||
ShowMessage("当前报价分类已启用公式,不允许选择调价方式为“上点除、下点乘”的因子!");
|
||||
return;
|
||||
}
|
||||
try
|
||||
{
|
||||
dberp.BeginTrans();
|
||||
sql.Clear();
|
||||
sql.Add("insert into XLXSBJFLYZ(XLXSBJFLYZ_BJFLID,XLXSBJFLYZ_YZID,XLXSBJFLYZ_BZ,XLXSBJFLYZ_WHR,XLXSBJFLYZ_WHRID,XLXSBJFLYZ_WHSJ)");
|
||||
sql.Add(" values(:XLXSBJFLYZ_BJFLID,:XLXSBJFLYZ_YZID,:XLXSBJFLYZ_BZ,:XLXSBJFLYZ_WHR,:XLXSBJFLYZ_WHRID,:XLXSBJFLYZ_WHSJ)");
|
||||
sql.ParamByName("XLXSBJFLYZ_BJFLID").Value = sBJFLID;
|
||||
sql.ParamByName("XLXSBJFLYZ_YZID").Value = sYZID;
|
||||
sql.ParamByName("XLXSBJFLYZ_BZ").Value = "";
|
||||
sql.ParamByName("XLXSBJFLYZ_WHR").Value = tSession.UserName;
|
||||
sql.ParamByName("XLXSBJFLYZ_WHRID").Value = tSession.UserId;
|
||||
sql.ParamByName("XLXSBJFLYZ_WHSJ").Value = DateTime.Now;
|
||||
dberp.ExecSQL(sql);
|
||||
|
||||
if (!CanYZIDSave(dberp, sql, sBJFLID, ""))
|
||||
{
|
||||
throw new Exception();
|
||||
}
|
||||
dberp.CommitTrans();
|
||||
}
|
||||
catch
|
||||
{
|
||||
ShowMessage("当前选择因子不满足“加价因子必须全部在加点/扣点因子之前或者之后”规则,不允许添加!请至“100860005|线缆销售报价单因子”模块调整因子顺序或者重新选择因子!");
|
||||
dberp.RollbackTrans();
|
||||
}
|
||||
}
|
||||
CacheNotify.TableIsUpdated("DBERP", "XLXSBJFLYZ");
|
||||
if (IsQYGS(sBJFLID))
|
||||
{
|
||||
btnQYGS_Click(null, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
moduleGV_PageIndexChanging(null, null);
|
||||
FormAreaUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnQYGS_Click(object sender, EventArgs e)
|
||||
{
|
||||
string sBJFLID = PageParam.GetRTrimString("BJFLID");
|
||||
if (HasSXJJFS(sBJFLID))
|
||||
{
|
||||
ShowMessage("当前报价分类使用的调价因子存在“上点除,下点乘”调价方式,不允许启用公式!");
|
||||
return;
|
||||
}
|
||||
string sTZQCPBJGS = GetJSGS(sBJFLID);
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
SQL.Clear();
|
||||
SQL.Add("update XLXSBJFL set XLXSBJFL_TZQCPBJGS=:pTZQCPBJGS where XLXSBJFL_BJFLID=:pBJFLID");
|
||||
SQL.ParamByName("pTZQCPBJGS").Value = sTZQCPBJGS;
|
||||
SQL.ParamByName("pBJFLID").Value = sBJFLID;
|
||||
dberp.ExecSQL(SQL);
|
||||
txtTZQCPBJGS.Text = sTZQCPBJGS;
|
||||
moduleGV_PageIndexChanging(null, null);
|
||||
FormAreaUpdate();
|
||||
}
|
||||
|
||||
protected void btnQKGS_Click(object sender, EventArgs e)
|
||||
{
|
||||
string sBJFLID = PageParam.GetRTrimString("BJFLID");
|
||||
if (!IsQYGS(sBJFLID))
|
||||
{
|
||||
ShowMessage("未启用公式!");
|
||||
return;
|
||||
}
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
try
|
||||
{
|
||||
dberp.BeginTrans();
|
||||
SQL.Clear();
|
||||
SQL.Add("update XLXSBJFL set XLXSBJFL_TZQCPBJGS=' ' where XLXSBJFL_BJFLID=:pBJFLID");
|
||||
SQL.ParamByName("pBJFLID").Value = sBJFLID;
|
||||
dberp.ExecSQL(SQL);
|
||||
if (!CanYZIDSave(dberp, SQL, sBJFLID, ""))
|
||||
{
|
||||
throw new Exception();
|
||||
}
|
||||
dberp.CommitTrans();
|
||||
txtTZQCPBJGS.Text = "";
|
||||
}
|
||||
catch
|
||||
{
|
||||
ShowMessage("当前选择因子不满足“加价因子必须全部在加点/扣点因子之前或者之后”规则,不允许清空公式!请至“100860005|线缆销售报价单因子”模块调整因子顺序或者重新选择因子!");
|
||||
dberp.RollbackTrans();
|
||||
}
|
||||
|
||||
moduleGV_PageIndexChanging(null, null);
|
||||
FormAreaUpdate();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
public class BJFLYZXX
|
||||
{
|
||||
private string _YZID;
|
||||
public string YZID
|
||||
{
|
||||
get
|
||||
{
|
||||
return _YZID;
|
||||
}
|
||||
set
|
||||
{
|
||||
_YZID = value; ;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private double _JSXH;
|
||||
public double JSXH
|
||||
{
|
||||
get
|
||||
{
|
||||
return _JSXH;
|
||||
}
|
||||
set
|
||||
{
|
||||
_JSXH = value; ;
|
||||
}
|
||||
}
|
||||
|
||||
private string _TJLX;
|
||||
public string TJLX
|
||||
{
|
||||
get
|
||||
{
|
||||
return _TJLX;
|
||||
}
|
||||
set
|
||||
{
|
||||
_TJLX = value; ;
|
||||
}
|
||||
}
|
||||
|
||||
private string _TJYZID;
|
||||
public string TJYZID
|
||||
{
|
||||
get
|
||||
{
|
||||
return _TJYZID;
|
||||
}
|
||||
set
|
||||
{
|
||||
_TJYZID = value; ;
|
||||
}
|
||||
}
|
||||
|
||||
private string _TYZZYZID;
|
||||
public string TYZZYZID
|
||||
{
|
||||
get
|
||||
{
|
||||
return _TYZZYZID;
|
||||
}
|
||||
set
|
||||
{
|
||||
_TYZZYZID = value; ;
|
||||
}
|
||||
}
|
||||
|
||||
private string _JJFS;
|
||||
public string JJFS
|
||||
{
|
||||
get
|
||||
{
|
||||
return _JJFS;
|
||||
}
|
||||
set
|
||||
{
|
||||
_JJFS = value; ;
|
||||
}
|
||||
}
|
||||
|
||||
private string _YZZGS;
|
||||
public string YZZGS
|
||||
{
|
||||
get
|
||||
{
|
||||
return _YZZGS;
|
||||
}
|
||||
set
|
||||
{
|
||||
_YZZGS = value; ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class BJFLYZXXComparer : IComparer<BJFLYZXX>
|
||||
{
|
||||
public int Compare(BJFLYZXX x, BJFLYZXX y)
|
||||
{
|
||||
if (x.JSXH == y.JSXH)
|
||||
return x.YZID.CompareTo(y.YZID);
|
||||
return x.JSXH.CompareTo(y.JSXH);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Generated
+70
@@ -0,0 +1,70 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9174
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJFL_TJYZList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJFL_TJYZList {
|
||||
|
||||
/// <summary>
|
||||
/// txtTZQCPBJGS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtTZQCPBJGS;
|
||||
|
||||
/// <summary>
|
||||
/// btnQYGS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnQYGS;
|
||||
|
||||
/// <summary>
|
||||
/// btnQKGS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnQKGS;
|
||||
|
||||
/// <summary>
|
||||
/// ContentGrid 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView ContentGrid;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleGrid Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleGrid)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSBJFL", Umid = 100860023, IsWorkFlow = false, IsAttach = false,
|
||||
|
||||
QuerySelSql = " ",
|
||||
|
||||
EntitySelSql = " ",
|
||||
|
||||
UpdateSql = " ",
|
||||
|
||||
InsertSql = " ",
|
||||
|
||||
DeleteSql = " ")]
|
||||
|
||||
public class BJFL_ZDXJGS : EntityManager
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,217 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleCard.Master" AutoEventWireup="true"
|
||||
Codebehind="BJFL_ZDXJGSInfo.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJFL_ZDXJGSInfo"
|
||||
Title="最低限价公式" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleCard.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="cphUserToolbar" runat="server">
|
||||
<asp:Table CellPadding="0" CellSpacing="0" runat="server" ID="tbl1">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnQD" runat="server" Caption="确 定" ShowCaption="true" OnClick="btnOK_Click"
|
||||
Width="58px" Height="19px" />
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnQX" runat="server" Caption="取 消" ShowCaption="true" OnClick="btnQX_Click"
|
||||
Width="58px" Height="19px" />
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
<asp:Content ID="cntForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||
<table style="width: 100%">
|
||||
<tr style="height: 30px" />
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel24" runat="server">支持参数:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkCLCB" runat="server" Text="成本" Font-Underline="true" OnClick="LinkCLCB_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkJGBJJ" runat="server" Text="基价" Font-Underline="true" OnClick="LinkJGBJJ_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkJGBBJ" runat="server" Text="表价" Font-Underline="true" OnClick="LinkJGBBJ_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkCPBJ" runat="server" Text="报价" Font-Underline="true" OnClick="LinkCPBJ_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkZDXJ" runat="server" Text="最低限价" Font-Underline="true" OnClick="LinkZDXJ_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left">
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height: 35px" id="tr1" runat="server" />
|
||||
<tr id="trJJYZ1" runat="server">
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkJJ01" runat="server" Text="价格表因子01" Font-Underline="true"
|
||||
OnClick="LinkJJ01_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkJJ02" runat="server" Text="价格表因子02" Font-Underline="true"
|
||||
OnClick="LinkJJ02_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkJJ03" runat="server" Text="价格表因子03" Font-Underline="true"
|
||||
OnClick="LinkJJ03_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkJJ04" runat="server" Text="价格表因子04" Font-Underline="true"
|
||||
OnClick="LinkJJ04_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkJJ05" runat="server" Text="价格表因子05" Font-Underline="true"
|
||||
OnClick="LinkJJ05_Click"></asp:LinkButton>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height: 35px" id="tr2" runat="server" />
|
||||
<tr id="trJJYZ2" runat="server">
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkJJ06" runat="server" Text="价格表因子06" Font-Underline="true"
|
||||
OnClick="LinkJJ06_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkJJ07" runat="server" Text="价格表因子07" Font-Underline="true"
|
||||
OnClick="LinkJJ07_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkJJ08" runat="server" Text="价格表因子08" Font-Underline="true"
|
||||
OnClick="LinkJJ08_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkJJ09" runat="server" Text="价格表因子09" Font-Underline="true"
|
||||
OnClick="LinkJJ09_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkJJ10" runat="server" Text="价格表因子10" Font-Underline="true"
|
||||
OnClick="LinkJJ10_Click"></asp:LinkButton>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height: 35px" />
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkYZ01" runat="server" Text="报价单因子01" Font-Underline="true"
|
||||
OnClick="LinkYZ01_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkYZ02" runat="server" Text="报价单因子02" Font-Underline="true"
|
||||
OnClick="LinkYZ02_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkYZ03" runat="server" Text="报价单因子03" Font-Underline="true"
|
||||
OnClick="LinkYZ03_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkYZ04" runat="server" Text="报价单因子04" Font-Underline="true"
|
||||
OnClick="LinkYZ04_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkYZ05" runat="server" Text="报价单因子05" Font-Underline="true"
|
||||
OnClick="LinkYZ05_Click"></asp:LinkButton>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height: 35px" />
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkYZ06" runat="server" Text="报价单因子06" Font-Underline="true"
|
||||
OnClick="LinkYZ06_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkYZ07" runat="server" Text="报价单因子07" Font-Underline="true"
|
||||
OnClick="LinkYZ07_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkYZ08" runat="server" Text="报价单因子08" Font-Underline="true"
|
||||
OnClick="LinkYZ08_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkYZ09" runat="server" Text="报价单因子09" Font-Underline="true"
|
||||
OnClick="LinkYZ09_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkYZ10" runat="server" Text="报价单因子10" Font-Underline="true"
|
||||
OnClick="LinkYZ10_Click"></asp:LinkButton>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height: 35px;" />
|
||||
<tr >
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkYZ11" runat="server" Text="报价单因子11" Font-Underline="true"
|
||||
OnClick="LinkYZ11_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkYZ12" runat="server" Text="报价单因子12" Font-Underline="true"
|
||||
OnClick="LinkYZ12_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkYZ13" runat="server" Text="报价单因子13" Font-Underline="true"
|
||||
OnClick="LinkYZ13_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkYZ14" runat="server" Text="报价单因子14" Font-Underline="true"
|
||||
OnClick="LinkYZ14_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkYZ15" runat="server" Text="报价单因子15" Font-Underline="true"
|
||||
OnClick="LinkYZ15_Click"></asp:LinkButton>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height: 35px;" />
|
||||
<tr>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkYZ16" runat="server" Text="报价单因子16" Font-Underline="true"
|
||||
OnClick="LinkYZ16_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkYZ17" runat="server" Text="报价单因子17" Font-Underline="true"
|
||||
OnClick="LinkYZ17_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkYZ18" runat="server" Text="报价单因子18" Font-Underline="true"
|
||||
OnClick="LinkYZ18_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkYZ19" runat="server" Text="报价单因子19" Font-Underline="true"
|
||||
OnClick="LinkYZ19_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left" style="cursor: pointer;">
|
||||
<asp:LinkButton ID="LinkYZ20" runat="server" Text="报价单因子20" Font-Underline="true"
|
||||
OnClick="LinkYZ20_Click"></asp:LinkButton>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height: 35px" />
|
||||
<tr>
|
||||
<td align="right" valign="top" style="width:100px;">
|
||||
<gtc:gtLabel ID="lblZDXJGS" runat="server">最低限价公式:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left" colspan="5">
|
||||
<gtc:gtTextBox ID="txtZDXJGS" runat="server" Rows="5" TextMode="MultiLine" Width="84.6%"></gtc:gtTextBox>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel2" runat="server">提示:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left" colspan="5">
|
||||
<gtc:gtLabel ID="GtLabel1" runat="server">需要除以100的只要填写100即可</gtc:gtLabel>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:HiddenField ID="txtValue" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ID="cntHidden" ContentPlaceHolderID="cphBrand" runat="server">
|
||||
</asp:Content>
|
||||
Binary file not shown.
Generated
+466
@@ -0,0 +1,466 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9174
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJFL_ZDXJGSInfo 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJFL_ZDXJGSInfo {
|
||||
|
||||
/// <summary>
|
||||
/// tbl1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table tbl1;
|
||||
|
||||
/// <summary>
|
||||
/// btnQD 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnQD;
|
||||
|
||||
/// <summary>
|
||||
/// btnQX 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnQX;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel24 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel24;
|
||||
|
||||
/// <summary>
|
||||
/// LinkCLCB 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkCLCB;
|
||||
|
||||
/// <summary>
|
||||
/// LinkJGBJJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkJGBJJ;
|
||||
|
||||
/// <summary>
|
||||
/// LinkJGBBJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkJGBBJ;
|
||||
|
||||
/// <summary>
|
||||
/// LinkCPBJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkCPBJ;
|
||||
|
||||
/// <summary>
|
||||
/// LinkZDXJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkZDXJ;
|
||||
|
||||
/// <summary>
|
||||
/// tr1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlTableRow tr1;
|
||||
|
||||
/// <summary>
|
||||
/// trJJYZ1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlTableRow trJJYZ1;
|
||||
|
||||
/// <summary>
|
||||
/// LinkJJ01 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkJJ01;
|
||||
|
||||
/// <summary>
|
||||
/// LinkJJ02 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkJJ02;
|
||||
|
||||
/// <summary>
|
||||
/// LinkJJ03 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkJJ03;
|
||||
|
||||
/// <summary>
|
||||
/// LinkJJ04 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkJJ04;
|
||||
|
||||
/// <summary>
|
||||
/// LinkJJ05 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkJJ05;
|
||||
|
||||
/// <summary>
|
||||
/// tr2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlTableRow tr2;
|
||||
|
||||
/// <summary>
|
||||
/// trJJYZ2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlTableRow trJJYZ2;
|
||||
|
||||
/// <summary>
|
||||
/// LinkJJ06 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkJJ06;
|
||||
|
||||
/// <summary>
|
||||
/// LinkJJ07 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkJJ07;
|
||||
|
||||
/// <summary>
|
||||
/// LinkJJ08 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkJJ08;
|
||||
|
||||
/// <summary>
|
||||
/// LinkJJ09 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkJJ09;
|
||||
|
||||
/// <summary>
|
||||
/// LinkJJ10 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkJJ10;
|
||||
|
||||
/// <summary>
|
||||
/// LinkYZ01 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkYZ01;
|
||||
|
||||
/// <summary>
|
||||
/// LinkYZ02 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkYZ02;
|
||||
|
||||
/// <summary>
|
||||
/// LinkYZ03 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkYZ03;
|
||||
|
||||
/// <summary>
|
||||
/// LinkYZ04 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkYZ04;
|
||||
|
||||
/// <summary>
|
||||
/// LinkYZ05 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkYZ05;
|
||||
|
||||
/// <summary>
|
||||
/// LinkYZ06 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkYZ06;
|
||||
|
||||
/// <summary>
|
||||
/// LinkYZ07 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkYZ07;
|
||||
|
||||
/// <summary>
|
||||
/// LinkYZ08 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkYZ08;
|
||||
|
||||
/// <summary>
|
||||
/// LinkYZ09 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkYZ09;
|
||||
|
||||
/// <summary>
|
||||
/// LinkYZ10 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkYZ10;
|
||||
|
||||
/// <summary>
|
||||
/// LinkYZ11 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkYZ11;
|
||||
|
||||
/// <summary>
|
||||
/// LinkYZ12 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkYZ12;
|
||||
|
||||
/// <summary>
|
||||
/// LinkYZ13 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkYZ13;
|
||||
|
||||
/// <summary>
|
||||
/// LinkYZ14 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkYZ14;
|
||||
|
||||
/// <summary>
|
||||
/// LinkYZ15 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkYZ15;
|
||||
|
||||
/// <summary>
|
||||
/// LinkYZ16 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkYZ16;
|
||||
|
||||
/// <summary>
|
||||
/// LinkYZ17 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkYZ17;
|
||||
|
||||
/// <summary>
|
||||
/// LinkYZ18 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkYZ18;
|
||||
|
||||
/// <summary>
|
||||
/// LinkYZ19 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkYZ19;
|
||||
|
||||
/// <summary>
|
||||
/// LinkYZ20 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkYZ20;
|
||||
|
||||
/// <summary>
|
||||
/// lblZDXJGS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblZDXJGS;
|
||||
|
||||
/// <summary>
|
||||
/// txtZDXJGS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtZDXJGS;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel2;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel1;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtValue;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleCard Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleCard)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSBJDMXFD", Umid = 100860080, IsWorkFlow = false, UseWhr = false,
|
||||
|
||||
QuerySelSql = "")]
|
||||
|
||||
public class BJPF_FD : EntityManager
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
||||
CodeBehind="BJPF_FDList.aspx.cs" Inherits="GThinking.N_XLXSBJ.BJPF_FDList" Title="报价单明细分段"%>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
<asp:Table ID="CustomButton" runat="server" CellPadding="0" CellSpacing="0">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnZDCDZP" Caption="按最大装盘长度批量匹盘" ShowCaption="true" runat="server" Width="154px"
|
||||
Height="19px" OnClick="btnZDCDZP_Click">
|
||||
</gtc:gtToolButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnHSSYPJ" Caption="回收所有盘具" ShowCaption="true" runat="server" Width="94px"
|
||||
Height="19px" OnClick="btnHSSYPJ_Click">
|
||||
</gtc:gtToolButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnRefresh" OnClick="btnRefresh_Click" runat="server"
|
||||
Visible="true" EnableTheming="false"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||
<gtc:gtGridView ID="ContentGrid" runat="server" AutoGenerateColumns="False" EnableViewState="false">
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<Columns>
|
||||
<asp:BoundField HeaderText="显示序号" DataField="XLXSBJDMX_XSSX">
|
||||
<itemstyle width="50px" horizontalalign="Right" ></itemstyle>
|
||||
<headerstyle width="50px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="型号" DataField="XLXSBJDMX_XLXHID">
|
||||
<itemstyle width="120px"></itemstyle>
|
||||
<headerstyle width="120px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="规格" DataField="XLXSBJDMX_XLGGID">
|
||||
<itemstyle width="120px"></itemstyle>
|
||||
<headerstyle width="120px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="标准" DataField="XLBZ">
|
||||
<itemstyle width="60px"></itemstyle>
|
||||
<headerstyle width="60px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="电压等级" DataField="XLXSBJDMX_DYDJID">
|
||||
<itemstyle width="120px"></itemstyle>
|
||||
<headerstyle width="120px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="报价米数" DataField="BJMS">
|
||||
<itemstyle width="80px" horizontalalign="Right" ></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="分段要求" DataField="XLXSBJDMXFD_XLFDYQ">
|
||||
<itemstyle width="120px"></itemstyle>
|
||||
<headerstyle width="120px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="线缆外径(mm)" DataField="XLXSBJDMXFD_XLWJ">
|
||||
<itemstyle width="80px" horizontalalign="Right" ></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="最小弯曲倍数" DataField="XLXSBJDMXFD_ZXWQBS">
|
||||
<itemstyle width="80px" horizontalalign="Right" ></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="盘具匹配情况" DataField="XLXSBJDMXFD_PJPPQK">
|
||||
<itemstyle width="300px"></itemstyle>
|
||||
<headerstyle width="300px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="盘具总金额(元)" DataField="XLXSBJDMXFD_PJZJE">
|
||||
<itemstyle width="100px" horizontalalign="Right" ></itemstyle>
|
||||
<headerstyle width="100px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="盘具总皮重(Kg)" DataField="XLXSBJDMXFD_PJZPZ">
|
||||
<itemstyle width="100px" horizontalalign="Right" ></itemstyle>
|
||||
<headerstyle width="100px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="维护人" DataField="XLXSBJDMXFD_WHR">
|
||||
<itemstyle width="72px"></itemstyle>
|
||||
<headerstyle width="72px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="维护时间" DataField="XLXSBJDMXFD_WHSJ">
|
||||
<itemstyle width="125px"></itemstyle>
|
||||
<headerstyle width="125px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
</Columns>
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_XSSX" EditType="etnumber" NumberDecimalPlace="0" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_XLXHID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_XLGGID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLBZ" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_DYDJID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="BJMS" EditType="etnumber" NumberDecimalPlace="3" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMXFD_XLFDYQ" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMXFD_XLWJ" EditType="etnumber" NumberDecimalPlace="3" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMXFD_ZXWQBS" EditType="etnumber" NumberDecimalPlace="2" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMXFD_PJPPQK" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMXFD_PJZJE" EditType="etnumber" NumberDecimalPlace="2" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMXFD_PJZPZ" EditType="etnumber" NumberDecimalPlace="3" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMXFD_WHR" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMXFD_WHSJ" EditType="etDateTime" DateTimeEditKins="dtDateTime">
|
||||
</gtc:gtGridView_Column>
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
<asp:HiddenField ID="txtTJYZList" runat="server" />
|
||||
</asp:Content>
|
||||
|
||||
@@ -0,0 +1,499 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using GThinking.N_MODEL.Page;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using System.Collections.Generic;
|
||||
using GThinking.N_PUBLIC2;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class BJPF_FDList : SingleGridBase
|
||||
{
|
||||
BJPF_FD entity = new BJPF_FD();
|
||||
BJPF_FD_M queryentity = new BJPF_FD_M();
|
||||
|
||||
#region Page类事件继承
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860080;
|
||||
this.UMName = "线缆销售报价单盘费";
|
||||
this.CurMaster = Master;
|
||||
this.ModuleGV = ContentGrid;
|
||||
this.CurEntity = entity;
|
||||
this.CurQueryEntity = queryentity;
|
||||
this.PageHeight = 500;
|
||||
this.PageWidth = 700;
|
||||
this.sURLTarget = "BJPF_ZPList.aspx";
|
||||
this.sQueryURLTarget = "BJPF_FDQuery.aspx";
|
||||
base.DataKeyNames = new string[] { "XLXSBJDMX_BJDID", "XLXSBJDMX_XH" };
|
||||
|
||||
this.Master.EnableAttachBtn = false;
|
||||
this.CurMaster.EnableNewBtn = false;
|
||||
this.CurMaster.EnableCopyBtn = false;
|
||||
this.CurMaster.EnableEditBtn = false;
|
||||
this.CurMaster.EnableDeleteBtn = false;
|
||||
this.CurMaster.EnableWorkflowBtn = false;
|
||||
this.CurMaster.EnableViewBtn = false;
|
||||
base.InitPage();
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
Master_OnStandardQuery(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 模板继承事件
|
||||
|
||||
protected override void Master_OnStandardQuery(object sender, EventArgs e)
|
||||
{
|
||||
base.InitEntityByCondition();
|
||||
base.Master_OnStandardQuery(sender, e);
|
||||
entity.EntityTable.QuerySelSql = GetQuerySql();
|
||||
entity.GridDataBind(ContentGrid, tSession);
|
||||
}
|
||||
|
||||
protected override void moduleGV_PageIndexChanging(object sender, GridViewPageEventArgs e)
|
||||
{
|
||||
base.InitEntityByCondition();
|
||||
entity.EntityTable.QuerySelSql = GetQuerySql();
|
||||
ContentGrid.SelectedIndex = -1;
|
||||
base.moduleGV_PageIndexChanging(sender, e);
|
||||
}
|
||||
|
||||
protected override void moduleGV_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
LinkPageParam.AddString("XLXSBJDMX_BJDID", ContentGrid.DataKeys[e.Row.RowIndex]["XLXSBJDMX_BJDID"].ToString().Trim());
|
||||
LinkPageParam.AddString("XLXSBJDMX_XH", ContentGrid.DataKeys[e.Row.RowIndex]["XLXSBJDMX_XH"].ToString().Trim());
|
||||
LinkPageParam.AddString("YZID", PageParam.GetRTrimString("YZID"));
|
||||
LinkPageParam.AddString("YZMC", PageParam.GetRTrimString("YZMC"));
|
||||
LinkPageParam.AddString("BJFLID", PageParam.GetRTrimString("BJFLID"));
|
||||
LinkPageParam.AddString("XTCPBJYZ", PageParam.GetRTrimString("XTCPBJYZ"));
|
||||
LinkPageParam.AddString("CPQYYF", "N");
|
||||
}
|
||||
base.moduleGV_RowDataBound(sender, e);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 私有函数
|
||||
|
||||
private string GetQuerySql()
|
||||
{
|
||||
string sBJDID = PageParam.GetRTrimString("BJDID");
|
||||
bool bQCYFYZCP = QCYFYZCP(sBJDID, PageParam.GetRTrimString("BJFLID"));
|
||||
Dictionary<string, double> dicLenJLDWTD = XLBJDUtils.GetLenJLDWTD();
|
||||
string sSQL = " select XLXSBJDMX_BJDID,XLXSBJDMX_XH,XLXSBJDMX_XSSX,XLXSBJDMX_XLXHID,XLXSBJDMX_XLGGID,XLXSBJDMX_XLBZID,"
|
||||
+ " case when isnull(XLBZ_XLBZID,' ') = ' ' then ' ' else rtrim(XLBZ_XLBZID) || '|' || rtrim(XLBZ_XLBZLXMC) end as XLBZ,XLXSBJDMX_DYDJID,"
|
||||
+ " (case when XLXSBJDMX_JLDW in ('Km', '千米') then 1000 when XLXSBJDMX_JLDW in ('M', '米') then 1 ";
|
||||
foreach (string sKey in dicLenJLDWTD.Keys)
|
||||
{
|
||||
sSQL += string.Format(" when XLXSBJDMX_JLDW='{0}' then {1} ", sKey, dicLenJLDWTD[sKey]);
|
||||
}
|
||||
sSQL += " else 0 end ) * XLXSBJDMX_BJSL as BJMS,XLXSBJDMXFD_PJPPQK,"
|
||||
+ " XLXSBJDMXFD_XLFDYQ,isnull(XLXSBJDMXFD_XLWJ,0) as XLXSBJDMXFD_XLWJ,isnull(XLXSBJDMXFD_ZXWQBS,0) as XLXSBJDMXFD_ZXWQBS,isnull(XLXSBJDMXFD_PJZJE,0) as XLXSBJDMXFD_PJZJE,isnull(XLXSBJDMXFD_PJZPZ,0) as XLXSBJDMXFD_PJZPZ,XLXSBJDMXFD_WHR,XLXSBJDMXFD_WHSJ "
|
||||
+ " from XLXSBJDMX "
|
||||
+ " left join XLBZ on XLBZ_XLBZID = XLXSBJDMX_XLBZID "
|
||||
+ " left join XLXSBJDMXFD on XLXSBJDMXFD_BJDID = XLXSBJDMX_BJDID and XLXSBJDMXFD_BJDXH = XLXSBJDMX_XH "
|
||||
+ " left join XLXSBJXLGGTHB on XLXSBJXLGGTHB_XLGGID = XLXSBJDMX_XLGGID ";
|
||||
if (bQCYFYZCP)
|
||||
{
|
||||
sSQL += " left join XLXSBJXHML A on A.XLXSBJXHML_XLXHID = XLXSBJDMX_XLXHID and A.XLXSBJXHML_DYDJID = isnull(XLXSBJDMX_DYDJID, ' ') ";
|
||||
sSQL += " left join XLXSBJXHML B on B.XLXSBJXHML_XLXHID = XLXSBJDMX_XLXHID and B.XLXSBJXHML_DYDJID = ' ' ";
|
||||
sSQL += " left join XLXSCPML on XLXSCPML_CPMLID = case when ISNULL(A.XLXSBJXHML_CPMLID,' ') = ' ' then ISNULL(B.XLXSBJXHML_CPMLID,' ') else ISNULL(A.XLXSBJXHML_CPMLID,' ') end ";
|
||||
}
|
||||
sSQL += " where XLXSBJDMX_BJDID ='" + sBJDID + "' and XLXSBJDMX_BJSL>0 and (XLXSBJDMX_JLDW in ('Km', '千米','M','米') ";
|
||||
foreach (string sKey in dicLenJLDWTD.Keys)
|
||||
{
|
||||
sSQL += string.Format(" or XLXSBJDMX_JLDW='{0}'", sKey);
|
||||
}
|
||||
sSQL += " ) ";
|
||||
if (bQCYFYZCP)
|
||||
{
|
||||
sSQL += " and not exists(select 1 from XLXSBJDQYFB4SY1 where XLXSBJDQYFB4SY1_CPMLID = XLXSCPML_CPMLID )";
|
||||
}
|
||||
//型号模糊
|
||||
if (!CurQueryEntity.FieldByName("XLXHIDJQPP").Value.ToString().Trim().ToUpper().Equals("TRUE"))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("XLXHID").Value.Trim()))
|
||||
{
|
||||
sSQL += " \r\n and XLXSBJDMX_XLXHID like :pXLXHID ";
|
||||
entity.Param.Add("pXLXHID", "%" + CurQueryEntity.FieldByName("XLXHID").Value.Trim() + "%");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string sXLXHID = CurQueryEntity.FieldByName("XLXHID").Value.Trim();
|
||||
if (!string.IsNullOrEmpty(sXLXHID))
|
||||
{
|
||||
string[] sTemp = sXLXHID.Split(new Char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
if (sTemp.Length >= 2)
|
||||
{
|
||||
sSQL += "\r\n and " + CMISproDataBase.GetWhereEqual("XLXSBJDMX_XLXHID", sXLXHID);
|
||||
}
|
||||
else
|
||||
{
|
||||
sSQL += " \r\n and XLXSBJDMX_XLXHID = :pXLXHID ";
|
||||
entity.Param.Add("pXLXHID", sXLXHID);
|
||||
}
|
||||
}
|
||||
}
|
||||
//规格模糊
|
||||
if (!CurQueryEntity.FieldByName("XLGGIDJQPP").Value.ToString().Trim().ToUpper().Equals("TRUE"))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("XLGGID").Value.Trim()))
|
||||
{
|
||||
sSQL += " and XLXSBJXLGGTHB_XLGGIDCH like :pXLGGID ";
|
||||
entity.Param.Add("pXLGGID", "%" + CurQueryEntity.FieldByName("XLGGID").Value.Trim().Replace("*", "×") + "%");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string sXLGGID = CurQueryEntity.FieldByName("XLGGID").Value.Trim();
|
||||
if (!string.IsNullOrEmpty(sXLGGID))
|
||||
{
|
||||
string[] sTemp = sXLGGID.Split(new Char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
if (sTemp.Length >= 2)
|
||||
{
|
||||
sSQL += " and " + CMISproDataBase.GetWhereEqual(" XLXSBJXLGGTHB_XLGGIDCH ", sXLGGID.Replace('*', '×'));
|
||||
}
|
||||
else
|
||||
{
|
||||
sSQL += " and XLXSBJXLGGTHB_XLGGIDCH = :pXLGGID ";
|
||||
entity.Param.Add("pXLGGID", CurQueryEntity.FieldByName("XLGGID").Value.Trim().Replace("*", "×"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("XLBZID").Value.Trim()))
|
||||
{
|
||||
sSQL += " \r\n and XLXSBJDMX_XLBZID = :pXLBZID ";
|
||||
entity.Param.Add("pXLBZID", CurQueryEntity.FieldByName("XLBZID").Value.Trim());
|
||||
}
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("DYDJID").Value.Trim()))
|
||||
{
|
||||
sSQL += " and " + CMISproDataBase.GetWhereEqual("XLXSBJDMX_DYDJID", CurQueryEntity.FieldByName("DYDJID").Value.Trim());
|
||||
}
|
||||
|
||||
|
||||
sSQL += " order by XLXSBJDMX_XSSX,XLXSBJDMX_XH ";
|
||||
|
||||
return sSQL;
|
||||
}
|
||||
|
||||
//是否需要去除计算运费的报价产品
|
||||
private bool QCYFYZCP(string sBJDID, string sBJFLID)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
SQL.Clear();
|
||||
SQL.Add(" select XLXSBJFLYZ_BJFLID,XLXSTZYZ_TJMDID from XLXSBJFLYZ ");
|
||||
SQL.Add(" left join XLXSTZYZ on XLXSTZYZ_YZID = XLXSBJFLYZ_YZID and XLXSTZYZ_MXBH = 'BJD' ");
|
||||
SQL.Add(" where XLXSTZYZ_TJMDID = 100860071 and XLXSBJFLYZ_BJFLID = :pBJFLID ");
|
||||
SQL.ParamByName("pBJFLID").Value = sBJFLID;
|
||||
DataSet ds = dberp.OpenDataSet(SQL);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
SQL.Clear();
|
||||
SQL.Add(" select 1 from XLXSBJD");
|
||||
SQL.Add(" left join XLXSBJDQYFZB on XLXSBJDQYFZB_XZQHID = XLXSBJD_XZQHID ");
|
||||
SQL.Add(" where XLXSBJD_BJDID = :pBJDID ");
|
||||
SQL.Add(" and (XLXSBJDQYFZB_YFJSFS like '%3%' or XLXSBJDQYFZB_YFJSFS like '%4%')");
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
ds = dberp.OpenDataSet(SQL);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 控件事件
|
||||
|
||||
protected void btnRefresh_Click(object sender, EventArgs e)
|
||||
{
|
||||
moduleGV_PageIndexChanging(null, null);
|
||||
FormAreaUpdate();
|
||||
}
|
||||
|
||||
protected void btnZDCDZP_Click(object sender, EventArgs e)
|
||||
{
|
||||
string sBJDID = PageParam.GetRTrimString("BJDID");
|
||||
if (CMISproDataBase.ExistsRecord("DBERP", string.Format("select 1 from XLXSBJDMXFD where XLXSBJDMXFD_BJDID = '{0}'", sBJDID)))
|
||||
{
|
||||
Confirm.Register("IsQD", "已有匹盘数据将清空,是否继续?");
|
||||
Confirm.ShowBtnText = TConfirm.cBtnText.Yes_No;
|
||||
if (Confirm.GetValue("IsQD").Trim().Equals(""))
|
||||
{
|
||||
Confirm.Ask("IsQD");
|
||||
return;
|
||||
}
|
||||
else if (Confirm.GetValue("IsQD").Trim().Equals("N"))
|
||||
{
|
||||
//表示进行了提示并选择了取消,直接返回或其他处理
|
||||
Confirm.Clear();
|
||||
return;
|
||||
}
|
||||
else if (Confirm.GetValue("IsQD").Trim().Equals("Y"))
|
||||
{
|
||||
//表示进行了提示并选择了确认
|
||||
Confirm.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
Dictionary<string, double> dicLenJLDWTD = XLBJDUtils.GetLenJLDWTD();
|
||||
try
|
||||
{
|
||||
dberp.BeginTrans();
|
||||
|
||||
bool bQCYFYZCP = QCYFYZCP(sBJDID, PageParam.GetRTrimString("BJFLID"));
|
||||
|
||||
SQL.Clear();
|
||||
SQL.Add(" select XLXSBJDMX_XH,XLXSBJDMX_XLXHID,XLXSBJDMX_XLGGID,XLXSBJDMX_XLBZID,XLXSBJDMX_DYDJID, ");
|
||||
SQL.Add(" case when XLXSBJDMX_JLDW in ('Km', '千米') then 'Km' when XLXSBJDMX_JLDW in ('M', '米') then 'M' ");
|
||||
foreach (string sKey in dicLenJLDWTD.Keys)
|
||||
{
|
||||
SQL.Add(string.Format(" when XLXSBJDMX_JLDW='{0}' then '{0}' ", sKey));
|
||||
}
|
||||
SQL.Add(" else ' ' end as XLXSBJDMX_JLDW, ");
|
||||
SQL.Add(" (case when XLXSBJDMX_JLDW in ('Km', '千米') then 1000 when XLXSBJDMX_JLDW in ('M', '米') then 1 ");
|
||||
foreach (string sKey in dicLenJLDWTD.Keys)
|
||||
{
|
||||
SQL.Add(string.Format(" when XLXSBJDMX_JLDW='{0}' then {1} ", sKey, dicLenJLDWTD[sKey]));
|
||||
}
|
||||
SQL.Add(" else 0 end ) as DWXS, XLXSBJDMX_BJSL ");
|
||||
SQL.Add(" from XLXSBJDMX ");
|
||||
if (bQCYFYZCP)
|
||||
{
|
||||
SQL.Add(" left join XLXSBJXHML A on A.XLXSBJXHML_XLXHID = XLXSBJDMX_XLXHID and A.XLXSBJXHML_DYDJID = isnull(XLXSBJDMX_DYDJID, ' ') ");
|
||||
SQL.Add(" left join XLXSBJXHML B on B.XLXSBJXHML_XLXHID = XLXSBJDMX_XLXHID and B.XLXSBJXHML_DYDJID = ' ' ");
|
||||
SQL.Add(" left join XLXSCPML on XLXSCPML_CPMLID = case when ISNULL(A.XLXSBJXHML_CPMLID,' ') = ' ' then ISNULL(B.XLXSBJXHML_CPMLID,' ') else ISNULL(A.XLXSBJXHML_CPMLID,' ') end ");
|
||||
}
|
||||
SQL.Add(" where XLXSBJDMX_BJDID = :pBJDID and XLXSBJDMX_BJSL>0 and (XLXSBJDMX_JLDW in ('Km', '千米','M','米') ");
|
||||
foreach (string sKey in dicLenJLDWTD.Keys)
|
||||
{
|
||||
SQL.Add(string.Format(" or XLXSBJDMX_JLDW='{0}'", sKey));
|
||||
}
|
||||
SQL.Add(" )");
|
||||
if (bQCYFYZCP)
|
||||
{
|
||||
SQL.Add(" and not exists(select 1 from XLXSBJDQYFB4SY1 where XLXSBJDQYFB4SY1_CPMLID = XLXSCPML_CPMLID )");
|
||||
}
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
DataSet ds = dberp.OpenDataSet(SQL);
|
||||
foreach (DataRow trow in ds.Tables[0].Rows)
|
||||
{
|
||||
string sXH = trow["XLXSBJDMX_XH"].ToString().Trim();
|
||||
string sXLXHID = trow["XLXSBJDMX_XLXHID"].ToString().Trim();
|
||||
string sXLGGID = trow["XLXSBJDMX_XLGGID"].ToString().Trim();
|
||||
string sXLBZID = trow["XLXSBJDMX_XLBZID"].ToString().Trim();
|
||||
string sDYDJID = trow["XLXSBJDMX_DYDJID"].ToString().Trim();
|
||||
string sBJDJLDW = trow["XLXSBJDMX_JLDW"].ToString().Trim();
|
||||
double dDWZL = XLBJDUtils.GetCLZL(sXLXHID, sXLGGID, sXLBZID, sDYDJID);
|
||||
double dDWXS = CMISproConvert.StrToFloat(trow["DWXS"].ToString().Trim());
|
||||
double dBJSL = CMISproConvert.StrToFloat(trow["XLXSBJDMX_BJSL"].ToString().Trim());
|
||||
double dBJMS = dBJSL * dDWXS;
|
||||
|
||||
Dictionary<string, double> dicXLWJ_ZXWQBS = BJPF_ZPList.GetXLWJ_ZXWQBS(sXLXHID, sXLGGID, sXLBZID, sDYDJID);
|
||||
double dXLWJ = dicXLWJ_ZXWQBS["XLWJ"];
|
||||
double dZXWQBS = dicXLWJ_ZXWQBS["ZXWQBS"];
|
||||
|
||||
double dZXZPCD = 0;
|
||||
double dZDZPCD = 0;
|
||||
List<XLZPPJBLModel> XLPJList = XLUtils.getXLZPPJBLList(dXLWJ.ToString(), "", "", "", "", "", dZXWQBS.ToString());
|
||||
for (int i = 0; i < XLPJList.Count; i++)
|
||||
{
|
||||
if (i == 0)
|
||||
dZXZPCD = CMISproConvert.StrToFloat(XLPJList[i].XLZPCD_ZXZPCD);
|
||||
if (dZXZPCD > CMISproConvert.StrToFloat(XLPJList[i].XLZPCD_ZXZPCD))
|
||||
dZXZPCD = CMISproConvert.StrToFloat(XLPJList[i].XLZPCD_ZXZPCD);
|
||||
if (dZDZPCD < CMISproConvert.StrToFloat(XLPJList[i].XLZPCD_ZDZPCD))
|
||||
dZDZPCD = CMISproConvert.StrToFloat(XLPJList[i].XLZPCD_ZDZPCD);
|
||||
}
|
||||
|
||||
Dictionary<double, string> dicFDYQ = new Dictionary<double, string>();
|
||||
BJPF_ZPList.ZDPCPP(dBJMS, dZDZPCD, dZXZPCD, XLPJList, ref dicFDYQ);
|
||||
|
||||
string sFDYQ = "";
|
||||
foreach (double dZPXH in dicFDYQ.Keys)
|
||||
{
|
||||
if (!sFDYQ.Equals(""))
|
||||
sFDYQ += "+";
|
||||
sFDYQ += dicFDYQ[dZPXH];
|
||||
}
|
||||
|
||||
string sErrorMessage = "";
|
||||
|
||||
double dFDPJZJE = 0;
|
||||
double dFDPJZPZ = 0;
|
||||
double dPFYZZ = 0;
|
||||
string sYZJJFS = BJPF_ZPList.GetBJDYZJJFS(PageParam.GetRTrimString("YZID"));
|
||||
|
||||
BJPF_ZPList.PJPPJS(dberp, SQL, sBJDID, sXH, sFDYQ, dicFDYQ, dZDZPCD, dZXZPCD, PageParam.GetRTrimString("YZID"), sXLXHID, sXLGGID, sXLBZID, sDYDJID, sBJDJLDW, PageParam.GetRTrimString("XTCPBJYZ"),
|
||||
dDWXS.ToString().Trim(), dXLWJ, dZXWQBS, dBJMS, dDWZL.ToString().Trim(), GetOption(100860000, "BJU002"), GetOption(100860000, "BJU003"), sYZJJFS, tSession, "N", ref sErrorMessage, ref dFDPJZJE, ref dFDPJZPZ, ref dPFYZZ);
|
||||
|
||||
if (!sErrorMessage.Equals(""))
|
||||
throw new Exception(sErrorMessage);
|
||||
}
|
||||
|
||||
dberp.CommitTrans();
|
||||
|
||||
btnRefresh_Click(null, null);
|
||||
ShowMessage("已按最大装盘长度计算盘费!");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ShowMessage(ex.Message);
|
||||
dberp.RollbackTrans();
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnHSSYPJ_Click(object sender, EventArgs e)
|
||||
{
|
||||
string sBJDID = PageParam.GetRTrimString("BJDID");
|
||||
|
||||
Confirm.Register("IsQD", "回收所有盘具将不再产生盘费,是否继续?");
|
||||
Confirm.ShowBtnText = TConfirm.cBtnText.Yes_No;
|
||||
if (Confirm.GetValue("IsQD").Trim().Equals(""))
|
||||
{
|
||||
Confirm.Ask("IsQD");
|
||||
return;
|
||||
}
|
||||
else if (Confirm.GetValue("IsQD").Trim().Equals("N"))
|
||||
{
|
||||
//表示进行了提示并选择了取消,直接返回或其他处理
|
||||
Confirm.Clear();
|
||||
return;
|
||||
}
|
||||
else if (Confirm.GetValue("IsQD").Trim().Equals("Y"))
|
||||
{
|
||||
//表示进行了提示并选择了确认
|
||||
Confirm.Clear();
|
||||
}
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
Dictionary<string, double> dicLenJLDWTD = XLBJDUtils.GetLenJLDWTD();
|
||||
try
|
||||
{
|
||||
dberp.BeginTrans();
|
||||
//更新装盘记录
|
||||
SQL.Clear();
|
||||
SQL.Add(" update XLXSBJDMXZP SET XLXSBJDMXZP_PJHS = 'Y' WHERE XLXSBJDMXZP_BJDID = :pBJDID ");
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
DataSet ds = dberp.OpenDataSet(SQL);
|
||||
dberp.ExecSQL(SQL);
|
||||
SQL.Clear();
|
||||
SQL.Add(" select XLXSBJDMX_XH,XLXSBJDMX_XLXHID,XLXSBJDMX_XLGGID,XLXSBJDMX_XLBZID,XLXSBJDMX_DYDJID, ");
|
||||
SQL.Add(" case when XLXSBJDMX_JLDW in ('Km', '千米') then 'Km' when XLXSBJDMX_JLDW in ('M', '米') then 'M' ");
|
||||
foreach (string sKey in dicLenJLDWTD.Keys)
|
||||
{
|
||||
SQL.Add(string.Format(" when XLXSBJDMX_JLDW='{0}' then '{0}' ", sKey));
|
||||
}
|
||||
SQL.Add(" else ' ' end as XLXSBJDMX_JLDW, ");
|
||||
SQL.Add(" (case when XLXSBJDMX_JLDW in ('Km', '千米') then 1000 when XLXSBJDMX_JLDW in ('M', '米') then 1 ");
|
||||
foreach (string sKey in dicLenJLDWTD.Keys)
|
||||
{
|
||||
SQL.Add(string.Format(" when XLXSBJDMX_JLDW='{0}' then {1} ", sKey, dicLenJLDWTD[sKey]));
|
||||
}
|
||||
SQL.Add(" else 0 end ) as DWXS, XLXSBJDMX_BJSL ");
|
||||
SQL.Add(" from XLXSBJDMX where XLXSBJDMX_BJDID = :pBJDID and XLXSBJDMX_BJSL>0 and (XLXSBJDMX_JLDW in ('Km', '千米','M','米') ");
|
||||
foreach (string sKey in dicLenJLDWTD.Keys)
|
||||
{
|
||||
SQL.Add(string.Format(" or XLXSBJDMX_JLDW='{0}'", sKey));
|
||||
}
|
||||
SQL.Add(" )");
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
ds = dberp.OpenDataSet(SQL);
|
||||
foreach (DataRow trow in ds.Tables[0].Rows)
|
||||
{
|
||||
string sXH = trow["XLXSBJDMX_XH"].ToString().Trim();
|
||||
string sXLXHID = trow["XLXSBJDMX_XLXHID"].ToString().Trim();
|
||||
string sXLGGID = trow["XLXSBJDMX_XLGGID"].ToString().Trim();
|
||||
string sXLBZID = trow["XLXSBJDMX_XLBZID"].ToString().Trim();
|
||||
string sDYDJID = trow["XLXSBJDMX_DYDJID"].ToString().Trim();
|
||||
string sBJDJLDW = trow["XLXSBJDMX_JLDW"].ToString().Trim();
|
||||
double dDWZL = XLBJDUtils.GetCLZL(sXLXHID, sXLGGID, sXLBZID, sDYDJID);
|
||||
double dDWXS = CMISproConvert.StrToFloat(trow["DWXS"].ToString().Trim());
|
||||
double dBJSL = CMISproConvert.StrToFloat(trow["XLXSBJDMX_BJSL"].ToString().Trim());
|
||||
double dBJMS = dBJSL * dDWXS;
|
||||
|
||||
Dictionary<string, double> dicXLWJ_ZXWQBS = BJPF_ZPList.GetXLWJ_ZXWQBS(sXLXHID, sXLGGID, sXLBZID, sDYDJID);
|
||||
double dXLWJ = dicXLWJ_ZXWQBS["XLWJ"];
|
||||
double dZXWQBS = dicXLWJ_ZXWQBS["ZXWQBS"];
|
||||
|
||||
double dZXZPCD = 0;
|
||||
double dZDZPCD = 0;
|
||||
List<XLZPPJBLModel> XLPJList = XLUtils.getXLZPPJBLList(dXLWJ.ToString(), "", "", "", "", "", dZXWQBS.ToString());
|
||||
for (int i = 0; i < XLPJList.Count; i++)
|
||||
{
|
||||
if (i == 0)
|
||||
dZXZPCD = CMISproConvert.StrToFloat(XLPJList[i].XLZPCD_ZXZPCD);
|
||||
if (dZXZPCD > CMISproConvert.StrToFloat(XLPJList[i].XLZPCD_ZXZPCD))
|
||||
dZXZPCD = CMISproConvert.StrToFloat(XLPJList[i].XLZPCD_ZXZPCD);
|
||||
if (dZDZPCD < CMISproConvert.StrToFloat(XLPJList[i].XLZPCD_ZDZPCD))
|
||||
dZDZPCD = CMISproConvert.StrToFloat(XLPJList[i].XLZPCD_ZDZPCD);
|
||||
}
|
||||
|
||||
Dictionary<double, string> dicFDYQ = new Dictionary<double, string>();
|
||||
BJPF_ZPList.ZDPCPP(dBJMS, dZDZPCD, dZXZPCD, XLPJList, ref dicFDYQ);
|
||||
|
||||
string sFDYQ = "";
|
||||
foreach (double dZPXH in dicFDYQ.Keys)
|
||||
{
|
||||
if (!sFDYQ.Equals(""))
|
||||
sFDYQ += "+";
|
||||
sFDYQ += dicFDYQ[dZPXH];
|
||||
}
|
||||
|
||||
string sErrorMessage = "";
|
||||
|
||||
double dFDPJZJE = 0;
|
||||
double dFDPJZPZ = 0;
|
||||
double dPFYZZ = 0;
|
||||
string sYZJJFS = BJPF_ZPList.GetBJDYZJJFS(PageParam.GetRTrimString("YZID"));
|
||||
|
||||
if (XLBJDUtils.GetXLXSBJPZXX(100860000).XLXSBJPZ_PFBJRBJ == "Y")
|
||||
{
|
||||
BJPF_ZPList.UpdatePJJE(dberp, SQL, sBJDID, sXH, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
BJPF_ZPList.PJFD(dberp, SQL, sBJDID, sXH, sFDYQ, dXLWJ, dZXWQBS, tSession, ref sErrorMessage, ref dFDPJZJE, ref dFDPJZPZ);
|
||||
BJPF_ZPList.PFJS(dberp, SQL, sBJDID, sXH, PageParam.GetRTrimString("YZID"), sXLXHID, sXLGGID, sXLBZID, sDYDJID, sBJDJLDW, PageParam.GetRTrimString("XTCPBJYZ"),
|
||||
dDWXS.ToString().Trim(), dBJMS, GetOption(100860000, "BJU002"), GetOption(100860000, "BJU003"), sYZJJFS, tSession, ref sErrorMessage, ref dPFYZZ);
|
||||
}
|
||||
if (!sErrorMessage.Equals(""))
|
||||
throw new Exception(sErrorMessage);
|
||||
}
|
||||
dberp.CommitTrans();
|
||||
CloseWindow();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ShowMessage(ex.Message);
|
||||
dberp.RollbackTrans();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+88
@@ -0,0 +1,88 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9172
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BJPF_FDList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class BJPF_FDList {
|
||||
|
||||
/// <summary>
|
||||
/// CustomButton 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table CustomButton;
|
||||
|
||||
/// <summary>
|
||||
/// btnZDCDZP 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnZDCDZP;
|
||||
|
||||
/// <summary>
|
||||
/// btnHSSYPJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnHSSYPJ;
|
||||
|
||||
/// <summary>
|
||||
/// btnRefresh 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnRefresh;
|
||||
|
||||
/// <summary>
|
||||
/// ContentGrid 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView ContentGrid;
|
||||
|
||||
/// <summary>
|
||||
/// txtTJYZList 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtTJYZList;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleGrid Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleGrid)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user