private void mnuNaqd_Click(object sender, EventArgs e)
 {
     if (dgvStore.CurrentRow.Cells["State_Name"].Value.ToString() != "پرداخت نشده")
     {
         frmMessage f = new frmMessage();
         f.flag            = 0;
         f.lblMessage.Text = "فقط اقساط پرداخت نشده قابل دریافت می باشند";
         f.ShowDialog();
     }
     else
     {
         Guid            g_cell = System.Guid.Parse(dgvStore.CurrentRow.Cells["GuidCell"].Value.ToString());
         frmCash_Daryaft f      = new frmCash_Daryaft();
         f.op = "Add";
         f.Form_Load();
         f.txtCode.Text       = dgvStore.CurrentRow.Cells["Code"].Value.ToString();
         f.txtCash.Text       = dgvStore.CurrentRow.Cells["Price"].Value.ToString();
         f.txtBabat_Code.Text = "019912";
         f.txtMoeen_Code.Text = "10301";
         if (f.ShowDialog() == DialogResult.OK)
         {
             string query = "UPDATE tbl_Customer_Installment SET State=3 WHERE Guid='" + g_cell + "'";
             if (clsFunction.Execute(dataconnection, query) == true)
             {
                 frmShow_Cus_Installment_Activated(null, null);
             }
         }
     }
 }
Exemplo n.º 2
0
 private void mnuDaryaft_Click(object sender, EventArgs e)
 {
     try
     {
         frmCash_Daryaft f = new frmCash_Daryaft();
         f.op = "Add";
         f.Form_Load();
         f.ShowDialog();
     }
     catch
     {
     }
 }