public int GetLevel3EscalationTimeInMins(int slaid) { int varDays = 0; int varHours = 0; int VarMins = 0; int TotalMins = 0; objLevel3 = objLevel3.Get_By_Slaid(slaid); if (objLevel3.Slaid != 0) { varDays = objLevel1.Days; varHours = objLevel1.Hours; VarMins = objLevel1.Min; TotalMins = (varDays * 24 * 60) + (varHours * 60) + VarMins; } return(TotalMins); }
protected void Level3Escalate() { int Slaid = Convert.ToInt32(Request.QueryString[0]); objLevel3 = objLevel3.Get_By_Slaid(Slaid); if (objLevel3.Slaid != 0) { string varEmail = objLevel3.Emailid; string[] arrEmail = varEmail.Split(','); if (arrEmail.Length > 2) { selectLevale3.Text = objLevel3.Emailid; } else { selectLevale3.Text = arrEmail[0].ToString(); } chkLevel3.Checked = true; if (objLevel3.Before == true) { radio1Level3.Checked = true; } else { radio2Level3.Checked = true; } txtDaysLevel3.Text = Convert.ToString(objLevel3.Days); drpHoursLevel3.SelectedIndex = objLevel3.Hours; drpMinLevel3.SelectedIndex = objLevel3.Min; } else { selectLevale3.Visible = false; listLevel3.Visible = true; radio1Level3.Checked = true; } }
protected void UpdateLevel3Escalate(int Slaid) { EscalateLevel3 obj = new EscalateLevel3(); string varemail = ""; if (radio1Level3.Checked == true) { objLevel3.After = false; objLevel3.Before = true; } else { objLevel3.After = true; objLevel3.Before = false; } objLevel3.Slaid = Slaid; for (int i = listLevel3.Items.Count - 1; i >= 0; i--) { if (listLevel3.Items[i].Selected == true) { varemail = varemail + listLevel3.Items[i].Text + ","; } } objLevel3.Days = Convert.ToInt32(txtDaysLevel3.Text); objLevel3.Hours = Convert.ToInt32(drpHoursLevel3.SelectedValue); objLevel3.Min = Convert.ToInt32(drpMinLevel3.SelectedValue); obj = obj.Get_By_Slaid(Slaid); if (obj.Slaid != 0) { if (varemail == "") { varemail = obj.Emailid; } objLevel3.Emailid = varemail; objLevel3.Level3id = obj.Level3id; objLevel3.Update(); } else { objLevel3.Emailid = varemail; objLevel3.Insert(); } }