Exemplo n.º 1
0
 /// <summary>
 /// Calls Corresponding Ledgers AccountGroupWiseReprt to view Details
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dgvFundFlow2_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (dgvFundFlow2.CurrentRow.Index == e.RowIndex)
         {
             if (dgvFundFlow2.CurrentCell != null)
             {
                 if (dgvFundFlow2.CurrentCell.Value != null && dgvFundFlow2.CurrentCell.Value.ToString().Trim() != string.Empty)
                 {
                     int    inRowIndex = dgvFundFlow2.CurrentCell.RowIndex;
                     int    inColIndex = dgvFundFlow2.CurrentCell.ColumnIndex;
                     string strGroupId = string.Empty;
                     if (dgvFundFlow2.Columns[inColIndex].Name == "dgvtxtParticulars" || dgvFundFlow2.Columns[inColIndex].Name == "dgvtxtOpeningBalance" || dgvFundFlow2.Columns[inColIndex].Name == "dgvtxtClosingBalance")
                     {
                         if (Convert.ToDecimal(dgvFundFlow2.Rows[e.RowIndex].Cells["dgvtxtop"].Value) != 0 || Convert.ToDecimal(dgvFundFlow2.Rows[e.RowIndex].Cells["dgvtxtcb"].Value) != 0)
                         {
                             try
                             {
                                 if (dgvFundFlow2.Rows[inRowIndex].Cells["dgvtxtgroupId"].Value != null && dgvFundFlow2.Rows[inRowIndex].Cells["dgvtxtgroupId"].Value.ToString() != string.Empty)
                                 {
                                     strGroupId = dgvFundFlow2.Rows[inRowIndex].Cells["dgvtxtgroupId"].Value.ToString();
                                 }
                             }
                             catch
                             {
                                 strGroupId = string.Empty;
                             }
                         }
                     }
                     if (strGroupId != string.Empty)
                     {
                         inCurrenRowIndex = inRowIndex;
                         frmAccountGroupwiseReport objForm1 = new frmAccountGroupwiseReport();
                         objForm1.WindowState = FormWindowState.Normal;
                         objForm1.MdiParent   = formMDI.MDIObj;
                         if (strGroupId == "6")
                         {
                             objForm1.CallFromFundFlow(txtFundFlowFromDate.Text, txtFundflowToDate.Text, strGroupId, this, dcClosingStock);
                         }
                         else
                         {
                             objForm1.CallFromFundFlow(txtFundFlowFromDate.Text, txtFundflowToDate.Text, strGroupId, this);
                         }
                         this.Enabled = false;
                     }
                 }
             }
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "FF12:" + ex.Message;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Calls Corresponding Ledgers AccountGroupWiseReprt to view Details
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dgvFundFlow_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (dgvFundFlow.CurrentRow.Index == e.RowIndex)
         {
             if (dgvFundFlow.CurrentCell != null)
             {
                 if (dgvFundFlow.CurrentCell.Value != null && dgvFundFlow.CurrentCell.Value.ToString().Trim() != string.Empty)
                 {
                     int    inRowIndex = dgvFundFlow.CurrentCell.RowIndex;
                     int    inColIndex = dgvFundFlow.CurrentCell.ColumnIndex;
                     string strGroupId = string.Empty;
                     if (dgvFundFlow.Columns[inColIndex].Name == "dgvtxtSource" || dgvFundFlow.Columns[inColIndex].Name == "dgvtxtAmount1")
                     {
                         if (Convert.ToString(dgvFundFlow.Rows[e.RowIndex].Cells["dgvtxtAmount1"].Value) != "_______________________")
                         {
                             if (Convert.ToDecimal(dgvFundFlow.Rows[e.RowIndex].Cells["dgvtxtAmount1"].Value.ToString()) != 0)
                             {
                                 if (dgvFundFlow.Rows[inRowIndex].Cells["dgvtxtgroupId1"].Value != null && dgvFundFlow.Rows[inRowIndex].Cells["dgvtxtgroupId1"].Value.ToString() != string.Empty)
                                 {
                                     strGroupId = dgvFundFlow.Rows[inRowIndex].Cells["dgvtxtgroupId1"].Value.ToString();
                                 }
                             }
                         }
                     }
                     else if (dgvFundFlow.Columns[inColIndex].Name == "dgvtxtApplication" || dgvFundFlow.Columns[inColIndex].Name == "dgvtxtAmount2")
                     {
                         if (Convert.ToString(dgvFundFlow.Rows[e.RowIndex].Cells["dgvtxtAmount2"].Value) != "________________________")
                         {
                             if (Convert.ToDecimal(dgvFundFlow.Rows[e.RowIndex].Cells["dgvtxtAmount2"].Value.ToString()) != 0)
                             {
                                 if (dgvFundFlow.Rows[inRowIndex].Cells["dgvtxtgroupId2"].Value != null && dgvFundFlow.Rows[inRowIndex].Cells["dgvtxtgroupId2"].Value.ToString() != string.Empty)
                                 {
                                     strGroupId = dgvFundFlow.Rows[inRowIndex].Cells["dgvtxtgroupId2"].Value.ToString();
                                 }
                             }
                         }
                     }
                     if (strGroupId != string.Empty)
                     {
                         inCurrenRowIndex = inRowIndex;
                         frmAccountGroupwiseReport objForm1 = new frmAccountGroupwiseReport();
                         objForm1.WindowState = FormWindowState.Normal;
                         objForm1.MdiParent   = formMDI.MDIObj;
                         objForm1.CallFromFundFlow(txtFundFlowFromDate.Text, txtFundflowToDate.Text, strGroupId, this);
                     }
                 }
             }
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "FF11:" + ex.Message;
     }
 }