示例#1
0
        private void EQIn_Add_Load(object sender, EventArgs e)//加载窗体
        {
            this.WindowState = FormWindowState.Maximized;
            str2             = LData.Es("EQSystemValue_2204", null, new object[] { His.his.Choscode });
            str1             = LData.Es("EQSystemValue_2203", null, new object[] { His.his.Choscode });

            this.toolStripButton_Pass.Visible = false;
            this.toolStripButton_Down.Visible = false;
            if (isAdd == 1)
            {
                this.InWare_selTextInpt.Text    = inware_name;
                this.InWare_selTextInpt.Value   = inware_id;
                this.InWare_selTextInpt.Enabled = false;
            }
            this.InWay_selTextInpt.Sql      = "EQGetInWareWay";
            this.InWay_selTextInpt.SelParam = His.his.Choscode + "|{key}|{key}|{key}|{key}";

            this.gys_selTextInpt.Sql      = "EQGetGYS";
            this.gys_selTextInpt.SelParam = "{key}|{key}|{key}|{key}";
            this.dataGView1.Url           = "EQInDetailSearch";
            //TvList.newBind().SetCacheKey("XmDw").Load("EQGetSupply", new object[] { His.his.Choscode }).Bind(this.supply);
            this.dataGView1.addSql("EQGetSupply", "生产厂家", "", His.his.Choscode + "|" + "|{key}|{key}|{key}|{key}");

            TvList.newBind().SetCacheKey("XmDw1").Load("EQIn_DanWeiBianMa", null).Bind(this.Column3);


            //dwList = TvList.newBind().SetCacheKey("XmDw").Load("GetWZUnit2", new object[] { His.his.Choscode });
            //dwList.Bind(this.unit);
            if (isAdd != 1)
            {
                this.InWay_selTextInpt.Text     = LData.Exe("EQGetInWareWayName", null, new object[] { His.his.Choscode, dr["入库方式ID"].ToString() });
                this.InWare_selTextInpt.Text    = LData.Exe("EQGetInWareName", null, new object[] { His.his.Choscode, dr["入库库房编码"].ToString() });
                this.InWay_selTextInpt.Value    = dr["入库方式ID"].ToString();
                this.InWare_selTextInpt.Value   = dr["入库库房编码"].ToString();
                this.InWare_selTextInpt.Enabled = false;
                this.SHDH_yTextBox.Text         = dr["随货单号"].ToString();
                this.fpcode_yTextBox.Text       = dr["发票号码"].ToString();
                this.totalmoney_yTextBox.Text   = dr["总金额"].ToString();
                this.lstotalmoney_yTextBox.Text = dr["发票金额"].ToString();
                this.yTextBox_YzfMoney.Text     = dr["运杂费金额"].ToString();
                if (!dr["发票日期"].IsNull)
                {
                    this.dateTimePicker1.Value = dr["发票日期"].ToDateTime();
                }
                if (!dr["采购人"].IsNull)
                {
                    this.yTextBox_CGpeople.Text = dr["采购人"].ToString();
                }
                //dwList = TvList.newBind().SetCacheKey("XmDw").Load("GetWZUnit2", new object[] { His.his.Choscode });
                //dwList.Bind(this.unit);
                this.gys_selTextInpt.Text  = dr["供货商名称"].ToString();
                this.gys_selTextInpt.Value = dr["供货商ID"].ToString();
                this.memo_yTextBox.Text    = dr["备注"].ToString();
                this.dataGView1.Columns[eq.Index].ReadOnly = true;
                this.dataGView1.reLoad(new object[] { dr["入库ID"].ToString(), His.his.Choscode });
                this.cancel_toolStripButton.Enabled   = false;
                this.fromplan_toolStripButton.Enabled = false;
                if (isAdd == 3)
                {
                    this.toolStrip1.Enabled               = true;
                    this.add_toolStripButton.Visible      = false;
                    this.fromplan_toolStripButton.Visible = false;
                    this.save_toolStripButton.Visible     = false;
                    this.DeleButton.Visible               = false;
                    this.cancel_toolStripButton.Visible   = false;
                    this.toolStripButton_Pass.Visible     = false;
                    this.toolStripButton_Down.Visible     = false;


                    this.dataGView1.ReadOnly        = true;
                    this.InWare_selTextInpt.Enabled = false;
                    this.InWay_selTextInpt.Enabled  = false;
                    this.gys_selTextInpt.Enabled    = false;
                    this.fpcode_yTextBox.ReadOnly   = true;
                    this.dateTimePicker1.Enabled    = false;
                    this.SHDH_yTextBox.ReadOnly     = true;
                    this.memo_yTextBox.ReadOnly     = true;
                }
                if (isAdd == 4)
                {
                    this.toolStrip1.Enabled               = true;
                    this.add_toolStripButton.Visible      = false;
                    this.fromplan_toolStripButton.Visible = false;
                    this.save_toolStripButton.Visible     = false;
                    this.DeleButton.Visible               = false;
                    this.cancel_toolStripButton.Visible   = false;
                    this.toolStripButton_Pass.Visible     = true;
                    this.toolStripButton_Down.Visible     = true;
                    this.dataGView1.ReadOnly              = true;
                    this.InWare_selTextInpt.Enabled       = false;
                    this.InWay_selTextInpt.Enabled        = false;
                    this.gys_selTextInpt.Enabled          = false;
                    this.fpcode_yTextBox.ReadOnly         = true;
                    this.dateTimePicker1.Enabled          = false;
                    this.SHDH_yTextBox.ReadOnly           = true;
                    this.memo_yTextBox.ReadOnly           = true;
                }



                this.dataGView1.CellValueChanged += new DataGridViewCellEventHandler(dataGView1_CellValueChanged);
                //BindUnit();
            }


            dataGView1.RowToXml += new RowToXmlHandle(dataGView1_RowToXml);
        }
