void SMSJob_Click(object sender, EventArgs e)
        {
            try
            {
                long jobId = grdLister.CurrentRow.Cells["Id"].Value.ToLong();



                if (jobId > 0)
                {
                    Booking objJob = General.GetObject <Booking>(c => c.Id == jobId);
                    if (objJob != null)
                    {
                        frmSMSAll frmSMS = new frmSMSAll("", GetMessage(AppVars.objPolicyConfiguration.DespatchTextForDriver.ToStr(), objJob), objJob.SMSType.ToInt());

                        frmSMS.StartPosition = FormStartPosition.CenterScreen;
                        frmSMS.ShowDialog();

                        Thread.Sleep(500);
                        frmSMS.Dispose();
                    }
                }
            }
            catch (Exception ex)
            {
                ENUtils.ShowMessage(ex.Message);
            }
        }
示例#2
0
 void EditFareItem2_Click(object sender, EventArgs e)
 {
     try
     {
         if (grdLister.CurrentRow != null && grdLister.CurrentRow is GridViewDataRowInfo)
         {
             string    message = AppVars.objPolicyConfiguration.ArrivalBookingText.ToStr();
             frmSMSAll frm     = new frmSMSAll(grdLister.CurrentRow.Cells["MobileNo"].Value.ToStr(), message, 0);
             frm.ShowDialog();
             frm.Dispose();
         }
     }
     catch (Exception ex)
     {
         ENUtils.ShowMessage(ex.Message);
     }
 }