| | |
| | | lblError.Text = ""; |
| | | LbYes.Items.Clear(); |
| | | LbNo.Items.Clear(); |
| | | cmbHUserType.SelectedIndex = 0; |
| | | //鍔犺浇缁勭粐淇℃伅 |
| | | Sub_AddOrdList(); |
| | | Init(); |
| | |
| | | DAL.ClsIF_Supplier_View oSup = new DAL.ClsIF_Supplier_View(); |
| | | try |
| | | { |
| | | oDs = oCn.RunProcReturn("select Czybm,Czymc,Explain,HEmpID,HK3UserID,HCloudUserName,HCloudUserPsd,HKeeperID,HKeeper,HSecManagerID,HSecManager,HSellManID,HSellMan,HDeptID,HDept,HWhID,HWHName,HSCWHID,HSCWHName,HSupID,HSupName,HUSEORGID from Gy_Czygl where Czybm='" + sCzybm + "'", "Gy_Czygl", ref ClsPub.sExeReturnInfo); |
| | | oDs = oCn.RunProcReturn("select Czybm,Czymc,Explain,HEmpID,HK3UserID,HCloudUserName,HCloudUserPsd,HKeeperID,HKeeper,HSecManagerID,HSecManager,HSellManID,HSellMan,HDeptID,HDept,HWhID,HWHName,HSCWHID,HSCWHName,HSupID,HSupName,HUSEORGID,HUserType from Gy_Czygl where Czybm='" + sCzybm + "'", "Gy_Czygl", ref ClsPub.sExeReturnInfo); |
| | | if (oDs == null) |
| | | { |
| | | MessageBox.Show("鏄剧ず澶辫触锛佸師鍥狅細" + ClsPub.sExeReturnInfo); |
| | |
| | | } |
| | | txtHCloudUserName.Text = oDs.Tables[0].Rows[0]["HCloudUserName"].ToString().Trim(); |
| | | txtHCloudUserPsd.Text = oDs.Tables[0].Rows[0]["HCloudUserPsd"].ToString().Trim(); |
| | | if (oDs.Tables[0].Rows[0]["HUserType"].ToString() != "") |
| | | { |
| | | cmbHUserType.Text = oDs.Tables[0].Rows[0]["HUserType"].ToString().Trim(); |
| | | } |
| | | } |
| | | } |
| | | catch (Exception e) |
| | |
| | | ",HKeeperID,HKeeper,HSecManagerID,HSecManager " + |
| | | ",HSellManID,HSellMan,HDeptID,HDept " + |
| | | ",HWhID,HWHName,HSupID,HSupName " + |
| | | ",HSCWHID,HSCWHName " + |
| | | ",HSCWHID,HSCWHName,HUserType " + |
| | | ",HCloudUserName,HCloudUserPsd,HUSEORGID)" + |
| | | "values (" |
| | | + "'" + txtCzybm.Text.ToString() + "','" + txtCzymc.Text.ToString() + "','" + ClsPub.StrToPsd(txtCzymm.Text.ToString()) + "','" + txtExplain.Text.ToString() + "'," + ClsPub.isLong(txtHEmpID.Tag).ToString() + "," + ClsPub.isLong(txtHK3UserID.Tag).ToString() + |
| | | "," + ClsPub.isLong(txtHKeeperID.Tag).ToString() + ",'" + txtHKeeperID.Text.ToString() + "'," + ClsPub.isLong(txtHSecManagerID.Tag).ToString() + ",'" + txtHSecManagerID.Text.ToString() + "'" + |
| | | "," + ClsPub.isLong(txtHSellManID.Tag).ToString() + ",'" + txtHSellManID.Text.ToString() + "'," + ClsPub.isLong(txtHDeptID.Tag).ToString() + ",'" + txtHDeptID.Text.ToString() + "'" + |
| | | "," + ClsPub.isLong(txtHWhID.Tag).ToString() + ",'" + txtHWhID.Text.ToString() + "'," + ClsPub.isLong(txtHSupID.Tag).ToString() + ",'" + txtHSupID.Text.ToString() + "'" + |
| | | "," + ClsPub.isLong(txtHSCWH.Tag).ToString() + ",'" + txtHSCWH.Text.ToString() + "'" + |
| | | "," + ClsPub.isLong(txtHSCWH.Tag).ToString() + ",'" + txtHSCWH.Text.ToString() + "'" + ",'" + cmbHUserType.Text + "'" + |
| | | ",'" + txtHCloudUserName.Text.ToString() + "','" + txtHCloudUserPsd.Text.ToString() + "'," + HOrgID + |
| | | ")"); |
| | | oDs = oCn.RunProcReturn("Select * from Gy_Czygl where Czybm='" + txtCzybm.Text.ToString()+"'", "Gy_Czygl"); |
| | |
| | | ",HSupName='" + txtHSupID.Text.ToString() + "'" + |
| | | ",HCloudUserName='" + txtHCloudUserName.Text.ToString() + "'" + |
| | | ",HCloudUserPsd='" + txtHCloudUserPsd.Text.ToString() + "'" + |
| | | ",HUserType='" + cmbHUserType.Text.ToString() + "'" + |
| | | ",HUSEORGID=" + HOrgID.ToString() + |
| | | "where Czybm='" + Czybm + "'"); |
| | | // |