erp系统发货

  • 时间:
  • 浏览:667
  • 来源:成都艾邦软件开发
产品添加批号后相应修改产品库存表中对应批次产品的数量
 /// summary/// 产品添加批号后相应修改产品库存表中对应批次产品的数量/// /summary/// param namestockproid库存表主键编号/param/// param nameprocount发货的数量/param/// returnsint/returnspublic static int BioProStockUpdateCount(int stockproid, int procount){SqlParameter[] pars  new SqlParameter[]{new SqlParameter(ID,stockproid),new SqlParameter(ProCout,procount)};return   DataBaseHelper.ExcuteSqlReturnInt(BioProStockUpdateCount, CommandType.StoredProcedure, pars);}

 视图实现按发货单查询产品批次信息将查询结果进行数据绑定

CREATE VIEW [dbo].[ViewSendProBaths]ASSELECT a.ProBatchID,\ta.SendProID, a.batchNum,a.boxNum,a.proCount,a.ProStockID,CONVERT(NVARCHAR(10),a.stockDate,121)
AS stockDate,a.stockID,CONVERT(NVARCHAR(10),a.expirationDate,121) AS expirationDate,\tCONVERT(NVARCHAR(10),a.makeDate,121)AS makeDate,a.isprinted ,b.SendID,b.ProID,b.ProCount AS procounttotalFROM dbo.BioSendProBatch AS a INNER JOIN dbo.BioSendGoodsProAS b ON b.SendProID a.SendProID

 当前产品批次的数量和库存表中的数量进行比较Ajax代码

//判断产品数量是否满足需求function isProBathCountFull(obj) {//库存表编号主键var prostockid  $($(obj).parent().parent().find(input[namestockproid])[0]).val();var procount$(obj).val();if (prostockid !   prostockid !undefined) {if (procount !   procount !undefined  procount ! 0) {$.ajax({type: POST, //设置提交方式url: getProBatchCount.aspx,data: prostockid  prostockid  procount  procount, //提交数据success: function (msg) {if (msg  OK) {} else {alert(msg);$(obj).attr(value, );}}});}} else {alert(请先选择产品);$(obj).attr(value, );}}

 后台代码

