Exemplo n.º 1
0
 private void frmRemoveTheSuit_Load(object sender, EventArgs e)
 {
     SLbAccID.Text   = iLoginEx.AccID();                                    //固定格式
     SLbAccName.Text = iLoginEx.AccName();                                  //固定格式
     SLbServer.Text  = iLoginEx.DBServerHost();                             //固定格式
     SLbYear.Text    = iLoginEx.iYear();                                    //固定格式
     SLbUser.Text    = iLoginEx.UserId() + "[" + iLoginEx.UserName() + "]"; //固定格式
     dgvLoadInfo();
 }
Exemplo n.º 2
0
        private void frmEndless_Load(object sender, EventArgs e)
        {
            SLbAccID.Text   = iLoginEx.AccID();
            SLbAccName.Text = iLoginEx.AccName();
            SLbServer.Text  = iLoginEx.DBServerHost();
            SLbYear.Text    = iLoginEx.iYear();
            SLbUser.Text    = iLoginEx.UserId() + "[" + iLoginEx.UserName() + "]";

            this.tssldateTime.Text = "当前时间:" + DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss.fff");
            this.tirTime.Interval  = 1;
            this.tirTime.Start();//backups
        }
Exemplo n.º 3
0
        private void frmSoAddInfo_Load(object sender, EventArgs e)
        {
            this.Text += "  " + System.Windows.Forms.Application.ProductVersion;

            SLbAccID.Text    = iLoginEx.AccID();
            SLbAccName.Text  = iLoginEx.AccName();
            SLbServer.Text   = iLoginEx.DBServerHost();
            SLbYear.Text     = iLoginEx.iYear();
            SLbUser.Text     = iLoginEx.UserId() + "[" + iLoginEx.UserName() + "]";
            txtCinvcode.Text = Cinvcode;
            txtCsocode.Text  = Csocode;
            lblnum.Text      = Siquantity.ToString();

            LoadDataGridView();
        }
Exemplo n.º 4
0
        public frmPUR442Main(string[] args)
        {
            try
            {
                InitializeComponent();

                //37:442-到货单查询(按请购单分类)
                iLoginEx.Initialize(args, AuthID);//必须先初始化LoginEx
                SLbAccID.Text   = iLoginEx.AccID();
                SLbAccName.Text = iLoginEx.AccName();
                SLbServer.Text  = iLoginEx.DBServerHost();
                SLbYear.Text    = iLoginEx.iYear();
                SLbUser.Text    = iLoginEx.UserId() + "[" + iLoginEx.UserName() + "]";
            }
            catch (Exception ex)
            {
                frmMessege frmmsg = new frmMessege(ex.ToString(), "frmPUR442Main()");
                frmmsg.ShowDialog(this);
            }
        }
Exemplo n.º 5
0
        public FrmMCoding(string[] args)
        {
            try
            {
                InitializeComponent();


                iLoginEx.Initialize(args, AuthID);//必须先初始化LoginEx  //固定格式


                SLbAccID.Text   = iLoginEx.AccID();                                    //固定格式
                SLbAccName.Text = iLoginEx.AccName();                                  //固定格式
                SLbServer.Text  = iLoginEx.DBServerHost();                             //固定格式
                SLbYear.Text    = iLoginEx.iYear();                                    //固定格式
                SLbUser.Text    = iLoginEx.UserId() + "[" + iLoginEx.UserName() + "]"; //固定格式
            }
            catch (Exception ex)
            {
                frmMessege frmmsg = new frmMessege(ex.ToString(), "Form1()");
                frmmsg.ShowDialog(this);
            }
        }
Exemplo n.º 6
0
 private void txtcWhCode_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     txtcWhCode.Text = iLoginEx.OpenSelectWindow("仓库", "select cWhCode as '仓库代码',cWhName as '仓库名称' from Warehouse (nolock) where cWhCode in (select cWhCode from " + iLoginEx.pubDB_UT() + "..StockClose (nolock) where cDisable=0 and cAccID='" + iLoginEx.AccID() + "')", txtcWhCode.Text, 430, 300, 1, true);
 }
Exemplo n.º 7
0
 private void txtWhCode_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     txtWhCode.Text = iLoginEx.OpenSelectWindow("仓库", "select cWhCode as '仓库代码',cWhName as '仓库名称' from Warehouse (nolock) where cWhCode in (select cWhCode from " + iLoginEx.pubDB_UT() + "..StockClose (nolock) where cDisable=0 and cAccID='" + iLoginEx.AccID() + "')", txtWhCode.Text, 430, 300, 1, true);
     //string[] para = txtWhCode.Text.Split(new string[] { "\r\n\r\n\r\n " }, StringSplitOptions.None);
     //if (para.Length > 1)
     //{
     //    txtWhCode.Text = para[0];
     //}
 }