Update 成品入库

This commit is contained in:
Ling 2024-06-06 12:26:43 +08:00
parent d9316ce676
commit 7d49dc2b2a
12 changed files with 623 additions and 561 deletions

View File

@ -46,39 +46,45 @@ namespace Maticsoft.DAL
{
StringBuilder strSql = new StringBuilder();
strSql.Append("insert into nr_z_cprk(");
strSql.Append("rkbh,riqi,scdh,kw,rkxm,cpmc,bzgg,zzsl,lt,sl,dw,jsr,bz,zt)");
strSql.Append("rkbh,riqi,scdh,kw,cpbh,cpmc,rkxm,bzgg,guige,zzsl,lt,sl,danwei,songhuoren,shdizhi,zje,jsr,beizhu,zt)");
strSql.Append(" values (");
strSql.Append("@rkbh,@riqi,@scdh,@kw,@rkxm,@cpmc,@bzgg,@zzsl,@lt,@sl,@dw,@jsr,@bz,@zt)");
strSql.Append("@rkbh,@riqi,@scdh,@kw,@cpbh,@cpmc,@rkxm,@bzgg,@guige,@zzsl,@lt,@sl,@danwei,@songhuoren,@shdizhi,@zje,@jsr,@beizhu,@zt)");
strSql.Append(";select @@IDENTITY");
SqlParameter[] parameters = {
new SqlParameter("@rkbh", SqlDbType.VarChar,50),
new SqlParameter("@riqi", SqlDbType.DateTime),
new SqlParameter("@scdh", SqlDbType.VarChar,50),
new SqlParameter("@kw", SqlDbType.VarChar,2000),
new SqlParameter("@rkxm", SqlDbType.VarChar,50),
new SqlParameter("@cpbh", SqlDbType.VarChar,50),
new SqlParameter("@cpmc", SqlDbType.VarChar,50),
new SqlParameter("@rkxm", SqlDbType.VarChar,50),
new SqlParameter("@bzgg", SqlDbType.Decimal,9),
new SqlParameter("@guige", SqlDbType.Decimal,9),
new SqlParameter("@zzsl", SqlDbType.Int,4),
new SqlParameter("@lt", SqlDbType.Decimal,9),
new SqlParameter("@sl", SqlDbType.Decimal,9),
new SqlParameter("@dw", SqlDbType.VarChar,50),
new SqlParameter("@danwei", SqlDbType.VarChar,50),
new SqlParameter("@zje", SqlDbType.Decimal,9),
new SqlParameter("@jsr", SqlDbType.VarChar,50),
new SqlParameter("@bz", SqlDbType.VarChar,2000),
new SqlParameter("@beizhu", SqlDbType.VarChar,2000),
new SqlParameter("@zt", SqlDbType.VarChar,50)};
parameters[0].Value = model.rkbh;
parameters[1].Value = model.riqi;
parameters[2].Value = model.scdh;
parameters[3].Value = model.kw;
parameters[4].Value = model.rkxm;
parameters[4].Value = model.cpbh;
parameters[5].Value = model.cpmc;
parameters[6].Value = model.bzgg;
parameters[7].Value = model.zzsl;
parameters[8].Value = model.lt;
parameters[9].Value = model.sl;
parameters[10].Value = model.dw;
parameters[11].Value = model.jsr;
parameters[12].Value = model.bz;
parameters[13].Value = model.zt;
parameters[6].Value = model.rkxm;
parameters[7].Value = model.bzgg;
parameters[8].Value = model.guige;
parameters[9].Value = model.zzsl;
parameters[10].Value = model.lt;
parameters[11].Value = model.sl;
parameters[12].Value = model.danwei;
parameters[13].Value = model.zje;
parameters[14].Value = model.jsr;
parameters[15].Value = model.beizhu;
parameters[16].Value = model.zt;
object obj = DbHelperSQL.GetSingle(strSql.ToString(), parameters);
if (obj == null)
@ -95,21 +101,46 @@ namespace Maticsoft.DAL
/// </summary>
public bool Update(Maticsoft.Model.nr_z_cprk model)
{
/*
rkbh
riqi
scdh
kw
cpbh
cpmc
rkxm
bzgg
guige
zzsl
lt
sl
danwei
zje
jsr
beizhu
zt
*/
StringBuilder strSql = new StringBuilder();
strSql.Append("update nr_z_cprk set ");
strSql.Append("rkbh=@rkbh,");
strSql.Append("riqi=@riqi,");
strSql.Append("scdh=@scdh,");
strSql.Append("kw=@kw,");
strSql.Append("rkxm=@rkxm,");
strSql.Append("cpbh=@cpbh,");
strSql.Append("cpmc=@cpmc,");
strSql.Append("rkxm=@rkxm,");
strSql.Append("bzgg=@bzgg,");
strSql.Append("guige=@guige,");
strSql.Append("zzsl=@zzsl,");
strSql.Append("lt=@lt,");
strSql.Append("sl=@sl,");
strSql.Append("dw=@dw,");
strSql.Append("danwei=@danwei,");
strSql.Append("zje=@zje,");
strSql.Append("jsr=@jsr,");
strSql.Append("bz=@bz,");
strSql.Append("beizhu=@beizhu,");
strSql.Append("zt=@zt");
strSql.Append(" where id=@id");
SqlParameter[] parameters = {
@ -117,33 +148,38 @@ namespace Maticsoft.DAL
new SqlParameter("@riqi", SqlDbType.DateTime),
new SqlParameter("@scdh", SqlDbType.VarChar,50),
new SqlParameter("@kw", SqlDbType.VarChar,2000),
new SqlParameter("@rkxm", SqlDbType.VarChar,50),
new SqlParameter("@cpbh", SqlDbType.VarChar,50),
new SqlParameter("@cpmc", SqlDbType.VarChar,50),
new SqlParameter("@rkxm", SqlDbType.VarChar,50),
new SqlParameter("@bzgg", SqlDbType.Decimal,9),
new SqlParameter("@guige", SqlDbType.Decimal,9),
new SqlParameter("@zzsl", SqlDbType.Int,4),
new SqlParameter("@lt", SqlDbType.Decimal,9),
new SqlParameter("@sl", SqlDbType.Decimal,9),
new SqlParameter("@dw", SqlDbType.VarChar,50),
new SqlParameter("@danwei", SqlDbType.VarChar,50),
new SqlParameter("@zje", SqlDbType.Decimal,9),
new SqlParameter("@jsr", SqlDbType.VarChar,50),
new SqlParameter("@bz", SqlDbType.VarChar,2000),
new SqlParameter("@beizhu", SqlDbType.VarChar,2000),
new SqlParameter("@zt", SqlDbType.VarChar,50),
new SqlParameter("@id", SqlDbType.Int,4)};
parameters[0].Value = model.rkbh;
parameters[1].Value = model.riqi;
parameters[2].Value = model.scdh;
parameters[3].Value = model.kw;
parameters[4].Value = model.rkxm;
parameters[4].Value = model.cpbh;
parameters[5].Value = model.cpmc;
parameters[6].Value = model.bzgg;
parameters[7].Value = model.zzsl;
parameters[8].Value = model.lt;
parameters[9].Value = model.sl;
parameters[10].Value = model.dw;
parameters[11].Value = model.jsr;
parameters[12].Value = model.bz;
parameters[13].Value = model.zt;
parameters[14].Value = model.id;
parameters[6].Value = model.rkxm;
parameters[7].Value = model.bzgg;
parameters[8].Value = model.guige;
parameters[9].Value = model.zzsl;
parameters[10].Value = model.lt;
parameters[11].Value = model.sl;
parameters[12].Value = model.danwei;
parameters[13].Value = model.zje;
parameters[14].Value = model.jsr;
parameters[15].Value = model.beizhu;
parameters[16].Value = model.zt;
parameters[17].Value = model.id;
int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
if (rows > 0)
{
@ -206,7 +242,7 @@ namespace Maticsoft.DAL
{
StringBuilder strSql = new StringBuilder();
strSql.Append("select top 1 id,rkbh,riqi,scdh,kw,rkxm,cpmc,bzgg,zzsl,lt,sl,dw,jsr,bz,zt from nr_z_cprk ");
strSql.Append("select top 1 id,rkbh, riqi, scdh, kw, cpbh, cpmc, rkxm, bzgg, guige, zzsl, lt, sl, danwei, zje, jsr, beizhu, zt from nr_z_cprk ");
strSql.Append(" where id=@id");
SqlParameter[] parameters = {
new SqlParameter("@id", SqlDbType.Int,4)
@ -231,70 +267,9 @@ namespace Maticsoft.DAL
/// </summary>
public Maticsoft.Model.nr_z_cprk DataRowToModel(DataRow row)
{
Maticsoft.Model.nr_z_cprk model=new Maticsoft.Model.nr_z_cprk();
if (row != null)
{
if(row["id"]!=null && row["id"].ToString()!="")
{
model.id=int.Parse(row["id"].ToString());
}
if(row["rkbh"]!=null)
{
model.rkbh=row["rkbh"].ToString();
}
if(row["riqi"]!=null && row["riqi"].ToString()!="")
{
model.riqi=DateTime.Parse(row["riqi"].ToString());
}
if(row["scdh"]!=null)
{
model.scdh=row["scdh"].ToString();
}
if(row["kw"]!=null)
{
model.kw=row["kw"].ToString();
}
if(row["rkxm"]!=null)
{
model.rkxm=row["rkxm"].ToString();
}
if(row["cpmc"]!=null)
{
model.cpmc=row["cpmc"].ToString();
}
if(row["bzgg"]!=null && row["bzgg"].ToString()!="")
{
model.bzgg=decimal.Parse(row["bzgg"].ToString());
}
if(row["zzsl"]!=null && row["zzsl"].ToString()!="")
{
model.zzsl=int.Parse(row["zzsl"].ToString());
}
if(row["lt"]!=null && row["lt"].ToString()!="")
{
model.lt=decimal.Parse(row["lt"].ToString());
}
if(row["sl"]!=null && row["sl"].ToString()!="")
{
model.sl=decimal.Parse(row["sl"].ToString());
}
if(row["dw"]!=null)
{
model.dw=row["dw"].ToString();
}
if(row["jsr"]!=null)
{
model.jsr=row["jsr"].ToString();
}
if(row["bz"]!=null)
{
model.bz=row["bz"].ToString();
}
if(row["zt"]!=null)
{
model.zt=row["zt"].ToString();
}
}
var model = Mapper.CreateItem<Maticsoft.Model.nr_z_cprk>(row);
return model;
}
@ -304,7 +279,7 @@ namespace Maticsoft.DAL
public DataSet GetList(string strWhere)
{
StringBuilder strSql = new StringBuilder();
strSql.Append("select id,rkbh,riqi,scdh,kw,rkxm,cpmc,bzgg,zzsl,lt,sl,dw,jsr,bz,zt ");
strSql.Append("select id,rkbh, riqi, scdh, kw, cpbh, cpmc, rkxm, bzgg, guige, zzsl, lt, sl, danwei, zje, jsr, beizhu, zt ");
strSql.Append(" FROM nr_z_cprk ");
if (strWhere.Trim() != "")
{
@ -324,7 +299,7 @@ namespace Maticsoft.DAL
{
strSql.Append(" top " + Top.ToString());
}
strSql.Append(" id,rkbh,riqi,scdh,kw,rkxm,cpmc,bzgg,zzsl,lt,sl,dw,jsr,bz,zt ");
strSql.Append(" id,rkbh, riqi, scdh, kw, cpbh, cpmc, rkxm, bzgg, guige, zzsl, lt, sl, danwei, zje, jsr, beizhu, zt ");
strSql.Append(" FROM nr_z_cprk ");
if (strWhere.Trim() != "")
{

View File

@ -116,6 +116,7 @@
<SubType>Code</SubType>
</Compile>
<Compile Include="DESEncrypt.cs" />
<Compile Include="Mapper.cs" />
<Compile Include="PubConstant.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />

36
DBUtility/Mapper.cs Normal file
View File

@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Reflection;
using System.Text;
namespace Maticsoft.DBUtility
{
public class Mapper
{
public static T CreateItem<T>(DataRow row)
{
T obj = default(T);
if (row != null)
{
obj = Activator.CreateInstance<T>();
foreach (DataColumn column in row.Table.Columns)
{
PropertyInfo prop = obj.GetType().GetProperty(column.ColumnName);
try
{
object value = row[column.ColumnName];
prop.SetValue(obj, value, null);
}
catch
{ //You can log something here
//throw;
}
}
}
return obj;
}
}
}

View File

@ -1,12 +1,14 @@
using System;
namespace Maticsoft.Model
{
/// <summary>
/// nr_z_cprk:实体类(属性说明自动提取数据库字段的描述信息)
/// </summary>
[Serializable]
public partial class nr_z_cprk
{
public nr_z_cprk()
{ }
#region Model
@ -16,15 +18,22 @@ namespace Maticsoft.Model
private string _scdh;
private string _kw;
private string _rkxm;
private string _cpbh;
private string _cpmc;
private decimal? _bzgg;
private decimal? _guige;
private int? _zzsl;
private decimal? _lt;
private decimal? _sl;
private string _dw;
private decimal? _zje;
private string _jsr;
private string _bz;
private string _zt;
/// <summary>
///
/// </summary>
@ -73,6 +82,16 @@ namespace Maticsoft.Model
set { _rkxm = value; }
get { return _rkxm; }
}
/// <summary>
///
/// </summary>
public string cpbh
{
set { _cpbh = value; }
get { return _cpbh; }
}
/// <summary>
///
/// </summary>
@ -81,6 +100,16 @@ namespace Maticsoft.Model
set { _cpmc = value; }
get { return _cpmc; }
}
/// <summary>
///
/// </summary>
public decimal? guige
{
set { _guige = value; }
get { return _guige; }
}
/// <summary>
///
/// </summary>
@ -116,11 +145,21 @@ namespace Maticsoft.Model
/// <summary>
///
/// </summary>
public string dw
public string danwei
{
set { _dw = value; }
get { return _dw; }
}
/// <summary>
///
/// </summary>
public decimal? zje
{
set { _zje = value; }
get { return _zje; }
}
/// <summary>
///
/// </summary>
@ -132,7 +171,7 @@ namespace Maticsoft.Model
/// <summary>
///
/// </summary>
public string bz
public string beizhu
{
set { _bz = value; }
get { return _bz; }

View File

@ -40,10 +40,10 @@
.right-top-dh h4{ padding-left:8px;color: #363636;border-left: 2px solid #0098cd; font-size: 16px; }
.right-top-an{ float:left;height:30px;}/*width:800px;*/
.ulgongju{height:30px;}
.ulgongju li{list-style:none;float:left; cursor:pointer; width:66px;margin-left:5px;
.ulgongju li{list-style:none;float:left; cursor:pointer; width:30px;margin-left:5px;
}
.daohangxlk{ height:25px;cursor:pointer; width:68px; padding:3px; margin-left:10px; margin-top:3px;box-shadow:inset 0px 1px 1px rgba(0,0,0,0.075);-webkit-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; border:1px solid #cccccc; }
.ulgongju li img{width:55px; height:25px; margin-top:2px;}
.ulgongju li img{width:25px; height:25px; margin-top:2px;}
.Gjxzhu{ height:85px; display:none; border-bottom:1px solid #eee; margin-bottom:10px;}
.right-top-fy{float:right; width:300px; height:30px; line-height:30px;}
.right-gjxnr{width:100%; height:80px; text-align:center;}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@ -107,10 +107,9 @@
<table class="tablewk">
<tr><td style=" height:20px" colspan="13"></td></tr>
<tr>
<td class="wktblm"><span>库编号</span></td><td><asp:TextBox id="ckdh" runat="server" CssClass="tbinput_hx" ReadOnly Text="自动生成" ForeColor="Gray" Enabled=false AutoCompleteType=none BorderStyle=None ></asp:TextBox></td>
<td class="wktblm"><span><font>库日期</font></span></td><td><input name='txt_control_date' type='text' id='riqi' size='10' maxlength='10' onclick='new Calendar().show(this);' readonly='readonly' runat=server class="tbinput_bt" /></td>
<td class="wktblm"><span>库编号</span></td><td><asp:TextBox id="ckdh" runat="server" CssClass="tbinput_hx" ReadOnly Text="自动生成" ForeColor="Gray" Enabled=false AutoCompleteType=none BorderStyle=None ></asp:TextBox></td>
<td class="wktblm"><span><font>库日期</font></span></td><td><input name='txt_control_date' type='text' id='riqi' size='10' maxlength='10' onclick='new Calendar().show(this);' readonly='readonly' runat=server class="tbinput_bt" /></td>
<td class="wktblm"><span><font>单据编号</font></span></td><td ><input type=text id="scdh" readonly runat="server" class="tbinput_bt" onclick="selectscd()"></td>
<td class="wktblm"><span><font>客户名称</font></span></td><td ><input type=text id="khming" readonly runat="server" class="tbinput_bt" onclick="selectkh()" /></td>
<td class="wktblm"><span><font>产品编号</font></span></td><td><input type='text' id='cpbh' size='10' readonly='readonly' runat=server class="tbinput_bt" onclick="selectcp()" /></td>
<td class="wktblm"><span>产品名称</span></td><td ><input type=text id="cpmc" runat="server" readonly class="tbinput_hx"/></td>
<td class="tdjj5">&nbsp </td>
@ -126,18 +125,11 @@
</tr>
<tr>
<td class="wktblm"><span>单位</span></td><td><input type=text id="danwei" readonly runat="server" class="tbinput_hx" /></td>
<td class="wktblm"><span>联系人</span></td><td><input type=text id="lxr" runat="server" class="tbinput" /></td>
<td class="wktblm"><span>联系电话</span></td><td><input type=text id="lxdh" runat="server" class="tbinput" /></td>
<td class="wktblm"><span>经手人</span></td><td><input type=text id="jingshouren" readonly runat="server" class="tbinput_hx" /></td>
<td class="wktblm"><span>送货人</span></td><td><input type=text id="shr" runat="server" class="tbinput" /></td>
<td class="wktblm"><span>状态</span></td><td ><input type=text id="zhuangtai" runat="server" class="tbinput_hx" value='待确认' /></td>
<td class="tdjj5">&nbsp </td>
</tr>
<tr>
<td class="wktblm"><span>送货地址</span></td><td colspan="11"><input type=text id="dizhi" runat="server" class="tbinput" /></td>
<td class="tdjj5">&nbsp </td>
</tr>
<tr>
<td class="wktblm"><span>备注</span></td><td colspan="11"><asp:TextBox id="txt_beizhu" runat="server" CssClass="tbinput"></asp:TextBox></td>
<td class="tdjj5">&nbsp </td>
</tr>

View File

@ -11,9 +11,9 @@ public partial class Productin_Form : System.Web.UI.Page
//创建一个操作记录bll
Maticsoft.BLL.nr_sys_rizhi rizhibll = new Maticsoft.BLL.nr_sys_rizhi();
//创建一个共用的申购单模板
Maticsoft.Model.nr_z_cpck cpckmodel = new Maticsoft.Model.nr_z_cpck();
Maticsoft.Model.nr_z_cprk cpckmodel = new Maticsoft.Model.nr_z_cprk();
//创建一个共同的申购单bll
Maticsoft.BLL.nr_z_cpck cpckbll = new Maticsoft.BLL.nr_z_cpck();
Maticsoft.BLL.nr_z_cprk cprkbll = new Maticsoft.BLL.nr_z_cprk();
//创建一个操作记录模板
Maticsoft.Model.nr_sys_rizhi rizhi = new Maticsoft.Model.nr_sys_rizhi();
@ -41,7 +41,7 @@ public partial class Productin_Form : System.Web.UI.Page
pdquanxian(user.juese);
riqi.Value = DateTime.Now.Year + "-" + DateTime.Now.Month + "-" + DateTime.Now.Day;
jingshouren.Value = user.zhanghao;
shr.Value = user.zhanghao;
//shr.Value = user.zhanghao;
}
@ -50,25 +50,25 @@ public partial class Productin_Form : System.Web.UI.Page
#region
private void initdata(int did)
{
cpckmodel = cpckbll.GetModel(did);
ckdh.Text = cpckmodel.ckbh;
cpckmodel = cprkbll.GetModel(did);
ckdh.Text = cpckmodel.rkbh;
riqi.Value = cpckmodel.riqi.ToString("yyyy-MM-dd");
scdh.Value = cpckmodel.scdh;
khming.Value = cpckmodel.khmc;
//khming.Value = cpckmodel.khmc;
cpbh.Value = cpckmodel.cpbh;
cpmc.Value = cpckmodel.cpmc;
danjia.Value = cpckmodel.cpdj.ToString();
//danjia.Value = cpckmodel.cpdj.ToString();
guige.Value = cpckmodel.guige.ToString();
zzshuliang.Value = cpckmodel.zzsl.ToString();
lingtou.Value = cpckmodel.lt.ToString();
shuliang.Value = cpckmodel.sl.ToString();
danwei.Value = cpckmodel.danwei;
lxr.Value = cpckmodel.lxr;
//lxr.Value = cpckmodel.lxr;
zongjine.Value = cpckmodel.zje.ToString();
lxdh.Value = cpckmodel.lxdh;
//lxdh.Value = cpckmodel.lxdh;
jingshouren.Value = cpckmodel.jsr;
shr.Value = cpckmodel.shr;
dizhi.Value = cpckmodel.shdizhi;
//shr.Value = cpckmodel.shr;
//dizhi.Value = cpckmodel.shdizhi;
txt_beizhu.Text = cpckmodel.beizhu;
zhuangtai.Value = cpckmodel.zt;
}
@ -77,24 +77,24 @@ public partial class Productin_Form : System.Web.UI.Page
#region model对象
private void getmd()
{
cpckmodel.ckbh = ckdh.Text;
cpckmodel.rkbh = ckdh.Text;
cpckmodel.riqi = Convert.ToDateTime(riqi.Value);
cpckmodel.scdh = scdh.Value;
cpckmodel.khmc = khming.Value;
//cpckmodel.khmc = khming.Value;
cpckmodel.cpbh = cpbh.Value;
cpckmodel.cpmc = cpmc.Value;
cpckmodel.cpdj = Convert.ToDecimal(danjia.Value);
//cpckmodel.cpdj = Convert.ToDecimal(danjia.Value);
cpckmodel.guige = Convert.ToDecimal(guige.Value);
cpckmodel.zzsl = Convert.ToInt32(zzshuliang.Value);
cpckmodel.lt = Convert.ToDecimal(lingtou.Value);
cpckmodel.sl = Convert.ToDecimal(shuliang.Value);
cpckmodel.danwei = danwei.Value;
cpckmodel.lxr = lxr.Value;
//cpckmodel.lxr = lxr.Value;
cpckmodel.zje = Convert.ToDecimal(zongjine.Value);
cpckmodel.lxdh = lxdh.Value;
//cpckmodel.lxdh = lxdh.Value;
cpckmodel.jsr = jingshouren.Value;
cpckmodel.shr = shr.Value;
cpckmodel.shdizhi = dizhi.Value;
//cpckmodel.shr = shr.Value;
//cpckmodel.shdizhi = dizhi.Value;
cpckmodel.beizhu = txt_beizhu.Text;
cpckmodel.zt = zhuangtai.Value;
@ -148,7 +148,7 @@ public partial class Productin_Form : System.Web.UI.Page
if (id.Value != null && id.Value != "")
{
cpckmodel.id = Convert.ToInt32(id.Value);
if (cpckbll.Update(cpckmodel))
if (cprkbll.Update(cpckmodel))
{
rtx = Convert.ToInt32(id.Value);
caozuo = "修改";
@ -156,9 +156,9 @@ public partial class Productin_Form : System.Web.UI.Page
}
else
{
cpckmodel.ckbh = DBHlper.getbh("CPCK-", "nr_z_cpck", "ckbh", 4);
cpckmodel.rkbh = DBHlper.getbh("CPRK-", "nr_z_cprk", "rkbh", 4);
// bh.Text = sgdmodel.sgdbianhao;
rtx = cpckbll.Add(cpckmodel);
rtx = cprkbll.Add(cpckmodel);
}
if (rtx > 0)
{
@ -166,8 +166,8 @@ public partial class Productin_Form : System.Web.UI.Page
Maticsoft.Model.nr_z_yhzh zh = (Maticsoft.Model.nr_z_yhzh)Session["user"];
rizhi.yonghuming = zh.zhanghao;
//拼接字符串插入日志
rizhi.jilu = zh.zhanghao + caozuo + "了成品出库,出库单号为:" + ckdh.Text.Trim();
rizhi.leixing = "成品库";
rizhi.jilu = zh.zhanghao + caozuo + "了成品入库,入库单号为:" + ckdh.Text.Trim();
rizhi.leixing = "成品库";
rizhi.riqi = DateTime.Now;
rizhibll.Add(rizhi);
Response.Redirect("Productin_browse.aspx?uid=" + rtx, false);

View File

@ -30,7 +30,7 @@
$("body", parent.document).find('#shuliang').val(xinxizu[2]);
$("body", parent.document).find('#danjia').val(xinxizu[3]);
$("body", parent.document).find('#danwei').val(xinxizu[4]);
$("body", parent.document).find('#btn_cpclose').click();
//$("body", parent.document).find('#btn_cpclose').click();
//$("body", parent.document).find('#guige').keyup();
}
else if (pagename == 'cpbom') {
@ -39,7 +39,7 @@
$("body", parent.document).find('#mxlx' + rowval).val("产品");
$("body", parent.document).find('#cpdj' + rowval).val(xinxizu[3]);
$("body", parent.document).find('#cpdw' + rowval).val(xinxizu[4]);
$("body", parent.document).find('#btn_cpclose').click();
//$("body", parent.document).find('#btn_cpclose').click();
} else if (pagename == 'dd') {
$("body", parent.document).find('#mxlx' + rowval).val("产品");
$("body", parent.document).find('#cphh' + rowval).val(xinxizu[0]);
@ -51,9 +51,16 @@
$("body", parent.document).find('#danwei' + rowval).val(xinxizu[4]);
$("body", parent.document).find('#danjia' + rowval).val(xinxizu[3]);
$("body", parent.document).find('#btn_cpclose').click();
//$("body", parent.document).find('#btn_cpclose').click();
} else if (pagename == 'cprk') {
$("body", parent.document).find('#cpbh').val(xinxizu[0]);
$("body", parent.document).find('#cpmc').val(xinxizu[1]);
$("body", parent.document).find('#shuliang').val(xinxizu[2]);
$("body", parent.document).find('#danjia').val(xinxizu[3]);
$("body", parent.document).find('#danwei').val(xinxizu[4]);
}
$("body", parent.document).find('#btn_cpclose').click();
}
function select(obj) {
$(".xz").attr("src", "../Images_Folder/checkOff1.png");

View File

@ -28,24 +28,36 @@
$(obj).children("td:first").children().attr("src", "../Images_Folder/checkOn1.png");
}
function check(id) {
debugger
var xinxi = ddselect_shengchandan.getxinxi(id).value;
var xxzu = xinxi.split('/');
var pagename = $("body", parent.document).find('#pagename').val();
if (pagename == 'sg') {
$("body", parent.document).find('#txt_shengchandan').val(xxzu[1]);
$("body", parent.document).find('#scdidhidden').val(xxzu[0]);
} else if (pagename == 'qtck') {
$("body", parent.document).find('#scdh').val(xxzu[1]);
$("body", parent.document).find('#khbh').val(xxzu[10]);
$("body", parent.document).find('#khmc').val(xxzu[3]);
} else if (pagename == 'cpck') {
$("body", parent.document).find('#scdh').val(xxzu[1]);
$("body", parent.document).find('#lxr').val(xxzu[6]);
$("body", parent.document).find('#lxdh').val(xxzu[7]);
$("body", parent.document).find('#khming').val(xxzu[3]);
$("body", parent.document).find('#dizhi').val(xxzu[9]);
$("body", parent.document).find('#guige').val(xxzu[8]);
$("body", parent.document).find('#shuliang').val(xxzu[8]);
} else if (pagename == 'cprk') {
/*
else if (pagename == 'cprk') {
$("body", parent.document).find('#shengchandan').val(xxzu[1]);
$("body", parent.document).find('#xiangmu').val(xxzu[4]);
$("body", parent.document).find('#rpmingcheng').val(xxzu[4]);
$("body", parent.document).find('#danwei').val(xxzu[5]);
$("body", parent.document).find('#guige').val(xxzu[8]);
$("body", parent.document).find('#shuliang').val(xxzu[8]);
} else if (pagename == 'qtck') {
$("body", parent.document).find('#scdh').val(xxzu[1]);
$("body", parent.document).find('#khbh').val(xxzu[10]);
$("body", parent.document).find('#khmc').val(xxzu[3]);
} else if (pagename == 'cpck') {
}
*/
$("body", parent.document).find('#scdh').val(xxzu[1]);
$("body", parent.document).find('#lxr').val(xxzu[6]);
$("body", parent.document).find('#lxdh').val(xxzu[7]);