private void btLoadPartnumber_Click(object sender, EventArgs e) { SelectData sd = new SelectData(this, FrmBLL.ReleaseData.arrByteToDataTable(refWebtProduct.Instance.GetAllProduct())); sd.ShowDialog(); }
private void btlocid_Click(object sender, EventArgs e) { SelectData sd = new SelectData(this, FrmBLL.ReleaseData.arrByteToDataTable(refWebtStorehouseManage.Instance.GetWarehouseListInfo()));//.GetAlltStorehouseLoctionInfo())); sd.ShowDialog(); }
private void Labelreason_Click(object sender, EventArgs e) { DataTable dt = FrmBLL.ReleaseData.arrByteToDataTable(refWebtReasonCode.Instance.GetReasonCode()); SelectData sd = new SelectData(this, dt); sd.ShowDialog(); }
private void btlocid_Click(object sender, EventArgs e) { DataTable dt = FrmBLL.ReleaseData.arrByteToDataTable(refWebtStorehouseManage.Instance.GetAlltStorehouseLoctionInfo()); //foreach (DataRow dr in dt.Rows) //{ // cblocal.Items.Add(dr["locid"].ToString()); //} SelectData sd = new SelectData(this, dt); sd.ShowDialog(); }
private void bt_queryuser_Click(object sender, EventArgs e) { DataTable dt = FrmBLL.ReleaseData.arrByteToDataTable(refWebtUserInfo.Instance.GetUserInfo()); for (int i = 0; i < dt.Columns.Count; i++) { if ((dt.Columns[i].ToString().ToUpper() == "PWD") || (dt.Columns[i].ToString().ToUpper() == "密码")) { dt.Columns.Remove(dt.Columns[i].ToString()); } } SelectData sd = new SelectData(this, dt /* BLL.tUserInfo.GetUserInfo()*/); sd.ShowDialog(); }
private void Btn_SelCraftInfo_Click(object sender, EventArgs e) { mFlag = "1"; DataTable dt_Craft = FrmBLL.ReleaseData.arrByteToDataTable(RefWebService_BLL.refWebtCraftInfo.Instance.GetAllCraftInfo()); SelectData frm = new SelectData(this, dt_Craft); frm.ShowDialog(); if (frm.DialogResult == DialogResult.OK) { XmlDocument doc = new XmlDocument(); string XmlName = "DllConfig.xml"; doc.Load(XmlName); ((XmlElement)doc.SelectSingleNode("AutoCreate").SelectSingleNode("FQC").SelectSingleNode("CRFTNAME")).SetAttribute("Name", Lab_Craft.Text); ((XmlElement)doc.SelectSingleNode("AutoCreate").SelectSingleNode("FQC").SelectSingleNode("CRFTID")).SetAttribute("Name", CraftId); doc.Save(XmlName); } }
private void Btn_set_Data_Click(object sender, EventArgs e) { mFlag = "0"; DataTable dt_Line = FrmBLL.ReleaseData.arrByteToDataTable(refWebtLineInfo.Instance.GetAllLineInfo()); // refWebtRouteInfo.Instance.GetAllRouteInfo() SelectData frm = new SelectData(this, dt_Line); frm.ShowDialog(); if (frm.DialogResult == DialogResult.OK) { XmlDocument doc = new XmlDocument(); string XmlName = "DllConfig.xml"; doc.Load(XmlName); //SetAttribute ((XmlElement)doc.SelectSingleNode("AutoCreate").SelectSingleNode("FQC").SelectSingleNode("LINE")).SetAttribute("Name", cbreasoncode.Text); ((XmlElement)doc.SelectSingleNode("AutoCreate").SelectSingleNode("FQC").SelectSingleNode("LINEUSER")).SetAttribute("Name", tbrcdesc.Text); doc.Save(XmlName); // Set_QCID(); } }