示例#2
0
        private void WZDict_Add_Load(object sender, EventArgs e)
        {
            this.yTextBox_Name.TextChanged += new EventHandler(yTextBox_Name_TextChanged);
            this.yTextBox_JC.TextChanged   += new EventHandler(yTextBox_JC_TextChanged);
            this.yTextBox_BM.TextChanged   += new EventHandler(yTextBox_BM_TextChanged);

            TvList.newBind().add("启用", "1").add("停用", "0").Bind(this.ytComboBox_ifUse);
            TvList.newBind().add("是", "1").add("否", "0").Bind(this.ytComboBox_IFJL);
            TvList.newBind().add("平均年限法", "1").add("工作量法", "2").add("年折旧率", "3").add("手工折旧", "4").Bind(this.ytComboBox_ZJTYPE);
            TvList.newBind().Load("EQDict_KindCode", new object[] { His.his.Choscode }).Bind(this.ytComboBox_KindCode);
            TvList.newBind().Load("EQDict_CountCode", new object[] { His.his.Choscode }).Bind(this.ytComboBox_CountCode); //这里修改了,查询所有
            TvList.newBind().Load("EQDict_SingerCode", null).Bind(this.ytComboBox_SingerCode);
            TvList.newBind().Load("EQDict_WORKUNITCODE", null).Bind(this.ytComboBox_WORKUNITCODE);


            //这里更改了单位编码
            //TvList.newBind().SetCacheKey("sfxmbm").Load("WZDict_SFXMBM",new object[]{ "010705"}).Bind(this.ytComboBox_SFXMBM);
            this.selTextInpt_PRODUCTPLACE.SelParam = "{key}|{key}|{key}|" + His.his.Choscode; //为什么要这样写?
            selTextInpt_PRODUCTPLACE.BxSr          = false;                                   //必须输入查询关键字
            //this.selTextInpt1.textBox1.ReadOnly = true;
            this.selTextInpt_PRODUCTPLACE.Sql = "EQDict_PRODUCTPLAC";

            this.yTextBox_UserID.ReadOnly       = true;
            this.yTextBox_User.ReadOnly         = true;
            this.yTextBox_EQID.ReadOnly         = true;
            this.yTextBox_Choscode.ReadOnly     = true;
            this.ytDateTime_RECDATE.Enabled     = false;
            this.ytComboBox_ifUse.SelectedIndex = 0;
            if (this.isScan)
            {
                this.btn_Save.Enabled = false;
            }
            if (!this.isAdd)
            {
                this.yTextBox_EQID.Text          = r["EQID"].ToString();
                this.yTextBox_Name.Text          = r["EQNAME"].ToString();
                this.ytComboBox_KindCode.Value   = r["KINDCODE"].ToString();
                this.ytComboBox_CountCode.Value  = r["COUNTCODE"].ToString();
                this.ytComboBox_SingerCode.Value = r["UNITCODE"].ToString();


                this.ytComboBox_WORKUNITCODE.Value          = r["WORKUNITCODE"].ToString();
                this.ytComboBox_ZJTYPE.Value                = r["ZJTYPE"].ToString();
                this.yTextBox_ZJRATE.Text                   = r["ZJRATE"].ToString();
                this.ytComboBox_IFJL.Value                  = r["IFJL"].ToString();
                this.ytComboBox_ifUse.Value                 = r["IFUSE"].ToString();
                this.yTextBox_UserID.Text                   = r["USERID"].ToString();
                this.yTextBox_User.Text                     = r["USERNAME"].ToString();
                this.selTextInpt_PRODUCTPLACE.textBox1.Text = r["PRODUCTPLACE"].ToString();

                this.yTextBox_Choscode.Text   = r["CHOSCODE"].ToString();
                this.ytDateTime_RECDATE.Value = Convert.ToDateTime(r["RECDATE"].ToString());
                if (r["PYCODE"] != null)
                {
                    this.yTextBox_PY.Text = r["PYCODE"].ToString();
                }
                if (r["WBCODE"] != null)
                {
                    this.yTextBox_WB.Text = r["WBCODE"].ToString();
                }
                if (r["SHORTNAME"] != null)
                {
                    this.yTextBox_JC.Text = r["SHORTNAME"].ToString();
                }
                if (r["SHORTCODE"] != null)
                {
                    this.yTextBox_JM.Text = r["SHORTCODE"].ToString();
                }
                if (r["ALIASNAME"] != null)
                {
                    this.yTextBox_BM.Text = r["ALIASNAME"].ToString();
                }
                if (r["ALIASCODE"] != null)
                {
                    this.yTextBox_BMJM.Text = r["ALIASCODE"].ToString();
                }
                if (r["GG"] != null)
                {
                    this.yTextBox_GuiG.Text = r["GG"].ToString();
                }
                if (r["XH"] != null)
                {
                    this.yTextBox_XH.Text = r["XH"].ToString();
                }
                if (r["TXM"] != null)
                {
                    this.yTextBox_TiaoXM.Text = r["TXM"].ToString();
                }
                if (r["MEMO"] != null)
                {
                    this.yTextBox_Rec.Text = r["MEMO"].ToString();
                }

                //ControlUtil.SetSelectRadioValue(this.groupBox2, r["WZID"]);
            }
            else
            {
                this.ytComboBox_KindCode.Value = r["KINDCODE"].ToString();
                this.yTextBox_User.Text        = His.his.UserName;

                this.yTextBox_UserID.Text = His.his.UserId.ToString();

                this.yTextBox_Choscode.Text = His.his.Choscode;
            }
        }
