private void Them() { Form frm; if (sale == true) { frm = KiemTraTonTai(typeof(fBaseMH_BH), "Phiếu xuất hàng"); } else { frm = KiemTraTonTai(typeof(fBaseMH_BH), "Phiếu nhập hàng"); } if (frm != null) { frm.Activate(); } else { if (sale == true) { fBaseMH_BH bh = new fBaseMH_BH(); bh.MdiParent = this; bh.Show(); } else { fBaseMH_BH mh = new fBaseMH_BH(false); mh.MdiParent = this; mh.Show(); } } }
private void SuaMH(List <CBanHang> t) { Form frm = KiemTraTonTai(typeof(fBaseMH_BH), "Phiếu nhập hàng"); if (frm != null) { frm.Close(); } fBaseMH_BH mh = new fBaseMH_BH(false, false, t); mh.MdiParent = this; mh.Show(); }
void SuaBH(List <CBanHang> cbh) { Form frm = KiemTraTonTai(typeof(fBaseMH_BH), "Phiếu xuất hàng"); if (frm != null) { frm.Close(); } fBaseMH_BH bh = new fBaseMH_BH(true, false, cbh); bh.MdiParent = this; bh.Show(); }
private void Init() { if (sale == true) { QuyenNguoiDung.LayQuyenNguoiDungTheoChucNang("btnBanHang"); if (QuyenNguoiDung.Them == false) { btnPhieu.Visible = false; } } else { QuyenNguoiDung.LayQuyenNguoiDungTheoChucNang("btnMuaHang"); if (QuyenNguoiDung.Them == false) { btnPhieu.Visible = false; } } if (sale == true) { Text = "Bán Hàng"; this.IconOptions.Image = global::DAQLBH_Devexpress.Properties.Resources.bosaleitem_32x32; btnPhieu.Caption = "Phiếu xuất hàng"; fBaseMH_BH bh = new fBaseMH_BH(); bh.MdiParent = this; bh.Show(); } else { Text = "Mua Hàng"; this.IconOptions.Image = global::DAQLBH_Devexpress.Properties.Resources.boorderitem_32x32; btnPhieu.Caption = "Phiếu nhập hàng"; fBaseMH_BH mh = new fBaseMH_BH(false); mh.MdiParent = this; mh.Show(); } }