private void Bills_Transitions_Report_Load(object sender, EventArgs e)
        {
            try
            {
                if (!loadedBranch)
                {
                    DataHelperClassBillsTransitions dh = new DataHelperClassBillsTransitions(DSparametrBillsTransitions.doubleDS);
                    gridControl1.DataSource = dh.DataSet;
                    gridControl1.DataMember = dh.DataMember;
                    gridView1.InitNewRow   += GridView1_InitNewRow;

                    loadBranch();

                    if (UserControl.userType != 1 && UserControl.userType != 13 && UserControl.userType != 7)
                    {
                        comBranch.Enabled       = false;
                        comBranch.DropDownStyle = ComboBoxStyle.DropDownList;
                        comBranch.SelectedValue = UserControl.EmpBranchID;
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            conn.Close();
        }
Example #2
0
 private void Bills_Transitions_Report_Load(object sender, EventArgs e)
 {
     try
     {
         if (!loadedBranch)
         {
             DataHelperClassBillsTransitions dh = new DataHelperClassBillsTransitions(DSparametrBillsTransitions.doubleDS);
             gridControl1.DataSource = dh.DataSet;
             gridControl1.DataMember = dh.DataMember;
             gridView1.InitNewRow   += GridView1_InitNewRow;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
     conn.Close();
 }