private void BindInfo() { if (!string.IsNullOrEmpty(txtconno.Text)) { #region //合同搜索 Mod_TMO_CON modCon = tmo_con.GetModel(txtconno.Text); if (modCon != null) { droparea.SelectedIndex = droparea.Items.IndexOf(droparea.Items.FindByText(modCon.C_AREA)); txtC_CONNO.Text = modCon.C_CON_NO; txtC_DH_COMPANY.Text = modCon.C_CUSTNAME; txtC_SH_COMPANY.Text = modCon.C_CUSTNAME; txtC_STATION.Text = modCon.C_STATION; txtC_CUSTNO.Text = modCon.C_CUST_NO; Mod_TS_CUSTFILE mod = ts_custfile.GetModelCode(modCon.C_CUST_NO); if (mod != null) { txtC_CUSTNAME.Text = mod.C_NAME; //客户名称 txtC_KH_BANK.Text = mod.C_EXTEND1; //开户行 txtC_TAXNO.Text = mod.C_TAXPAYERNO; //税号 txtC_ACCOUNT.Text = mod.C_EXTEND2; //账号 txtC_ADDRESS.Text = mod.C_EXTEND3; //地址 txtC_TEL.Text = mod.C_EXTEND4; //电话 } } #endregion } if (!string.IsNullOrEmpty(txtcustno.Text)) { #region //客户编码搜索 Mod_TS_CUSTFILE mod = ts_custfile.GetModelCode(txtcustno.Text); if (mod != null) { txtC_CUSTNO.Text = mod.C_NO; txtC_CUSTNAME.Text = mod.C_NAME; //客户名称 txtC_KH_BANK.Text = mod.C_EXTEND1; //开户行 txtC_TAXNO.Text = mod.C_TAXPAYERNO; //税号 txtC_ACCOUNT.Text = mod.C_EXTEND2; //账号 txtC_ADDRESS.Text = mod.C_EXTEND3; //地址 txtC_TEL.Text = mod.C_EXTEND4; //电话 } #endregion } }
/// <summary> /// 检测仓库是否重复 /// </summary> /// <param name="ckcode"></param> /// <returns></returns> private bool getck(string orderID) { bool result = true; Mod_TMO_ORDER mod = tmo_order.GetModel(orderID); #region //客户余额查询 Mod_TS_CUSTFILE modCustInfo = ts_custfile.GetModelCode(mod.C_CUST_NO); DataTable dt = ts_custfile.GetCusetMoney(modCustInfo.C_ID).Tables[0]; if (dt.Rows.Count > 0) { lblcustmoney.Text = modCustInfo.C_NAME + ",余额:" + decimal.Parse(dt.Rows[0]["KHYE"].ToString()).ToString("###,##0.00") + " 更新时间:" + Convert.ToDateTime(dt.Rows[0]["TS"].ToString()).ToString(); } else { lblcustmoney.Text = ""; } #endregion for (int i = 0; i < rptList.Items.Count; i++) { HtmlInputCheckBox chkOrder = (HtmlInputCheckBox)rptList.Items[i].FindControl("chkOrder"); Literal ltlC_STL_GRD = (Literal)rptList.Items[i].FindControl("ltlC_STL_GRD"); Literal ltlC_SPEC = (Literal)rptList.Items[i].FindControl("ltlC_SPEC"); if (ltlC_STL_GRD.Text == mod.C_STL_GRD && ltlC_SPEC.Text == mod.C_SPEC) { result = false; break; } } return(result); }