示例#3
0
        private void WZDict_Add_Load(object sender, EventArgs e)
        {
            this.selTextInpt_EQID.TextChanged += new EventHandler(selTextInpt_EQID_TextChanged);
            this.yTextBox_QGNum.TextChanged   += new EventHandler(EQYJMONEY);
            this.yTextBox_YJPRICE.TextChanged += new EventHandler(EQYJMONEY);
            this.selTextInpt_Country.Text      = "中国";
            TvList.newBind().add("已审核", "6").add("审核被拒", "2").add("待审核", "1").add("已删除", "0").Bind(this.ytComboBox_Status);
            TvList.newBind().Load("EQUnitCodeAskBuy_Add", null).Bind(this.ytComboBox_Unitcode);

            this.selTextInpt_EQID.SelParam = His.his.Choscode + "|{key}|{key}|{key}"; //为什么要这样写?
            selTextInpt_EQID.BxSr          = false;                                   //必须输入查询关键字
            //this.selTextInpt1.textBox1.ReadOnly = true;
            this.selTextInpt_EQID.Sql = "EQIDAskBuy_Add";

            //这里更改了单位编码

            this.selTextInpt_QGKSID.SelParam = His.his.Choscode + "|{key}|{key}|{key}"; //为什么要这样写?
            selTextInpt_QGKSID.BxSr          = false;                                   //必须输入查询关键字
            //this.selTextInpt1.textBox1.ReadOnly = true;
            this.selTextInpt_QGKSID.Sql = "AskBuy_FindKSID";

            this.selTextInpt_Country.SelParam = "{key}|{key}|{key}|"; //为什么要这样写?
            selTextInpt_Country.BxSr          = false;                //必须输入查询关键字
            //this.selTextInpt1.textBox1.ReadOnly = true;
            this.selTextInpt_Country.Sql = "CountryAskBuy_Add";

            this.yTextBox_UserID.ReadOnly   = true;
            this.yTextBox_User.ReadOnly     = true;
            this.yTextBox_Choscode.ReadOnly = true;
            this.ytDateTime_RECDATE.Enabled = false;
            this.ytDateTime_SHTime.Enabled  = false;
            this.yTextBox_SHUserID.ReadOnly = true;
            this.yTextBox_SHName.ReadOnly   = true;
            this.button_CG.Visible          = false;
            this.button_SB.Visible          = false;
            this.yTextBox_QGID.ReadOnly     = true;

            this.yTextBox_Name.ReadOnly      = true;
            this.yTextBox_GuiG.ReadOnly      = true;
            this.ytComboBox_Unitcode.Enabled = false;
            this.yTextBox_XH.ReadOnly        = true;
            this.yTextBox_YJMONEY.ReadOnly   = true;
            this.ytComboBox_Status.Enabled   = false;
            this.yTextBox_SPNum.ReadOnly     = true;

            this.ytDateTime_SHTime.Visible = false;
            this.yTextBox_SHName.Visible   = false;
            this.yTextBox_SHUserID.Visible = false;
            this.label16.Visible           = false;
            this.label21.Visible           = false;
            this.label22.Visible           = false;

            if (!this.isAdd)//编辑
            {
                this.yTextBox_QGID.Text       = r["APPLYID"].ToString();
                this.selTextInpt_QGKSID.Text  = LData.Exe("GetEQAskBuy_KSName", null, new object[] { His.his.Choscode, r["DEPTID"].ToString() });
                this.selTextInpt_QGKSID.Value = r["DEPTID"].ToString();

                //this.selTextInpt_EQID.Text = LData.Exe("GetEQAskBuy_EQName", null, new object[] { His.his.Choscode, r["EQID"].ToString() });

                this.selTextInpt_EQID.Text  = r["EQID"].ToString();
                this.selTextInpt_EQID.Value = r["EQNAME"].ToString();

                this.yTextBox_Name.Text = r["EQNAME"].ToString();

                if (r["GG"] != null)
                {
                    this.yTextBox_GuiG.Text = r["GG"].ToString();
                }
                if (r["XH"] != null)
                {
                    this.yTextBox_XH.Text = r["XH"].ToString();
                }


                this.selTextInpt_Country.Text  = r["COUNTRY"].ToString();
                this.selTextInpt_Country.Value = LData.Exe("GetEQAskBuy_EQCountry", null, new object[] { His.his.Choscode, r["COUNTRY"].ToString() });



                this.ytComboBox_Unitcode.Value = r["UNITCODE"].ToString();


                this.yTextBox_QGNum.Text = r["APPLYNUM"].ToString();


                if (r["YJPRICE"] != null)
                {
                    this.yTextBox_YJPRICE.Text = r["YJPRICE"].ToString();
                }

                this.yTextBox_YJMONEY.Text = r["YJMONEY"].ToString();

                if (r["REASON"] != null)
                {
                    this.yTextBox_REASON.Text = r["REASON"].ToString();
                }
                if (r["XYFX"] != null)
                {
                    this.yTextBox_XYFX.Text = r["XYFX"].ToString();
                }
                if (r["PTTJ"] != null)
                {
                    this.yTextBox_PTTJ.Text = r["PTTJ"].ToString();
                }
                this.ytDateTime_MakeTime.Value = Convert.ToDateTime(r["PLANDATE"]);


                this.ytComboBox_Status.Value = r["STATUS"].ToString();

                if (r["MEMO"] != null)
                {
                    this.yTextBox_Rec.Text = r["MEMO"].ToString();
                }
                this.yTextBox_UserID.Text = r["USERID"].ToString();

                if (r["USERNAME"] != null)
                {
                    this.yTextBox_User.Text = r["USERNAME"].ToString();
                }

                this.ytDateTime_RECDATE.Value = Convert.ToDateTime(r["RECDATE"]);



                this.yTextBox_Choscode.Text = r["CHOSCODE"].ToString();
            }
            else if (this.isAdd) //新增
            {
                this.yTextBox_User.Text = His.his.UserName;

                this.yTextBox_UserID.Text = His.his.UserId.ToString();

                this.yTextBox_Choscode.Text          = His.his.Choscode;
                this.ytComboBox_Status.SelectedIndex = 2;
            }

            if (this.Status == "CK")
            {
                if (r["SHNUM"] != null)
                {
                    this.yTextBox_SPNum.Text = r["SHNUM"].ToString();
                }
                if (this.yTextBox_SPNum.Text.Trim().Length > 0)
                {
                    this.ytDateTime_SHTime.Visible = true;
                    this.yTextBox_SHName.Visible   = true;
                    this.yTextBox_SHUserID.Visible = true;
                    this.label16.Visible           = true;
                    this.label21.Visible           = true;
                    this.label22.Visible           = true;
                    if (r["SHUSERID"] != null)
                    {
                        this.yTextBox_SHUserID.Text = r["SHUSERID"].ToString();
                    }
                    if (r["SHDATE"] != null)
                    {
                        this.ytDateTime_SHTime.Value = Convert.ToDateTime(r["SHDATE"].ToString());
                    }
                    if (r["SHUSERNAME"] != null)
                    {
                        this.yTextBox_SHName.Text = r["SHUSERNAME"].ToString();
                    }
                }
                this.btn_Save.Enabled = false;
            }

            if (this.Status == "SH")
            {
                this.ytDateTime_SHTime.Visible = true;
                this.yTextBox_SHName.Visible   = true;
                this.yTextBox_SHUserID.Visible = true;
                this.label16.Visible           = true;
                this.label21.Visible           = true;
                this.label22.Visible           = true;
                this.label18.ForeColor         = System.Drawing.Color.Blue;
                this.btn_Save.Visible          = false;
                this.button_CG.Visible         = true;
                this.button_SB.Visible         = true;
                this.yTextBox_SHName.Text      = His.his.UserName;
                this.yTextBox_SPNum.ReadOnly   = false;
                this.yTextBox_SHUserID.Text    = His.his.UserId.ToString();

                this.ytDateTime_SHTime.Value = DateTime.Now;
            }
        }
