Exemplo n.º 1
0
 /// <summary>
 /// Function to call from AccountGroupReport
 /// </summary>
 /// <param name="frmAccountGroupObj"></param>
 /// <param name="decGroupId"></param>
 /// <param name="strFromdate"></param>
 /// <param name="strToDate"></param>
 public void CallFromAccountGroupReport(frmAccountGroupReport frmAccountGroupObj, decimal decGroupId, string strFromdate, string strToDate)
 {
     try
     {
         base.Show();
         frmAccountGroupReportObj         = frmAccountGroupObj;
         frmAccountGroupReportObj.Enabled = false;
         txtFromDate.Text  = strFromdate;
         txtToDate.Text    = strToDate;
         decAccountGroupId = decGroupId;
         arrlstGroupId.Add(decAccountGroupId);
         GridFill();
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "AGWREP14:" + ex.Message;
     }
 }
 /// <summary>
 /// Function to call from AccountGroupReport
 /// </summary>
 /// <param name="frmAccountGroupObj"></param>
 /// <param name="decGroupId"></param>
 /// <param name="strFromdate"></param>
 /// <param name="strToDate"></param>
 public void CallFromAccountGroupReport(frmAccountGroupReport frmAccountGroupObj, decimal decGroupId, string strFromdate, string strToDate)
 {
     try
     {
         base.Show();
         frmAccountGroupReportObj         = frmAccountGroupObj;
         frmAccountGroupReportObj.Enabled = false;
         txtFromDate.Text  = strFromdate;
         txtToDate.Text    = strToDate;
         decAccountGroupId = decGroupId;
         arrlstGroupId.Add(decAccountGroupId);
         GridFill();
     }
     catch (Exception ex)
     {
         MessageBox.Show("AGWREP14:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Calls frmAccountGroupReport form
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void toolStripMenuItem6_Click(object sender, EventArgs e)
 {
     try
     {
         if (CheckUserPrivilege.PrivilegeCheck(PublicVariables._decCurrentUserId, "frmAccountGroupReport", "View"))
         {
             frmAccountGroupReport frm = new frmAccountGroupReport();
             frmAccountGroupReport open = Application.OpenForms["frmAccountGroupReport"] as frmAccountGroupReport;
             if (open == null)
             {
                 frm.MdiParent = this;
                 frm.Show();
             }
             else
             {
                 open.Activate();
                 if (open.WindowState == FormWindowState.Minimized)
                 {
                     open.WindowState = FormWindowState.Normal;
                 }
             }
         }
         else
         {
             Messages.NoPrivillageMessage();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("MDI 180: " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <summary>
 /// Function to call from AccountGroupReport
 /// </summary>
 /// <param name="frmAccountGroupObj"></param>
 /// <param name="decGroupId"></param>
 /// <param name="strFromdate"></param>
 /// <param name="strToDate"></param>
 public void CallFromAccountGroupReport(frmAccountGroupReport frmAccountGroupObj, decimal decGroupId, string strFromdate, string strToDate)
 {
     try
     {
         base.Show();
         frmAccountGroupReportObj = frmAccountGroupObj;
         frmAccountGroupReportObj.Enabled = false;
         txtFromDate.Text = strFromdate;
         txtToDate.Text = strToDate;
         decAccountGroupId = decGroupId;
         arrlstGroupId.Add(decAccountGroupId);
         GridFill();
     }
     catch (Exception ex)
     {
         MessageBox.Show("AGWREP14:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }