Esempio n. 1
0
    protected void btnAssign_Click(object sender, EventArgs e)
    {
        UpdateWorklistChecklist();
        DataTable dtInpectionSchedule = ((DataTable)Session["dtInpectionSchedule"]);

        objInsp.Save_InspectionWorklist(dtInpectionSchedule, Convert.ToInt32(Session["USERID"]));
        //  Load_Current_Schedules();

        string js = "alert('Worklist Assigned Successfully!');";

        ScriptManager.RegisterStartupScript(this, this.GetType(), "alertjs", js, true);
    }
Esempio n. 2
0
 protected void btnAssign_Click(object sender, EventArgs e)
 {
     try
     {
         UpdateWorklistChecklist();
         DataTable dtInpectionSchedule = ((DataTable)Session["dtInpectionSchedule"]);
         objInsp.Save_InspectionWorklist(dtInpectionSchedule, GetSessionUserID());
         Load_Current_Schedules();
         ScriptManager.RegisterStartupScript(this, this.GetType(), "alertjs", "alert('Worklist assigned successfully.');", true);
     }
     catch (Exception ex)
     {
         UDFLib.WriteExceptionLog(ex);
     }
 }
Esempio n. 3
0
    protected void btnAssign_Click(object sender, EventArgs e)
    {
        try
        {
            if (Session["dtInpectionSchedule"] != null)
            {
                DataTable dtInpectionSchedule = ((DataTable)Session["dtInpectionSchedule"]);
                objInsp.Save_InspectionWorklist(dtInpectionSchedule, Convert.ToInt32(Session["USERID"]));

                string js = "alert('Worklist Assigned Successfully!');";
                ScriptManager.RegisterStartupScript(this, this.GetType(), "alertjs", js, true);
            }
            else
            {
                string js = "alert('Worklist Assignment failed!');";
                ScriptManager.RegisterStartupScript(this, this.GetType(), "alertjs", js, true);
            }
        }
        catch (Exception)
        {
            string js = "alert('Worklist Assignment failed!');";
            ScriptManager.RegisterStartupScript(this, this.GetType(), "alertjs", js, true);
        }
    }