示例#4
0
        private void EQKind_Add_Load(object sender, EventArgs e)
        {
            this.yTextBox_Name.TextChanged += new EventHandler(yTextBox_Name_TextChanged);
            TvList.newBind().add("启用", "1").add("停用", "0").Bind(this.ytComboBox_ifUse);
            TvList.newBind().add("是", "1").add("否", "0").Bind(this.ytComboBox_IfEnd);
            this.yTextBox_User.Text = His.his.UserName.ToString();
            //this.yTextBox_UserID.Text = His.his.UserId.ToString();
            this.ytComboBox_IfEnd.Enabled       = false;
            this.yTextBox_UpCode.ReadOnly       = true;
            this.yTextBox_LeiCode.ReadOnly      = true;
            this.yTextBox_User.ReadOnly         = true;
            this.yTextBox_ChCode.ReadOnly       = true;
            this.ytComboBox_ifUse.SelectedIndex = 0;
            if (!this.isAdd)
            {
                this.yTextBox_Name.Text = r["KINDNAME"].ToString();
                this.yTextBox_PY.Text   = r["PYCODE"].ToString();
                this.yTextBox_WB.Text   = r["WBCODE"].ToString();

                this.yTextBox_User.Text     = r["USERNAME"].ToString();
                this.yTextBox_Rec.Text      = r["MEMO"].ToString();
                this.ytComboBox_ifUse.Value = r["IFUSE"].ToString();

                this.yTextBox_ChCode.Text   = r["CHOSCODE"].ToString();
                this.ytComboBox_IfEnd.Value = r["IFEND"].ToString();
                this.yTextBox_LeiCode.Text  = r["KINDCODE"].ToString();
                this.yTextBox_UpCode.Text   = r["SUPERCODE"].ToString();

                this.yTextBox_UserID.Text = r["PREFIX"].ToString(); //ID换成了设备卡号
            }
            else
            {
                this.yTextBox_User.Text = His.his.UserName;
                //this.yTextBox_UserID.Text = His.his.UserId.ToString();
                this.yTextBox_ChCode.Text   = His.his.Choscode;
                this.ytComboBox_IfEnd.Value = "1";

                //设置上级编码和类别编码
                if (r == null)
                {
                    this.yTextBox_UpCode.Text = "0";

                    string t = LData.Exe("FindEQKind_Code", null, new object[] { "0", His.his.Choscode });


                    if (Convert.ToInt32(t).ToString().Length <= 1 && (Convert.ToInt32(t) + 1).ToString().Length <= 1)//判断是否前面有个0(0801)
                    {
                        t = "0" + (Convert.ToInt32(t) + 1).ToString();
                    }
                    else
                    {
                        t = (Convert.ToInt32(t) + 1).ToString();
                    }
                    this.yTextBox_LeiCode.Text = t;
                }
                else
                {
                    this.yTextBox_UpCode.Text = r["KINDCODE"].ToString();

                    string t = LData.Exe("FindEQKind_Code", null, new object[] { r["KINDCODE"].ToString(), His.his.Choscode });
                    if (t == null)
                    {
                        t = r["KINDCODE"].ToString() + "01";
                    }
                    else if (t.Trim().Length > Convert.ToInt32(t).ToString().Length)
                    {
                        t = "0" + (Convert.ToInt32(t) + 1).ToString();
                    }
                    else
                    {
                        t = (Convert.ToInt32(t) + 1).ToString();
                    }
                    this.yTextBox_LeiCode.Text = t;
                }
            }
        }
示例#5
0
             private void EQKeepAccountsManagEdit_Load(object sender, EventArgs e)
        {
            this.toolStrip1.Visible = false;
          
                 this.reportman_selText.TextChanged+=new EventHandler(reportman_selText_TextChanged);
                 
            IOID_selText.Sql = "GetKind_EQAccount";
            IOID_selText.SelParam = His.his.Choscode + "|{key}|{key}";

            reportman_selText.Sql = "YongHuMingInfo_EQAccount";
            reportman_selText.SelParam = His.his.Choscode + "|{key}|{key}";


          //this.NextCheckdate_dateTimePicker.Value = dt;
            TvList.newBind().add("作废", "0").add("有效", "1").Bind(Status_ytComboBox1);
            this.Status_ytComboBox1.SelectedIndex = 1;
            this.Status_ytComboBox1.Enabled = false;
            this.Userid_textBox.ReadOnly = true;
            this.Username_textBox.ReadOnly = true;
            this.choscode_textBox.ReadOnly = true;


            cardId_textBox.Value = drZ["卡片ID"].ToString();
            cardId_textBox.Text = drZ["卡片ID"].ToString();

            
            this.deptid_selTextInpt.Value = drZ["使用科室"].ToString();
            this.deptid_selTextInpt.Text = LData.Es("GetEQAskBuy_KSName_KeepFit", null, new object[] { His.his.Choscode, drZ["使用科室"].ToString() });

            if (isFlag == 0 || isFlag == 1 || isFlag == 3 || isFlag == 4 )
            {
                LoadInfo_EQFixManagEdit();
                if (isFlag == 0)
                {
                    this.Save_button.Enabled = false;


                }
            }
            else
            {
                recdate_dateTimePicker.Value = DateTime.Now;
                Userid_textBox.Text = His.his.UserId.ToString();
                Username_textBox.Text = His.his.UserName;
                choscode_textBox.Text = His.his.Choscode;
            }

            if (isFlag == 3)
            {
                this.Save_button.Enabled = false;
                this.toolStrip1.Visible = true;
                this.toolStrip_JDPass.Visible = true;
                this.toolStrip_JDNo.Visible = true;
                this.toolStrip_SHPass.Visible = false;
                this.toolStrip_SHNo.Visible = false;
                this.textBox_JDUSERID.Text = His.his.UserId.ToString();
                this.textBox_JDMAN.Text = His.his.UserName;

            }
            if (isFlag == 4)
            {
                this.Save_button.Enabled = false;
                this.toolStrip1.Visible = true;
                this.toolStrip_JDPass.Visible = false;
                this.toolStrip_JDNo.Visible = false;
                this.toolStrip_SHPass.Visible = true;
                this.toolStrip_SHNo.Visible = true;
                this.textBox_SHUSERID.Text = His.his.UserId.ToString();
                this.textBox_SHMAN.Text = His.his.UserName;
            }  
       
      
        }
