コード例 #1
0
        /// <summary>
        /// hàm thực hiện việc lấy thông tin của phiếu nhập
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cmdThemPhieuNhap_Click(object sender, EventArgs e)
        {
            frm_themmoi_NhaptraKholeVeKhochan frm = new frm_themmoi_NhaptraKholeVeKhochan(KIEU_THUOC_VT);

            frm.txtIDPhieuNhapKho.Text = "-1";
            frm.em_Action        = action.Insert;
            frm.grdList          = grdList;
            frm.p_dtPhieuNhapTra = m_dtDataDonThuoc;
            frm.ShowDialog();
            if (frm.b_Cancel)
            {
                grdPres_SelectionChanged(grdList, new EventArgs());
            }
        }
コード例 #2
0
        /// <summary>
        /// hàm thực hhienj iệc cập nhập thông tin của phiếu nhập kho
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cmdUpdatePhieuNhap_Click(object sender, EventArgs e)
        {
            if (!IsValid4UpdateDelete())
            {
                return;
            }
            int IDPhieuNhap = Utility.Int32Dbnull(grdList.GetValue(TPhieutrathuocKholeVekhochan.Columns.IdPhieu), -1);
            frm_themmoi_NhaptraKholeVeKhochan frm = new frm_themmoi_NhaptraKholeVeKhochan(KIEU_THUOC_VT);

            frm.txtIDPhieuNhapKho.Text = Utility.sDbnull(IDPhieuNhap);
            frm.em_Action        = action.Update;
            frm.grdList          = grdList;
            frm.p_dtPhieuNhapTra = m_dtDataDonThuoc;
            frm.ShowDialog();
            if (frm.b_Cancel)
            {
                grdPres_SelectionChanged(grdList, new EventArgs());
            }
        }
コード例 #3
0
 /// <summary>
 /// hàm thực hhienj iệc cập nhập thông tin của phiếu nhập kho
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cmdUpdatePhieuNhap_Click(object sender, EventArgs e)
 {
     if(!IsValid4UpdateDelete())return;
     int IDPhieuNhap = Utility.Int32Dbnull(grdList.GetValue(TPhieutrathuocKholeVekhochan.Columns.IdPhieu), -1);
     frm_themmoi_NhaptraKholeVeKhochan frm = new frm_themmoi_NhaptraKholeVeKhochan(KIEU_THUOC_VT);
     frm.txtIDPhieuNhapKho.Text = Utility.sDbnull(IDPhieuNhap);
     frm.em_Action = action.Update;
     frm.grdList = grdList;
     frm.p_dtPhieuNhapTra = m_dtDataDonThuoc;
     frm.ShowDialog();
     if (frm.b_Cancel)
     {
         grdPres_SelectionChanged(grdList, new EventArgs());
     }
 }
コード例 #4
0
 /// <summary>
 /// hàm thực hiện việc lấy thông tin của phiếu nhập
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cmdThemPhieuNhap_Click(object sender, EventArgs e)
 {
     frm_themmoi_NhaptraKholeVeKhochan frm = new frm_themmoi_NhaptraKholeVeKhochan(KIEU_THUOC_VT);
     frm.txtIDPhieuNhapKho.Text = "-1";
     frm.em_Action = action.Insert;
     frm.grdList = grdList;
     frm.p_dtPhieuNhapTra = m_dtDataDonThuoc;
     frm.ShowDialog();
     if(frm.b_Cancel)
     {
         grdPres_SelectionChanged(grdList,new EventArgs());
     }
 }