protected void Page_Load(object sender, EventArgs e){string returnResult  ;//定义返回状态this.Response.Clear();string prostockid  Request.Form[prostockid].ToString();string procount  Request.Form[procount].ToString();returnResult  prostockid      procount;object obj  SqlComm.GetObjectByCondition(dbo.BioProStock, isnull(ProCout,0),  ID  prostockid);if (obj ! null){if (int.Parse(obj.ToString())  int.Parse(procount)){returnResult  此产品此批次库存不足,最多发货数据  obj.ToString();}else{returnResult  OK;}}this.Response.Write(returnResult);this.Response.End();}

 修改的前台代码

% Page LanguageC# AutoEventWireuptrue CodeBehindSendGoodsEdit.aspx.cs  TransactionRequired   InheritsBioErpWeb.SendGoods.SendGoodsEdit %!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN  charsetUTF-8  /TR/xhtml1/DTD/xhtml1-transitional.dtdhtml xmlns/1999/xhtmlhead runatserver title/titlelink href../Styles/ERPBaseStyle.css relstylesheet typetext/css /script src../Scripts/jquery-1.4.1.js typetext/javascript/scriptscript src../Scripts/jquery.validate.js typetext/javascript/scriptlink href../Styles/SharpRound.css relstylesheet typetext/css /script src../Scripts/validateExtender.js typetext/javascript/scriptscript src../Scripts/ValidateMessage_ZW.js typetext/javascript/scriptscript src../Scripts/jquery.metadata.js typetext/javascript/scriptlink href../Styles/InputStyle1.css relstylesheet typetext/css /script src../JS/CheckDepartMent.js typetext/javascript/scriptscript src../Scripts/jquery-ui-1.7.custom.min.js typetext/javascript/scriptlink href../Scripts/jquery-ui-1.7.custom.css relstylesheet typetext/css /script src../JS/CheckUserName.js typetext/javascript/scriptscript src../JS/CustomerName.js typetext/javascript/scriptscript src../JS/ProNameChoose.js typetext/javascript/scriptscript src../Scripts/Comm.js typetext/javascript/scriptscript typetext/javascript$(document).ready(function () {$(#form1).validate();var loginuserid%Session[Userid]%;//判断当前登录用户是否是表单制表人本人if(loginuserid!$(#hf_applayUserid).val()){$(document).find(input[typetext]).each(function(){if($(this).attr(id)!txtRemark){$(this).attr(readonly,true);}});$(document).find(.btnchoose).each(function(){$(this).hide();});$(document).find(span[namelbShow]).each(function(){$(this).append(暂无操作);});}//下次审核人员需要设置可用$(#btnUser0).show();//是否具备财务审核权限var isisfinance %isfinance %;if(isisfinancetrue){$(#trfinance).show();}//是否具备质量审核权限var isisquality %isquality %;if(isisqualitytrue){$(#spanquality).show();}//是否具备仓库审核条件var isstock1%isstock %if(isstock1true){$(#spanstock).show();}else{$(#spanstock).hide();}//是否具备产品批号添加权限var isprobatch %isprobatch %;//判断当前用户是否具备产品批号添加权限并且财务已经审核并且产品质量已经审核//显示相应操作按钮if(isprobatchtrue$(#cbisfinance).attr(checked)true$(#cbquality).attr(checked)true){//显示添加批号的按钮$(document).find(input[namebtnaddbatch]).each(function(){$(this).show();})//隐藏添加行的按钮$(document).find(input[namebtnaddrow]).each(function(){$(this).hide();});//隐藏删除当前行的按按钮$(document).find(input[namebtndeleterow]).each(function(){$(this).hide();});}else{//隐藏添加批号的按钮$(document).find(input[namebtnaddbatch]).each(function(){$(this).hide();})//显示添加行的按钮$(document).find(input[namebtnaddrow]).each(function(){$(this).show();});//显示删除当前行的按按钮$(document).find(input[namebtndeleterow]).each(function(){$(this).show();});}//如果已经添加产品批号则此表单不能在进行添加产品数据删除原来数据var count%probaths %if(count0){//显示添加行的按钮$(document).find(input[namebtnaddrow]).each(function(){$(this).hide();});//显示删除当前行的按按钮$(document).find(input[namebtndeleterow]).each(function(){$(this).hide();});}//如果库存审核已经通过则所有选择按钮不可用if($(#cbISstock).attr(checked)true){$(.btnchoose).each(function(){$(this).hide();});$(#trpostinfo).show();$(document).find(input[typetext]).each(function(){$(this).attr(readonly,true);});$(document).find(span[namelbShow]).each(function(){$(this).append(暂无操作);});}});function addrow() {var tr  trtdinput  typetext nameproName classrequired style width:200px/input typehidden nameproID /input value选择 typebutton οnclickshowProName() classbtnchoose//tdtdinput  typetext nameproCount class{required:true,min:1,digits:true} style width:100px//tdtdinput οnkeyupsetvalue(this) οnchangesetvalue(this)  typetext nameproPrice class{required:true,min:0.1,number:true} style width:100px//tdtdinput  typetext nameinvoiceProPice class{required:true,min:0.1,number:true} style width:100px//tdtd  stylewidth:150px;input  typebutton  value添加行 οnclickaddrow() classbtnchoose/ input  typebutton  value删除行 οnclickdeleterow() classbtnchoose//td/tr;var obj  window.event.srcElement;var parenttr  obj.parentNode.parentNode;$(parenttr).after(tr);}function deleterow() {if ($(input[nameproname]).length  1) {var obj  window.event.srcElement;var parenttr  obj.parentNode.parentNode;$(parenttr).remove();}else{alert(至少要有一行数据);}}function deleterow1() {if ($(input[nameproname0]).length  1) {var obj  window.event.srcElement;var parenttr  obj.parentNode.parentNode;$(parenttr).remove();}else{alert(至少要有一行数据);}}function setbatch() {var procount  0;var boxnum  1;var isprocountfalse;$(#trprobatch).show();var obj  window.event.srcElement;var tr  obj.parentNode.parentNode;var inputs  tr.getElementsByTagName(input);$(#divprobatch).find(input[nameproIds]).each(function () {if (inputs[1].value  $(this).val()) {boxnum;procount  parseInt($(this).parent().parent().find(input[nametxtProCount0]).val());if (procount  parseInt(inputs[3].value)) {isprocounttrue;if(isprocount){$(this).parent().parent().find(input[nametxtProCount0]).attr(value, 0);alert(产品总数已经达到不能为此产品添加批号);}// event.stopPropagation();}}})if(!isprocount){//2011年11月29日22:28:00//新添加一个控件input typehidden namePurchaseProID2///去掉所有复合验证中的;号var trbatch  tr td idtd2input idtxtProName0 nameproname0 value  inputs[0].value   readonlyreadonly nametxtProName0  stylewidth: 200px typetext classinput size50 /input typehidden nameproIds value  inputs[1].value  / /td;trbatch  tdinput idtxtProCount0 nametxtProCount0 οnkeyupisProBathCountFull(this)  class{required:true,min:1,digits:true} typetext size5 /input typehidden nameoldprobatchcount value0//tdtdinput idtxtProBatch0  readonlyreadonly nametxtProBatch0 typetext size11 / /td;trbatch  tdinput idtxtProBoxNum0 nametxtProBoxNum0 value  boxnum   readonlyreadonly  typetext size11 / /td;trbatch  tdinput idtxtMarkDate0 nametxtMarkDate0size11 class{required:true,dateISO:true}  typetext readonlyreadonly //td;trbatch  tdinput idtxtExPirationDate0 nametxtExPirationDate0   class{required:true,dateISO:true}  size11 typetext readonlyreadonly /;trbatch  /td tdinput idtxtStockDate0 nametxtStockDate0   class{required:true,dateISO:true}  size11 typetext readonlyreadonly //tdtdinput typehidden valueinputs[6].value nameSendProID2/input typebutton classbtnchoose2 value选择 οnclickshowProstock(this) /span  /span input typebutton classbtnchoose2 value删除 οnclickdeleterow1()/input idHidden2 namestockproid typehidden /input idHidden2 namestockid typehidden /input  nameProBatchID value0 typehidden /;trbatch  /td/tr;$(#probatchtr).after(trbatch);}$(document).find(input[nametxtMarkDate0]).each(function(){$(this).datepicker({dateFormat:yy-mm-dd});});$(document).find(input[nametxtExPirationDate0]).each(function(){$(this).datepicker({dateFormat:yy-mm-dd});});}function showProstock(obj){var proid  $($($($(obj).parent()).parent()).find(input[nameproIds])[0]).val();var urlSendGoodsSelectProStock.aspx?proIDproid;var winFeaturesdialogHeight:500px;dialogwidth:800px;dependedno;scroll:auto;center:yes;;var re window.showModalDialog(url,null, winFeatures);if(re!undefined){var stockproid$($($(obj).parent()).parent()).find(input[namestockproid]);stockproid[0].valuere[0];var txtProBatch0$($($(obj).parent()).parent()).find(input[nametxtProBatch0]);txtProBatch0[0].valuere[1];var txtProCount$($($(obj).parent()).parent()).find(input[nametxtProCount0]);txtProCount[0].valuere[2];var txtExPirationDate$($($(obj).parent()).parent()).find(input[nametxtExPirationDate0]);txtExPirationDate[0].valuere[3];var txtStockDate$($($(obj).parent()).parent()).find(input[nametxtStockDate0]);txtStockDate[0].valuere[4];var txtMarkDate$($($(obj).parent()).parent()).find(input[nametxtMarkDate0]);txtMarkDate[0].valuere[5];var  stockid$($($(obj).parent()).parent()).find(input[namestockid]);stockid[0].valuere[6];}}//判断产品数量是否满足需求function isProBathCountFull(obj) {//库存表编号主键var prostockid  $($(obj).parent().parent().find(input[namestockproid])[0]).val();var procount$(obj).val();if (prostockid !   prostockid !undefined) {if (procount !   procount !undefined  procount ! 0) {$.ajax({type: POST, //设置提交方式url: getProBatchCount.aspx,data: prostockid  prostockid  procount  procount, //提交数据success: function (msg) {if (msg  OK) {} else {alert(msg);$(obj).attr(value, );}}});}} else {alert(请先选择产品);$(obj).attr(value, );}}/scriptstyle typetext/css.trbar{ background-color:#eeeeee;}.w80{ width:80px;}.w100{ width:100px;}.w150{ width:150px;}.style1{width: 150px;}.style2{width: 85px;}.style3{width: 128px;}.style15{width: 235px;}.style20{width: 157px;}.style24{width: 304px;}.style29{width: 90px;}#trpostinfo{}#trpostinfo span{ margin:0px 20px;}/style/headbodyform idform1 runatserverasp:ScriptManager IDScriptManager1 runatserver/asp:ScriptManagerdivtable classmaintable Inupttable style width:900px;trtd colspan8 classtitlebar商品销售发货审核/td/trtrtd classw80申请部门/tdtd classstyle1asp:DropDownList IDddlDepartMent runatserver/asp:DropDownList/tdtd classstyle2 colspan2制表人asp:Label IDlbApplayUser runatserver /asp:Label/tdtd经手人/tdtd classstyle15asp:TextBox IDtxtRealUserID CssClass{required:true,digits:true, min:1}runatserver Width78px/asp:TextBoxinput idbtnUsertypebutton  value选择  classbtnchoose   οnclickshowDialog3() /asp:LabelIDlbRealUserName runatserver Text/asp:Label/tdtd制表时间/tdtdasp:Label IDlbTime runatserver TextLabel/asp:Label/td/tr/tableasp:UpdatePanel IDUpdatePanel1 runatserverContentTemplatetable classmaintable Inupttable style width:900px;trtd classw80订货客户/tdtd classw150asp:TextBox IDtxtSendCom runatserver Width59pxCssClass{required:true,digits:true, min:1}ontextchangedtxtSendCom_TextChanged/asp:TextBoxasp:Button IDButton1 Text选择 runatserver  UseSubmitBehaviorfalse  classbtnchooseOnClientClickshowCustomerDialog3()/asp:Label IDlbCustomer runatserver Text/asp:Label/tdtd classstyle20发货单位/tdtd classstyle24asp:DropDownList IDddlOuserCom runatserverasp:ListItem上海某某公司/asp:ListItemasp:ListItem成都某某公司/asp:ListItemasp:ListItem北京某某公司/asp:ListItemasp:ListItem雅安某某公司/asp:ListItem/asp:DropDownList/tdtd classstyle29发货类型/tdtdasp:DropDownList IDddlTypes runatserverasp:ListItem调拨/asp:ListItemasp:ListItem医院/asp:ListItemasp:ListItemOTC/asp:ListItemasp:ListItem其它/asp:ListItem/asp:DropDownList/td/trtrtd客户联系人/tdtdasp:DropDownList IDddlLinkMan runatserver AutoPostBackTrue  Width80pxonselectedindexchangedddlLinkMan_SelectedIndexChangedasp:ListItem Value0--请选择--/asp:ListItem/asp:DropDownListasp:TextBox IDtxtLinkman Width60px runatserver/asp:TextBox/tdtd classstyle20手机号码/tdtd classstyle24asp:TextBox IDtxtMobile runatserver/asp:TextBox/tdtd classstyle29工作电话/tdtdasp:TextBox IDtxtTelphone runatserver/asp:TextBox/td/tr/table/ContentTemplate /asp:UpdatePaneltable classmaintable Inupttable stylewidth: 900px;tr classtrbartd产品名称及规格/tdtd数量/tdtd单价/tdtd classstyle3开票价格/tdtd  stylewidth:150px;操作/td/tr%if (!IsPostBack){int count  this.dt.Rows.Count;if (count  0){return;}decimal totalprice  0;decimal totalinvoiceprice  0;for (int i  0; i  count; i){totalprice  (decimal.Parse(dt.Rows[i][ProPrice].ToString()) * int.Parse(dt.Rows[i][ProCount].ToString()));totalinvoiceprice  (decimal.Parse(dt.Rows[i][invoiceProPice].ToString()) * int.Parse(dt.Rows[i][ProCount].ToString()));%trtdinput typetext nameproName classrequired value%dt.Rows[i][ProName] % stylewidth: 200px /inputtypehidden nameproID value%dt.Rows[i][ProID] % /input value选择 typebutton οnclickshowProName()classbtnchoose //tdtdinput typetext nameproCount  value%dt.Rows[i][ProCount] % class{required:true,min:1,digits:true} stylewidth: 100px //tdtdinput typetext nameproPrice οnkeyupsetvalue(this)  value%decimal.Parse(dt.Rows[i][ProPrice].ToString()).ToString(0.00) % οnchangesetvalue(this)class{required:true,min:0.1,number:true} stylewidth: 100px //tdtdinput typetext nameinvoiceProPice  value%decimal.Parse(dt.Rows[i][invoiceProPice].ToString()).ToString(0.00) % class{required:true,min:0.1,number:true}stylewidth: 100px //tdtd  stylewidth:150px;input  typehidden nameSendproID value%dt.Rows[i][SendProID] % /input namebtnaddrow typebutton value添加一行 stylefont-size: 11px; οnclickaddrow() classbtnchoose /input namebtndeleterow  typebutton  value删除行 οnclickdeleterow() classbtnchoose/input namebtnaddbatch  typebutton  value添加批号 οnclicksetbatch() style display:none; classbtnchoose/asp:Label  namelbShow runatserver Text/asp:Label/td/tr%}%trtd  colspan5 classbottomtdspan总金额:/spanspan classmoney%totalprice.ToString(0.00)%/span  span总开票金额:/spanspan classmoney%totalinvoiceprice.ToString(0.00)%/span/td/tr%}%tr idtrprobatch styledisplay:none;td colspan5div iddivprobatchtable idtb2 alignleft cellpadding0 border0 cellspacing0 style width99%;tr idprobatchtr classtrbartd stylewidth: 200px;订货产品名称及规格只读/tdtd stylewidth: 70px;数量/tdtd stylewidth: 95px;批号只读/tdtd stylewidth: 95px;货号只读/tdtd stylewidth: 120px;生产日期只读/tdtd stylewidth: 120px;有效期只读/tdtd stylewidth: 120px;入库日期只读/tdtd stylewidth: 150px;操作/td/tr%if (!IsPostBack){int probathscount  this.probathsdt.Rows.Count;if (probathscount  0){for (int i  0; i  probathscount; i){%trtd idtd2input  nameproname0 value%this.probathsdt.Rows[i][ProName] % readonlyreadonly stylewidth: 200px typetext classinput size50 /input typehidden nameproIds value%this.probathsdt.Rows[i][ProID] % //tdtdinput nametxtProCount0  class{required:true,min:1,digits:true}   οnkeyupisProBathCountFull(this)  typetext size5 value%this.probathsdt.Rows[i][proCount] % /input typehidden nameoldprobatchcount value%this.probathsdt.Rows[i][proCount] % //tdtdinput  nametxtProBatch0 typetext readonlyreadonly  value%this.probathsdt.Rows[i][batchNum] % size11 //tdtdinput nametxtProBoxNum0 readonlyreadonly value%this.probathsdt.Rows[i][boxNum] %typetext size11 //tdtdinput  nametxtMarkDate0 size11 readonlyreadonly class{required:true,dateISO:true} value%this.probathsdt.Rows[i][makeDate] %typetext  //tdtdinput  nametxtExPirationDate0 readonlyreadonly value%this.probathsdt.Rows[i][expirationDate] % class{required:true,dateISO:true}size11 typetext //tdtdinput  nametxtStockDate0  class{required:true,dateISO:true} value%this.probathsdt.Rows[i][stockDate] %size11 typetext readonlyreadonly //tdtd暂无操作input typehidden value%this.probathsdt.Rows[i][SendProID] % nameSendProID2 /span /spaninput namestockproid value%this.probathsdt.Rows[i][ProStockID] % typehidden /input  namestockid value%this.probathsdt.Rows[i][stockID] % typehidden /input  nameProBatchID value%this.probathsdt.Rows[i][ProBatchID] % typehidden //td/tr%}}}%/table/div/td/trtr idtrfinance styledisplay:none;td colspan5asp:UpdatePanel IDUpdatePanel2 runatserverContentTemplatespan财务审核:/spanspanasp:CheckBox IDcbisfinance runatserver  Text已付款AutoPostBackTrue oncheckedchangedcbisfinance_CheckedChanged/asp:LabelIDLabel1 runatserver Text账单编号/asp:Labelasp:Label IDlbBillNo runatserver Text未生成/asp:Label/spanspan idspanquality style margin-left:100px; display:none;质量审核:spanasp:CheckBox IDcbquality runatserver  Text审核通过//span/spanspan idspanstock style margin-left:100px;仓库审核:spaninput typecheckbox idcbISstock runatserver   οnchange{if(this.checked){$(#trpostinfo).show();}else{$(#trpostinfo).hide();}} value可以出库//span/span/ContentTemplate/asp:UpdatePanel/td/trtr idtrpostinfo styledisplay:none;td colspan5span物流单位:asp:TextBox IDtxtPostUnit runatserver/asp:TextBox/spanspan联系方式(电话):asp:TextBox IDtxtPhone runatserver/asp:TextBox/spanspan物流方式:asp:DropDownList IDddlPostWay runatserver Height17pxasp:ListItem邮政EMS/asp:ListItemasp:ListItem申通快递/asp:ListItemasp:ListItem SelectedTrue自定义/asp:ListItem/asp:DropDownListasp:TextBox IDtxtPostWay runatserver/asp:TextBox/spanspan备注:asp:TextBox IDtxtpostRemark runatserver/asp:TextBox/span/td/tr/tabletable classmaintable Inupttable style width:900px;trtd历史审批意见/tdtd  colspan3asp:Label IDlbHistory runatserver Text/asp:Label/td/trtrtd备注/tdtdasp:TextBox IDtxtRemark  runatserver  Width523px/asp:TextBox/tdtd下次审批人/tdtdasp:TextBox IDtxtNetUserId CssClass{required:true,digits:true, min:1}runatserver Width70px/asp:TextBoxinput idbtnUser0  typebutton  value选择  classbtnchooseοnclickshowDialog3() //td/trtrtd colspan8 classbottomtdasp:HiddenField IDhf_applayUserid runatserver /asp:HiddenField IDhf_subject runatserver /asp:HiddenField IDhf_FirstAccepter runatserver /asp:HiddenField IDhf_FirstTransmitter runatserver /asp:Button IDbtnReject runatserver CssClassbtnorange Text拒绝审核οnclickbtnReject_Click  /asp:Button IDbtnRun runatserver  OnClientClick{if(!$(#cbISstock).attr(checked)){alert(请先选择出库审核并填写相关数据后才能点击此按钮);return false;}} UseSubmitBehaviorfalse CssClassbtnorangeText执行发货 οnclickbtnRun_Click/asp:Button IDbtnSubmit runatserver CssClassbtngreen Text提交审核οnclickbtnSubmit_Click //td/tr/table/div/form/body/html

 后台代码

 public partial class SendGoodsEdit: BasePage{protected void Page_Load(object sender, EventArgs e){if (!IsPostBack){DepartMentBand();pageinfobind();}}public  DataTable dt;public DataTable probathsdt;string taskid  8;string listid  75;/// summary/// 是否具备财务权限默认为Fasle/// /summarypublic static  string isfinance  false;public static string isquality  false;public static string isprobatch  false;public static string isstock  false;public static int probaths  0;/// summary/// 页面信息加载/// /summaryprotected void pageinfobind(){//是否具有财务权限isfinance  SqlComm.getUserRightsByUserId(Session[Userid].ToString()).Contains(,  ((int)RightEmun.finance).ToString()  ,) ? true : false;//是否具备质量审核权限isquality  SqlComm.getUserRightsByUserId(Session[Userid].ToString()).Contains(,  ((int)RightEmun.quality).ToString()  ,)?true:false;//是否具备添加产品批号的权限isprobatch SqlComm.getUserRightsByUserId(Session[Userid].ToString()).Contains(,  ((int)RightEmun.probatch).ToString()  ,) ? true : false;//是否具备仓库审核权限isstock  SqlComm.getUserRightsByUserId(Session[Userid].ToString()).Contains(,  ((int)RightEmun.stock).ToString()  ,) ? true : false;BioSendGoodsBLL sendgoodsview  new BioSendGoodsBLL();ViewBioSendAppInfo viewsendinfo sendgoodsview.GetModel(int.Parse(taskid));ddlDepartMent.SelectedValue viewsendinfo.DepartMentID.ToString();this.lbApplayUser.Text  viewsendinfo.AppUserName;this.hf_applayUserid.Value  viewsendinfo.AppUserId.ToString();this.txtRealUserID.Text  viewsendinfo.RealUserID.ToString();this.lbRealUserName.Text  viewsendinfo.RealUser;this.lbTime.Text  Convert.ToDateTime(viewsendinfo.submitTime).ToString(yyyy-MM-dd);this.txtSendCom.Text  viewsendinfo.ReceiveComID.ToString();getLinkMan();this.ddlOuserCom.SelectedItem.Text  viewsendinfo.OurCom;this.ddlTypes.SelectedItem.Text  viewsendinfo.sendType;this.ddlLinkMan.SelectedValue  viewsendinfo.Receiver;this.txtTelphone.Text  viewsendinfo.telephone;this.txtMobile.Text  viewsendinfo.mobile;if (viewsendinfo.BillNo ! null  viewsendinfo.BillNo ! ){this.lbBillNo.Text  viewsendinfo.BillNo;this.cbisfinance.Checked  true;if (bool.Parse(isfinance)){this.cbisfinance.Enabled  false;}}if (viewsendinfo.QualityUserid ! null  viewsendinfo.QualityUserid ! 0  viewsendinfo.isQualityCheck ! false){this.cbquality.Checked  true;this.cbquality.Enabled  false;}//是否仓库审核if (viewsendinfo.isOutStockCheck  true){this.cbISstock.Checked  true;this.cbISstock.Disabled  true;this.txtPostUnit.Text  viewsendinfo.postUnit.ToString();this.txtPhone.Text  viewsendinfo.postPhone.ToString();this.txtPostWay.Text  viewsendinfo.postWay;this.ddlPostWay.SelectedValue  viewsendinfo.postWay;this.txtpostRemark.Text  viewsendinfo.postRemak;//ScriptManager.RegisterStartupScript(this,this.GetType(), trpostinfoshow, $(#trpostinfo).show(), true);}//if (this.cbisfinance.Checked  true  this.cbquality.Checked  true  bool.Parse(isprobatch))//{//ClientScript.RegisterStartupScript(this.GetType(), test, showobjbyName(btnaddbatch), true);//}dtSqlComm.GetDataByCondition(dbo.BioSendGoodsPro, *,ProNamedbo.FN_getProNameByProID(ProID),  SendID  taskid).Tables[0];probathsdt SqlComm.GetDataByCondition(dbo.ViewSendProBaths, *,ProNamedbo.FN_getProNameByProID(ProID),  SendID  taskid).Tables[0];probaths  probathsdt.Rows.Count;if (probathsdt.Rows.Count  0){ClientScript.RegisterStartupScript(this.GetType(), showprobatchs, $(#trprobatch).show(), true);}//加载历史审批记录this.lbHistory.Text  SqlComm.getTaskListRecordsMindsByCondition(taskid, ((int)TaskNavigateEmun.ProSend).ToString());this.hf_subject.Value  SqlComm.getTaskListSubjectByCondition(listid);this.hf_FirstTransmitter.Value  SqlComm.getFirstTransmitterByCondition(listid);this.hf_FirstAccepter.Value  SqlComm.getFirstAccpterByCondition(listid);//string rightsSqlComm.getUserRightsByUserId(Session[Userid].ToString());//判断是否具有财务权限和部门经理角色如果是则显示“拒绝审核按钮”否则不显示if ((Web.UserLogin.user.RoleId  3  Web.UserLogin.user.DepartmentId  int.Parse(this.ddlDepartMent.SelectedValue.ToString())) || bool.Parse(isfinance)){this.btnReject.Visible  true;}else{this.btnReject.Visible  false;}}/// summary/// 绑定部门信息/// /summaryprivate void DepartMentBand(){ddlDepartMent.DataSource  SqlComm.getDepartMent();ddlDepartMent.DataTextField  DepartmentName;ddlDepartMent.DataValueField  DepartmentId;ddlDepartMent.DataBind();//ddlDepartMent.Items.Add(new ListItem(--请选择部门--, 0));//ddlDepartMent.SelectedValue  0;}protected void btnSubmit_Click(object sender, EventArgs e){//部门经理角色 并且当前用户所属部门为表单所选部门try{//判断是否具备财务权限 并且当前财务审核通过if (bool.Parse(isfinance)  this.cbisfinance.Checked  true){SqlComm.UpdateTableByCondition(dbo.BioSendAppInfo, BillNo  this.lbBillNo.Text  ,BillUserID  Session[Userid]  ,  SendId  taskid);}//判断是否具备质量申请权限并且当前的财务审核通过之后才能提交质量审核if (bool.Parse(isquality)  this.cbisfinance.Checked  true  this.cbquality.Checked  true){SqlComm.UpdateTableByCondition(dbo.BioSendAppInfo, QualityUserid  Session[Userid].ToString()  ,isQualityCheck  1,  SendId  taskid);}if (this.cbisfinance.Checked  true  this.cbquality.Checked  true  bool.Parse(isprobatch)true){string proname  Request[proname0].ToString();string proId  Request[proIds].ToString();string txtProCount  Request[txtProCount0].ToString();string txtProBatchRequest[txtProBatch0].ToString();string txtProBoxNum  Request[txtProBoxNum0].ToString();string txtMarkDate  Request[txtMarkDate0].ToString();string txtExPirationDate  Request[txtExPirationDate0].ToString();string SendProID  Request[SendProID2].ToString();string stockproid  Request[stockproid].ToString();string stockDate  Request[txtStockDate0].ToString();string stockid  Request[stockid].ToString();//默认产品批次如果为新添加产品批次则初始值为0如果是修改数据则为数据库中绑定的产品批次数据string oldprobatchcount  Request[oldprobatchcount].ToString();string ProBatchIDRequest[ProBatchID].ToString();//string[] pronamess  proname.Split(,);//string[] proIdss  proId.Split(,);string[] txtProCounts  txtProCount.Split(,);string[] txtProBatchstxtProBatch.Split(,);string[] txtProBoxNums  txtProBoxNum.Split(,);string[] txtMarkDates  txtMarkDate.Split(,);string[] txtExPirationDates  txtExPirationDate.Split(,);string[] SendProIDs  SendProID.Split(,);string[] stockproids  stockproid.Split(,);string[] stockDates  stockDate.Split(,);string[] stockids  stockid.Split(,);string[] oldprobatchcounts  oldprobatchcount.Split(,);string []ProBatchIDsProBatchID.Split(,);BioSendProBatch probacth  new BioSendProBatch();BioSendGoodsBLL sendbll  new BioSendGoodsBLL();for (int i  0; i  SendProIDs.Length; i){//probacth.ProStockIDprobacth.SendProID  int.Parse(SendProIDs[i]);//1old 10 new 8 2old 10 new 12probacth.proCount  int.Parse(txtProCounts[i]);probacth.ProStockID  int.Parse(stockproids[i]);probacth.stockDate  DateTime.Parse(stockDates[i]);probacth.stockID  int.Parse(stockids[i]);probacth.batchNum  txtProBatchs[i];probacth.boxNum  txtProBoxNums[i];probacth.makeDate  DateTime.Parse(txtMarkDates[i]);probacth.expirationDate  DateTime.Parse(txtExPirationDates[i]);if (oldprobatchcounts[i]  0){   //添加产品批次sendbll.BioSendProBatchADD(probacth);//修改产品库存数据出库SqlComm.BioProStockUpdateCount(int.Parse(probacth.ProStockID.ToString()), int.Parse(probacth.proCount.ToString()));}else{if (oldprobatchcounts[i] ! txtProCounts[i]){//修改当前批次表中相应产品数据SqlComm.UpdateTableByCondition(dbo.BioSendProBatch, proCount  int.Parse(txtProCounts[i]), ProBatchID  ProBatchIDs[i]);int batchcount  int.Parse(txtProCounts[i]) - int.Parse(oldprobatchcounts[i]);//修改产品库存表中对应批次的数据SqlComm.UpdateTableByCondition(dbo.BioProStock, ProCout(ProCout-(  batchcount  )), ID  stockproids[i]);}}}}TaskListInsert();ContextUtil.SetComplete();}catch (Exception ex){ContextUtil.SetAbort();ClientScript.RegisterStartupScript(this.GetType(),test,alert(提交失败数据回滚),true);}}/// summary/// 添加新的流行表数据并修改之前的数据/// /summaryprivate void TaskListInsert(){TaskListRecord tasklistRecord  new TaskListRecord(){Subject  this.hf_subject.Value,Accepter  int.Parse(txtNetUserId.Text),AuditingSate  0,DepartMentId  int.Parse(this.ddlDepartMent.SelectedValue.ToString()),FirstAccepter  int.Parse(hf_FirstAccepter.Value),FirstSumitTime  Convert.ToDateTime(this.lbTime.Text),FirstTransmitter  int.Parse(hf_FirstTransmitter.Value),Mind  this.txtRemark.Text,Pass  1,SumitTime  DateTime.Now,TaskID  int.Parse(taskid),TaskTableID  (int)TaskNavigateEmun.ProSend,Transmitter  int.Parse(Session[Userid].ToString())};SqlComm.TaskListRecordAdd(tasklistRecord);SqlComm.UpdateTableByCondition(dbo.TaskListRecord,  AuditingSate1,  ListID  listid);}static DataSet ds;protected void txtSendCom_TextChanged(object sender, EventArgs e){getLinkMan();}private void getLinkMan(){ds  null;this.txtTelphone.Text  ;this.txtMobile.Text  ;this.txtLinkman.Text  ;if (this.txtSendCom.Text.Trim() !   this.txtSendCom.Text.Trim() ! 请选择){ds  SqlComm.GetDataByCondition(BioCrmLinkmanInfo, LinkmanID,LinkmanName,WorkPhone,Mobile,  CustomerID  this.txtSendCom.Text);this.ddlLinkMan.DataSource  ds.Tables[0];this.ddlLinkMan.DataTextField  LinkmanName;this.ddlLinkMan.DataValueField  LinkmanID;this.ddlLinkMan.DataBind();if (ds.Tables[0].Rows.Count  0){this.ddlLinkMan.Visible  false;}else{this.ddlLinkMan.Visible  true;DataTable dt  ds.Tables[0];DataRow[] dr  dt.Select(LinkmanID  this.ddlLinkMan.SelectedValue.ToString());this.txtTelphone.Text  dr[0][WorkPhone].ToString();this.txtMobile.Text  dr[0][Mobile].ToString();this.txtLinkman.Text  this.ddlLinkMan.SelectedValue.ToString();}}}protected void ddlLinkMan_SelectedIndexChanged(object sender, EventArgs e){if (ds.Tables[0].Rows.Count  0){DataTable dt  ds.Tables[0];DataRow[] drdt.Select(LinkmanID  this.ddlLinkMan.SelectedValue.ToString());this.txtTelphone.Text dr[0][WorkPhone].ToString();this.txtMobile.Text  dr[0][Mobile].ToString();this.txtLinkman.Text  this.ddlLinkMan.SelectedValue.ToString();}}/// summary/// 拒绝审核/// /summary/// param namesender/param/// param namee/paramprotected void btnReject_Click(object sender, EventArgs e){TaskListRecord tasklistRecord  new TaskListRecord(){Subject  this.hf_subject.Value,Accepter  int.Parse(this.hf_FirstTransmitter.Value),AuditingSate  0,DepartMentId  int.Parse(this.ddlDepartMent.SelectedValue.ToString()),FirstAccepter  int.Parse(hf_FirstAccepter.Value),FirstSumitTime  Convert.ToDateTime(this.lbTime.Text),FirstTransmitter  int.Parse(hf_FirstTransmitter.Value),Mind  this.txtRemark.Text,Pass  1,SumitTime  DateTime.Now,TaskID  int.Parse(taskid),TaskTableID  (int)TaskNavigateEmun.ProSend,Transmitter  int.Parse(Session[Userid].ToString())};SqlComm.TaskListRecordAdd(tasklistRecord);SqlComm.UpdateTableByCondition(dbo.TaskListRecord,  AuditingSate1,  ListID  listid);}protected void cbisfinance_CheckedChanged(object sender, EventArgs e){if (this.cbisfinance.Checked){this.lbBillNo.Text  SqlComm.SPGetBillNo(taskid);}else{this.lbBillNo.Text  未生成;}if(bool.Parse(isquality)){ScriptManager.RegisterStartupScript(this, this.GetType(), test, $(#spanquality).show();, true);}}protected void btnRun_Click(object sender, EventArgs e){try{if (this.cbISstock.Checked  false){ClientScript.RegisterStartupScript(this.GetType(), test, alert(如果没有选择出库审核则不能发货执行), true);return;}string postway  ;if (this.ddlPostWay.SelectedItem.Text  自定义){postway  this.txtPostWay.Text;}else{postway  this.ddlPostWay.SelectedItem.Text;}bool isok SqlComm.UpdateTableByCondition(BioSendAppInfo, Stockuserid  Session[Userid]  ,isOutStockCheck1,postUnit  this.txtPostUnit.Text  ,postPhone  this.txtPhone.Text  ,postWay  postway  ,postRemak  this.txtpostRemark.Text  ,isSend1, SendId  taskid);TaskListRecord tasklistRecord  new TaskListRecord(){Subject  this.hf_subject.Value,Accepter  int.Parse(hf_FirstTransmitter.Value),AuditingSate  2,DepartMentId  int.Parse(this.ddlDepartMent.SelectedValue.ToString()),FirstAccepter  int.Parse(hf_FirstAccepter.Value),FirstSumitTime  Convert.ToDateTime(this.lbTime.Text),FirstTransmitter  int.Parse(hf_FirstTransmitter.Value),Mind  this.txtRemark.Text,Pass  1,SumitTime  DateTime.Now,TaskID  int.Parse(taskid),TaskTableID  (int)TaskNavigateEmun.ProSend,Transmitter  int.Parse(Session[Userid].ToString())};if (isok){SqlComm.TaskListRecordAdd(tasklistRecord);SqlComm.UpdateTableByCondition(dbo.TaskListRecord,  AuditingSate1,  ListID  listid);}else{//提示错误信息}ContextUtil.SetComplete();//提交事务}catch (Exception ex){ContextUtil.SetAbort();//撤销事务}}}

 详细页面

% Page LanguageC# AutoEventWireuptrue CodeBehindSendGoodsShow.aspx.cs  TransactionRequired   InheritsBioErpWeb.SendGoods.SendGoodsShow %!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN  charsetUTF-8  /TR/xhtml1/DTD/xhtml1-transitional.dtdhtml xmlns/1999/xhtmlhead runatserver title/titlelink href../Styles/ERPBaseStyle.css relstylesheet typetext/css /script src../Scripts/jquery-1.4.1.js typetext/javascript/scriptscript src../Scripts/jquery.validate.js typetext/javascript/scriptlink href../Styles/InputStyle1.css relstylesheet typetext/css /script typetext/javascript$(document).ready(function () {$(#form1).validate();});/scriptstyle typetext/css.trbar{ background-color:#eeeeee;}.w80{ width:80px;}.w100{ width:100px;}.w150{ width:150px;}.style1{width: 150px;}.style2{width: 85px;}.style3{width: 128px;}.style15{width: 235px;}.style20{width: 157px;}.style24{width: 304px;}.style29{width: 90px;}#trpostinfo{}#trpostinfo span{ margin:0px 20px;}.style30{width: 283px;}.style31{width: 285px;}/style/headbodyform idform1 runatserverasp:ScriptManager IDScriptManager1 runatserver/asp:ScriptManagerdivtable classmaintable Inupttable style width:900px;trtd colspan8 classtitlebar商品销售发货审核/td/trtrtd classw80申请部门/tdtd classstyle1asp:Label IDddlDepartMent runatserver Text/asp:Label/tdtd classstyle2 colspan2制表人asp:Label IDlbApplayUser runatserver /asp:Label/tdtd经手人/tdtd classstyle15asp:TextBox IDtxtRealUserID CssClass{required:true,digits:true, min:1}runatserver Width78px/asp:TextBoxasp:LabelIDlbRealUserName runatserver Text/asp:Label/tdtd制表时间/tdtdasp:Label IDlbTime runatserver TextLabel/asp:Label/td/tr/tableasp:UpdatePanel IDUpdatePanel1 runatserverContentTemplatetable classmaintable Inupttable style width:900px;trtd classw80订货客户/tdtd classw150asp:TextBox IDtxtSendCom runatserver Width59pxCssClass{required:true,digits:true, min:1}ontextchangedtxtSendCom_TextChanged/asp:TextBoxasp:Label IDlbCustomer runatserver Text/asp:Label/tdtd classstyle20发货单位/tdtd classstyle24asp:DropDownList IDddlOuserCom runatserverasp:ListItem上海某某公司/asp:ListItemasp:ListItem成都某某公司/asp:ListItemasp:ListItem北京某某公司/asp:ListItemasp:ListItem雅安某某公司/asp:ListItem/asp:DropDownList/tdtd classstyle29发货类型/tdtdasp:DropDownList IDddlTypes runatserverasp:ListItem调拨/asp:ListItemasp:ListItem医院/asp:ListItemasp:ListItemOTC/asp:ListItemasp:ListItem其它/asp:ListItem/asp:DropDownList/td/trtrtd客户联系人/tdtdasp:DropDownList IDddlLinkMan runatserver AutoPostBackTrue  Width80pxonselectedindexchangedddlLinkMan_SelectedIndexChangedasp:ListItem Value0--请选择--/asp:ListItem/asp:DropDownListasp:TextBox IDtxtLinkman Width60px runatserver/asp:TextBox/tdtd classstyle20手机号码/tdtd classstyle24asp:TextBox IDtxtMobile runatserver/asp:TextBox/tdtd classstyle29工作电话/tdtdasp:TextBox IDtxtTelphone runatserver/asp:TextBox/td/tr/table/ContentTemplate /asp:UpdatePaneltable classmaintable Inupttable stylewidth: 900px;tr classtrbartd classstyle31产品名称及规格/tdtd数量/tdtd单价/tdtd classstyle3开票价格/td/tr%if (!IsPostBack){int count  this.dt.Rows.Count;if (count  0){return;}decimal totalprice  0;decimal totalinvoiceprice  0;for (int i  0; i  count; i){totalprice  (decimal.Parse(dt.Rows[i][ProPrice].ToString()) * int.Parse(dt.Rows[i][ProCount].ToString()));totalinvoiceprice  (decimal.Parse(dt.Rows[i][invoiceProPice].ToString()) * int.Parse(dt.Rows[i][ProCount].ToString()));%trtd classstyle31input typetext nameproName classrequired value%dt.Rows[i][ProName] % stylewidth: 200px /inputtypehidden nameproID value%dt.Rows[i][ProID] % //tdtdinput typetext nameproCount  value%dt.Rows[i][ProCount] % class{required:true,min:1,digits:true} stylewidth: 100px //tdtdinput typetext nameproPrice οnkeyupsetvalue(this)  value%decimal.Parse(dt.Rows[i][ProPrice].ToString()).ToString(0.00) % οnchangesetvalue(this)class{required:true,min:0.1,number:true} stylewidth: 100px //tdtdinput typetext nameinvoiceProPice  value%decimal.Parse(dt.Rows[i][invoiceProPice].ToString()).ToString(0.00) % class{required:true,min:0.1,number:true}stylewidth: 100px //td/tr%}%trtd  colspan5 classbottomtdspan总金额:/spanspan classmoney%totalprice.ToString(0.00)%/span  span总开票金额:/spanspan classmoney%totalinvoiceprice.ToString(0.00)%/span/td/tr%}%tr idtrprobatch styledisplay:none;td colspan5div iddivprobatchtable idtb2 alignleft cellpadding0 border0 cellspacing0 style width99%;tr idprobatchtr classtrbartd stylewidth: 300px;订货产品名称及规格只读/tdtd stylewidth: 70px;数量/tdtd stylewidth: 95px;批号只读/tdtd stylewidth: 95px;货号只读/tdtd stylewidth: 120px;生产日期只读/tdtd stylewidth: 120px;有效期只读/tdtd stylewidth: 120px;入库日期只读/td/tr%if (!IsPostBack){int probathscount  this.probathsdt.Rows.Count;if (probathscount  0){for (int i  0; i  probathscount; i){%trtd idtd2input  nameproname0 value%this.probathsdt.Rows[i][ProName] % readonlyreadonly stylewidth: 200px typetext classinput size50 /input typehidden nameproIds value%this.probathsdt.Rows[i][ProID] % //tdtdinput nametxtProCount0  class{required:true,min:1,digits:true}   οnkeyupisProBathCountFull(this)  typetext size5 value%this.probathsdt.Rows[i][proCount] % /input typehidden nameoldprobatchcount value%this.probathsdt.Rows[i][proCount] % //tdtdinput  nametxtProBatch0 typetext readonlyreadonly  value%this.probathsdt.Rows[i][batchNum] % size11 //tdtdinput nametxtProBoxNum0 readonlyreadonly value%this.probathsdt.Rows[i][boxNum] %typetext size11 //tdtdinput  nametxtMarkDate0 size11 readonlyreadonly class{required:true,dateISO:true} value%this.probathsdt.Rows[i][makeDate] %typetext  //tdtdinput  nametxtExPirationDate0 readonlyreadonly value%this.probathsdt.Rows[i][expirationDate] % class{required:true,dateISO:true}size11 typetext //tdtdinput  nametxtStockDate0  class{required:true,dateISO:true} value%this.probathsdt.Rows[i][stockDate] %size11 typetext readonlyreadonly //td/tr%}}}%/table/div/td/trtr idtrfinance styledisplay:none;td colspan5asp:UpdatePanel IDUpdatePanel2 runatserverContentTemplatespan财务审核:/spanspanasp:CheckBox IDcbisfinance runatserver  Text已付款AutoPostBackTrue oncheckedchangedcbisfinance_CheckedChanged/asp:LabelIDLabel1 runatserver Text账单编号/asp:Labelasp:Label IDlbBillNo runatserver Text未生成/asp:Label/spanspan idspanquality style margin-left:100px; display:none;质量审核:spanasp:CheckBox IDcbquality runatserver  Text审核通过//span/spanspan idspanstock style margin-left:100px;仓库审核:spaninput typecheckbox idcbISstock runatserver  οnchange{if(this.checked){$(#trpostinfo).show();}else{$(#trpostinfo).hide();}} value可以出库//span/span/ContentTemplate/asp:UpdatePanel/td/trtr idtrpostinfo styledisplay:none;td colspan5span物流单位:asp:TextBox IDtxtPostUnit runatserver/asp:TextBox/spanspan联系方式(电话):asp:TextBox IDtxtPhone runatserver/asp:TextBox/spanspan物流方式:asp:DropDownList IDddlPostWay runatserver Height17pxasp:ListItem邮政EMS/asp:ListItemasp:ListItem申通快递/asp:ListItemasp:ListItem SelectedTrue自定义/asp:ListItem/asp:DropDownListasp:TextBox IDtxtPostWay runatserver/asp:TextBox/spanspan备注:asp:TextBox IDtxtpostRemark runatserver/asp:TextBox/span/td/tr/tabletable classmaintable Inupttable style width:900px;trtd classstyle30历史审批意见/tdtdasp:Label IDlbHistory runatserver Text/asp:Label/td/tr/table/div/form/body/html

 后台代码

public partial class SendGoodsShow : BasePage{protected void Page_Load(object sender, EventArgs e){if (!IsPostBack){pageinfobind();}}public  DataTable dt;public DataTable probathsdt;string taskid  8;string listid  75;/// summary/// 是否具备财务权限默认为Fasle/// /summarypublic static  string isfinance  false;public static string isquality  false;public static string isprobatch  false;public static string isstock  false;public static int probaths  0;/// summary/// 页面信息加载/// /summaryprotected void pageinfobind(){//是否具有财务权限isfinance  SqlComm.getUserRightsByUserId(Session[Userid].ToString()).Contains(,  ((int)RightEmun.finance).ToString()  ,) ? true : false;//是否具备质量审核权限isquality  SqlComm.getUserRightsByUserId(Session[Userid].ToString()).Contains(,  ((int)RightEmun.quality).ToString()  ,)?true:false;//是否具备添加产品批号的权限isprobatch SqlComm.getUserRightsByUserId(Session[Userid].ToString()).Contains(,  ((int)RightEmun.probatch).ToString()  ,) ? true : false;//是否具备仓库审核权限isstock  SqlComm.getUserRightsByUserId(Session[Userid].ToString()).Contains(,  ((int)RightEmun.stock).ToString()  ,) ? true : false;BioSendGoodsBLL sendgoodsview  new BioSendGoodsBLL();ViewBioSendAppInfo viewsendinfo sendgoodsview.GetModel(int.Parse(taskid));ddlDepartMent.Text viewsendinfo.Departname.ToString();this.lbApplayUser.Text  viewsendinfo.AppUserName;this.txtRealUserID.Text  viewsendinfo.RealUserID.ToString();this.lbRealUserName.Text  viewsendinfo.RealUser;this.lbTime.Text  Convert.ToDateTime(viewsendinfo.submitTime).ToString(yyyy-MM-dd);this.txtSendCom.Text  viewsendinfo.ReceiveComID.ToString();getLinkMan();this.ddlOuserCom.SelectedItem.Text  viewsendinfo.OurCom;this.ddlTypes.SelectedItem.Text  viewsendinfo.sendType;this.ddlLinkMan.SelectedValue  viewsendinfo.Receiver;this.txtTelphone.Text  viewsendinfo.telephone;this.txtMobile.Text  viewsendinfo.mobile;if (viewsendinfo.BillNo ! null  viewsendinfo.BillNo ! ){this.lbBillNo.Text  viewsendinfo.BillNo;this.cbisfinance.Checked  true;if (bool.Parse(isfinance)){this.cbisfinance.Enabled  false;}}if (viewsendinfo.QualityUserid ! null  viewsendinfo.QualityUserid ! 0  viewsendinfo.isQualityCheck ! false){this.cbquality.Checked  true;this.cbquality.Enabled  false;}//if (this.cbisfinance.Checked  true  this.cbquality.Checked  true  bool.Parse(isprobatch))//{//ClientScript.RegisterStartupScript(this.GetType(), test, showobjbyName(btnaddbatch), true);//}dtSqlComm.GetDataByCondition(dbo.BioSendGoodsPro, *,ProNamedbo.FN_getProNameByProID(ProID),  SendID  taskid).Tables[0];probathsdt SqlComm.GetDataByCondition(dbo.ViewSendProBaths, *,ProNamedbo.FN_getProNameByProID(ProID),  SendID  taskid).Tables[0];probaths  probathsdt.Rows.Count;if (probathsdt.Rows.Count  0){ClientScript.RegisterStartupScript(this.GetType(), showprobatchs, $(#trprobatch).show(), true);}//加载历史审批记录this.lbHistory.Text  SqlComm.getTaskListRecordsMindsByCondition(taskid, ((int)TaskNavigateEmun.ProSend).ToString());//string rightsSqlComm.getUserRightsByUserId(Session[Userid].ToString());}static DataSet ds;protected void txtSendCom_TextChanged(object sender, EventArgs e){getLinkMan();}private void getLinkMan(){ds  null;this.txtTelphone.Text  ;this.txtMobile.Text  ;this.txtLinkman.Text  ;if (this.txtSendCom.Text.Trim() !   this.txtSendCom.Text.Trim() ! 请选择){ds  SqlComm.GetDataByCondition(BioCrmLinkmanInfo, LinkmanID,LinkmanName,WorkPhone,Mobile,  CustomerID  this.txtSendCom.Text);this.ddlLinkMan.DataSource  ds.Tables[0];this.ddlLinkMan.DataTextField  LinkmanName;this.ddlLinkMan.DataValueField  LinkmanID;this.ddlLinkMan.DataBind();if (ds.Tables[0].Rows.Count  0){this.ddlLinkMan.Visible  false;}else{this.ddlLinkMan.Visible  true;DataTable dt  ds.Tables[0];DataRow[] dr  dt.Select(LinkmanID  this.ddlLinkMan.SelectedValue.ToString());this.txtTelphone.Text  dr[0][WorkPhone].ToString();this.txtMobile.Text  dr[0][Mobile].ToString();this.txtLinkman.Text  this.ddlLinkMan.SelectedValue.ToString();}}}protected void ddlLinkMan_SelectedIndexChanged(object sender, EventArgs e){if (ds.Tables[0].Rows.Count  0){DataTable dt  ds.Tables[0];DataRow[] drdt.Select(LinkmanID  this.ddlLinkMan.SelectedValue.ToString());this.txtTelphone.Text dr[0][WorkPhone].ToString();this.txtMobile.Text  dr[0][Mobile].ToString();this.txtLinkman.Text  this.ddlLinkMan.SelectedValue.ToString();}}protected void cbisfinance_CheckedChanged(object sender, EventArgs e){if (this.cbisfinance.Checked){this.lbBillNo.Text  SqlComm.SPGetBillNo(taskid);}else{this.lbBillNo.Text  未生成;}if(bool.Parse(isquality)){ScriptManager.RegisterStartupScript(this, this.GetType(), test, $(#spanquality).show();, true);}}}}

经历过淘宝店群、京东店群、拼多多店群的洗礼后,很多朋友不满意国内电子商务的利润,开始转型亚马逊自发货铺货店群模式了,其实其模式基本相同。作者:LAU768

前台购物车的获得,跟什么有关系呢?

1、购物车是亚马逊前台系统根据卖家的绩效、产品流量、帐户信用、产品评论与评分、商品价格和供货能力等因素从销售此产品的Offer中自动筛选出来。

2、即使只有一个Offer,即一个卖家销售此产品,也不能保证此Offer会赢得购物车。

3、购物车的筛选纯系统行为,不受人为控制。

4、销售账户的类型要求,必须有一个账户。

5、指标:您的订单缺陷率、取消率和迟发率等是决定能否获得资格的指标,表现越好,则获得购买按钮资格的几率越大。

6、订单量:有充足的订单量(具体要求因分类而异)。

7、需要清楚的一点是:产品的分类不同,要求也有所不同。作为ASIN的创建者或者使用亚马逊配送会增大获得购物车的几率,但并不能保证一定会获得购物车。而且购物车也不是一成不变的,可能会随着时间和要求而发生变化。无论卖家支持或者绩效团队都无法改变购物车的状态

亚马逊无货源模式,运用erp系统,采集国内电商平台商品(淘宝、天猫、1688等)上传亚马逊店铺,出单后从国内电商平台拍单,发到我们海外中转仓,有工人拆包检查,再重新按亚马逊标准贴签打包海运发给国外客户。提供做亚马逊店铺:erp铺货,管理系统,从开店到客户确认收货整套流程培训,店铺运营技术指导,后续学员交流,技术更新,海外中转仓储,检验,包装,发货等服务。

跨境电商ERP软件招商部署面向全国地区招商,欢迎个人,团队前来考察自发货铺货亚马逊跨境电商模式,利用ERP系统采集国内网站商品,一键上传到亚马逊店铺,利用一定方法经营,实现订单,然后到国内网站商家拍单发往我们的深圳中转仓,我们进行精细包装后发往国外客户的手里。

由于其基本只需一套系统即可完成,不需要保证金等,大大减少了成本。其沟通都是邮件,没有像国内旺旺一样的沟通工具,所以基本不需要客服。综合对比,相对国内的项目,其具有多种优势,目前单店净利润可达2-5W,可批量复制化运营。

目前亚马逊店群软件就是管理系统,包含采集,商品管理,一键翻译,分类管理,订单管理,物流系统,站点账号管理,报表管理等,可以自动化管理亚马逊店铺经营。

我们的技术团队,拥有精湛、深厚的技术功底,具有多年ERP系统开发经验,专注于数据挖掘和跨境电商云服务开发客户 可有多种系统登陆界面、UI布局、 功能布局 、多种个性化选择 、定制、贴牌 无限授权账号。OEM定制独立部署、无限开子公司后台、无限店铺授权绑定、独立数据树立品牌。

商务合作、作者:LAU768