示例#6
0
        private void Producters_Add_Load(object sender, EventArgs e)//加载窗体
        {
            this.yTextBox_Name.TextChanged += new EventHandler(yTextBox_Name_TextChanged);
            TvList.newBind().add("启用", "1").add("停用", "0").Bind(this.ytComboBox_ifUse);
            TvList.newBind().add("是", "1").add("否", "0").Bind(this.ytComboBox_IfMake);
            TvList.newBind().add("是", "1").add("否", "0").Bind(this.ytComboBox_IfAfford);
            TvList.newBind().SetCacheKey("KsData").Load("EQFindHisInfoDict", null).Bind(this.ytComboBox_Pperty);
            this.yTextBox_SupplyID.ReadOnly     = true;
            this.yTextBox_User.ReadOnly         = true;
            this.yTextBox_UserID.ReadOnly       = true;
            this.yTextBox_ChCode.ReadOnly       = true;
            this.ytComboBox_ifUse.SelectedIndex = 0;
            // this.dateTimePicker1.Enabled = false;
            if (!isAdd)
            {
                this.yTextBox_Name.Text        = Info["厂商名称"].ToString();
                this.yTextBox_User.Text        = Info["操作员姓名"].ToString();
                this.ytComboBox_ifUse.Value    = Info["是否使用"].ToString();
                this.yTextBox_ChCode.Text      = Info["医疗机构编码"].ToString();
                this.ytComboBox_IfMake.Value   = Info["是否生产厂家"].ToString();
                this.ytComboBox_IfAfford.Value = Info["是否供应商"].ToString();
                this.yTextBox_SupplyID.Text    = Info["厂商ID"].ToString();

                if (Info["拼音码"] != null)
                {
                    this.yTextBox_PY.Text = Info["拼音码"].ToString();
                }
                if (Info["五笔码"] != null)
                {
                    this.yTextBox_WB.Text = Info["五笔码"].ToString();
                }
                if (Info["备注"] != null)
                {
                    this.yTextBox_Rec.Text = Info["备注"].ToString();
                }
                if (Info["地址"] != null)
                {
                    this.yTextBox_Address.Text = Info["地址"].ToString();
                }
                if (Info["企业性质"] != null)
                {
                    this.ytComboBox_Pperty.Value = Info["企业性质"].ToString();
                }
                if (Info["开户银行"] != null)
                {
                    this.yTextBox_Bank.Text = Info["开户银行"].ToString();
                }
                if (Info["开户账号"] != null)
                {
                    this.yTextBox_BANKACCOUNT.Text = Info["开户账号"].ToString();
                }
                if (Info["传真号码"] != null)
                {
                    this.yTextBox_Fax.Text = Info["传真号码"].ToString();
                }
                if (Info["法人代表"] != null)
                {
                    this.yTextBox_FRDB.Text = Info["法人代表"].ToString();
                }
                if (Info["经营许可证"] != null)
                {
                    this.yTextBox_JYXKZ.Text = Info["经营许可证"].ToString();
                }
                if (Info["联系电话"] != null)
                {
                    this.yTextBox_Phone.Text = Info["联系电话"].ToString();
                }
                if (Info["邮政编码"] != null)
                {
                    this.yTextBox_POST.Text = Info["邮政编码"].ToString();
                }
                if (Info["企业代码"] != null)
                {
                    this.yTextBox_QYDM.Text = Info["企业代码"].ToString();
                }
                if (Info["联系人"] != null)
                {
                    this.yTextBox_RELMAN.Text = Info["联系人"].ToString();
                }
                if (Info["营业执照"] != null)
                {
                    this.yTextBox_YYZZ.Text = Info["营业执照"].ToString();
                }
                if (Info["税务登记号"] != null)
                {
                    this.yTextBox_SWDJH.Text = Info["税务登记号"].ToString();
                }
            }
            else
            {
                this.yTextBox_User.Text   = His.his.UserName.ToString();
                this.yTextBox_UserID.Text = His.his.UserId.ToString();
                this.yTextBox_ChCode.Text = His.his.Choscode.ToString();
            }
        }