2026821
This commit is contained in:
@@ -0,0 +1,102 @@
|
||||
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;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXHB", Umid = 100860000, IsWorkFlow = false, UseWhr = false, IsAttach = false,
|
||||
|
||||
QuerySelSql = "",
|
||||
|
||||
EntitySelSql = "",
|
||||
|
||||
UpdateSql = "",
|
||||
|
||||
InsertSql = " ")]
|
||||
|
||||
public class MXOperXLXH : EntityManager
|
||||
{
|
||||
}
|
||||
|
||||
public partial class XLBJD_MXOperXLXH : SingleCardBase
|
||||
{
|
||||
MXOperXLXH entity = new MXOperXLXH();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860000;
|
||||
this.UMName = "线缆销售报价单";
|
||||
this.CurMaster = Master;
|
||||
this.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)
|
||||
{
|
||||
InitControls();
|
||||
}
|
||||
}
|
||||
|
||||
#region 自定义函数
|
||||
private void InitControls()
|
||||
{
|
||||
TComboBox.SetComboBox("DBERP", cbxCPYT, "select XLCPYT_CPYT,XLCPYT_CPYTMC from XLCPYT where 1=1 order by XLCPYT_XSSX,XLCPYT_CPYT", true);
|
||||
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sSQL = new TSQL(dberp);
|
||||
sSQL.Clear();
|
||||
sSQL.Add("select XLXHB_CPYT,XLXHB_XLXHBH from XLXHB where XLXHB_XLXHID=:pXLXHID");
|
||||
sSQL.ParamByName("pXLXHID").Value = PageParam.GetRTrimString("XLXHID");
|
||||
DataSet ds = dberp.OpenDataSet(sSQL);
|
||||
txtXLXHID.Text = PageParam.GetRTrimString("XLXHID");
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
cbxCPYT.SelectedValue = ds.Tables[0].Rows[0]["XLXHB_CPYT"].ToString().Trim();
|
||||
txtXLXHBH.Text = ds.Tables[0].Rows[0]["XLXHB_XLXHBH"].ToString().Trim();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 控件事件
|
||||
protected void btnQD_Click(object sender, EventArgs e)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sSQL = new TSQL(dberp);
|
||||
sSQL.Add("update XLXHB set XLXHB_CPYT=:pCPYT,XLXHB_XLXHBH=:pXLXHBH where XLXHB_XLXHID=:pXLXHID");
|
||||
sSQL.ParamByName("pCPYT").Value = cbxCPYT.SelectedValue.Trim();
|
||||
sSQL.ParamByName("pXLXHBH").Value = txtXLXHBH.Text.Trim();
|
||||
sSQL.ParamByName("pXLXHID").Value = PageParam.GetRTrimString("XLXHID");
|
||||
dberp.ExecSQL(sSQL);
|
||||
|
||||
DialogOperationScript dos = new DialogOperationScript(this);
|
||||
dos.ClickOwnerButton(PageParam.GetRTrimString("RefreshCtrlID"));
|
||||
dos.CloseSelf();
|
||||
dos.Execute();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user