Example #1
0
 private void btnStock_Click(object sender, EventArgs e)
 {
     #region 查看库存
     int        invid = (int)m_dvM[dgM.CurrentRowIndex]["InvID"];
     FmInvStock f     = new FmInvStock(invid);
     UICtrl.SetShowStyle(f, 1);
     f.ShowDialog();
     #endregion
 }
Example #2
0
        protected override void btnEdit_Click(object sender, EventArgs e)
        {
            FmIURole f = new FmIURole();

            f.OuterFilterSQL = new string[] { "1=1 and " + this.m_strPK + "=" + this.m_dvM[this.dgM.CurrentRowIndex][this.m_strPK] };
            f.OpState        = BusiOpState.EditBusiData;
            UICtrl.SetShowStyle(f, 1);
            if (f.ShowDialog() == DialogResult.Yes)
            {
                this.m_bOpState = f.OpState; GetBusiData();
            }
        }
Example #3
0
        protected override void btnAdd_Click(object sender, EventArgs e)
        {
            FmIURole f = new FmIURole();

            f.OuterFilterSQL = new string[] { "1=1 and " + this.m_strPK + "=-1" };
            f.OpState        = BusiOpState.AddBusiData;
            UICtrl.SetShowStyle(f, 1);
            if (f.ShowDialog() == DialogResult.Yes)
            {
                this.m_bOpState = f.OpState; GetBusiData();
            }
        }
Example #4
0
        private void btnSLDateT_Click(object sender, EventArgs e)
        {
            FmDate f = new FmDate();

            f.DateTimeSelected = this.txtLDateT.Text;
            UICtrl.SetShowStyle(f, sender as Button);
            if (f.ShowDialog() == DialogResult.OK)
            {
                this.txtLDateT.Text = f.DateTimeSelected;
            }
            UICtrl.TextBox_Focus1(this.txtLDateT);
        }
Example #5
0
 protected override void btnAdd_Click(object sender, EventArgs e)
 {
     #region 新增
     FmIUInv f = new FmIUInv();
     f.OuterFilterSQL = new string[] { this.m_strPK + "=-1" };
     f.OpState        = BusiOpState.AddBusiData;
     f.setInvClass(NodeTag);
     UICtrl.SetShowStyle(f, 1);
     if (f.ShowDialog() == DialogResult.Yes)
     {
         this.m_bOpState = f.OpState; GetMBusiData();
     }
     #endregion
 }
Example #6
0
        private void btnSUFPsn_Click(object sender, EventArgs e)
        {
            FmRPsn f = new FmRPsn();

            UICtrl.SetShowStyle(f, 2);
            if (DialogResult.OK == f.ShowDialog())
            {
                DataRow dr = (DataRow)f.SelectedInfo[0];
                this.m_dvM[this.dgM.CurrentRowIndex].Row.BeginEdit();
                this.m_dvM[this.dgM.CurrentRowIndex]["PersonId"]   = dr["PersonId"];
                this.m_dvM[this.dgM.CurrentRowIndex]["PersonCode"] = dr["PersonCode"];
                this.m_dvM[this.dgM.CurrentRowIndex]["PersonName"] = dr["PersonName"];
                this.m_dvM[this.dgM.CurrentRowIndex]["DepCode"]    = dr["DepCode"];
                this.m_dvM[this.dgM.CurrentRowIndex]["DepName"]    = dr["DepName"];
                this.m_dvM[this.dgM.CurrentRowIndex].Row.EndEdit();
            }
            UICtrl.TextBox_Focus1(this.txtSPsnCode);
        }
Example #7
0
        protected override void btnAdd_Click(object sender, EventArgs e)
        {
            #region 新增
            InventoryClassDAL invcDAL = new InventoryClassDAL();
            InventoryClass    invC    = invcDAL.GetModel(TreeM.SelectedNode.Name);

            FmInvDetail frm = new FmInvDetail(OpState.Add, invC);
            UICtrl.SetShowStyle(frm, 1);
            frm.ShowDialog();
            if (frm.Saved == true)
            {
                if (this.dvDetail != null)
                {
                    this.dvDetail.Dispose();
                    this.dvDetail = null;
                }
                string[] sArray = (string[])m_tnSelected.Tag;

                this.GetMBusiData(sArray[0], true);
            }
            #endregion
        }