private void MeterialGi_Load(object sender, EventArgs e) { SecuGlobal.setDate(dateEditFrom, dateEditTo); if (PaCSGlobal.LoginUserInfo.Fct_code.Equals("C660A")) { cbPlant.Text = "SSDP"; } else { cbPlant.Text = "SESC"; } plantInsert = cbPlant.Text; string bufVend = SecuGlobal.getPopVendorInfo(PaCSGlobal.LoginUserInfo.Venderid, PaCSGlobal.LoginUserInfo.Fct_code); if (!bufVend.Equals("")) { cbVendor.Text = bufVend; } else { cbVendor.Text = PaCSGlobal.LoginUserInfo.Venderid + ":" + PaCSGlobal.LoginUserInfo.Vendername; //苏州法人 } if (!bGetInfo(bufVend.Substring(0, 4))) { SecuGlobal.showNG(panelStatus, lblStatus, "材料信息/line 信息获取失败"); return; } SecuGlobal.showOK(panelStatus, lblStatus, "Ready"); }
/// <summary> /// Load基本信息加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void HistoryGiGr_Load(object sender, EventArgs e) { setDicVendor(PaCSGlobal.LoginUserInfo.Fct_code); if (dicVendor.Count <= 0) { SecuGlobal.showNG(panelStatus, lblStatus, "没有找到VENDOR 信息,请联系管理员"); return; } SecuGlobal.setDate(dateEditFrom, dateEditTo); SecuGlobal.setAllVendorInfo(PaCSGlobal.LoginUserInfo.Fct_code, cbVendor); SecuGlobal.showOK(panelStatus, lblStatus, "Ready"); }
/// <summary> /// 加载基本信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ReqListVendor_Load(object sender, EventArgs e) { SecuGlobal.showOK(panelStatus, lblStatus, "正在加载数据,请稍等..."); SecuGlobal.setDate(dateEditFrom, dateEditTo); fctCode = PaCSGlobal.LoginUserInfo.Fct_code; if (fctCode.Equals("C6H0A")) { plantCode = "SESC"; } else { plantCode = "SSDP"; } cbPlant.Text = plantCode; string bufVend = SecuGlobal.getPopVendorInfo(PaCSGlobal.LoginUserInfo.Venderid, PaCSGlobal.LoginUserInfo.Fct_code); if (!bufVend.Equals("")) { cbVendor.Text = bufVend; } else { cbVendor.Text = PaCSGlobal.LoginUserInfo.Venderid + ":" + PaCSGlobal.LoginUserInfo.Vendername; //苏州法人 } vendorInfo = cbVendor.Text; if (!string.IsNullOrEmpty(vendorInfo)) { if (!vendorInfo.Equals("ALL")) { string[] split = vendorInfo.Split(new Char[] { ':' }); vendorCode4 = split[0].Trim(); } else { vendorCode4 = "%"; } } SecuGlobal.showOK(panelStatus, lblStatus, "Ready"); }
/// <summary> ///加载日期 、Vendor信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void RequestList_Load(object sender, EventArgs e) { radioGroup2_SelectedIndexChanged(sender, e); // 获取查询类型 SecuGlobal.setDate(dateEditFrom, dateEditTo); if (PaCSGlobal.LoginUserInfo.Fct_code.Equals("C660A")) { cbPlant.Text = "SSDP"; } else { cbPlant.Text = "SESC"; } SecuGlobal.setAllVendorInfo(PaCSGlobal.LoginUserInfo.Fct_code, cbVendor); //根据FCT CODE 获取所有的VENDOR 信息 SecuGlobal.showOK(panelStatus, lblStatus, "Ready"); }
/// <summary> ///基本参数设置 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MaterialUpload_Load(object sender, EventArgs e) { SecuGlobal.setDate(dateEditFrom, dateEditTo); SecuGlobal.showOK(panelStatus, lblStatus, "Ready"); }