public frmReportTongHopNhapXuat()
 {
     InitializeComponent();
     if (UtilDB.CurrentGroup.Equals(MyConfig.CongTyGroupName))
     {
         labelControl1.Visible = cboDepartment.Visible = btnFull.Visible = true;
         UtilDB.SetupDSCN(cboDepartment, () => { });
     }
 }
Exemplo n.º 2
0
 private void ShowControlsByGroup(string grName)
 {
     if (grName.Equals("congty"))
     {
         UtilDB.SetupDSCN(cboDeployment, LoadTable);
         this.pnPickDepartment.Visible = true;
         btnAdd.Enabled = false;
     }
 }
Exemplo n.º 3
0
 public frmReportDSDVT()
 {
     InitializeComponent();
     if (UtilDB.CurrentGroup.Equals(MyConfig.CongTyGroupName))
     {
         lblCN.Visible = cboDepartment.Visible = btnPrint.Visible = true;
         UtilDB.SetupDSCN(cboDepartment, () => {
         });
     }
     else
     {
         lblCN.Visible = cboDepartment.Visible = btnPrint.Visible = false;
     }
 }
Exemplo n.º 4
0
 public frmReportDSNV()
 {
     InitializeComponent();
     if (UtilDB.CurrentGroup.Equals(MyConfig.CongTyGroupName))
     {
         pnPickDepartment.Visible = true;
         UtilDB.SetupDSCN(cboDepartment, () =>
         {
             danhSachNhanVien = new Xrpt_DanhSachNhanVien(cboDepartment.Text);
             documentViewer.DocumentSource = danhSachNhanVien;
             danhSachNhanVien.CreateDocument();
         });
     }
 }
Exemplo n.º 5
0
 private void ShowControlsByGroup(string grName)
 {
     if (grName.Equals(MyConfig.CongTyGroupName))
     {
         UtilDB.SetupDSCN(this.cboDeployment, LoadTable);
         this.pnPickDepartment.Visible    = true;
         this.btnAdd.Enabled              = false;
         this.btnEdit.Enabled             = false;
         this.btnDel.Enabled              = false;
         this.btnSwitchDepartment.Enabled = false;
     }
     else if (grName.Equals(MyConfig.UserGroupName))
     {
         btnCreateLogin.Visible = false;
     }
 }