protected void btnupd_click(object sender, EventArgs e)
        {
            string selids = hfdselids.Value;

            Utilities_Licensing.updateprints(selids);
            ScriptManager.RegisterStartupScript(Page, GetType(), "js", " batprint.process();", true);
        }
        protected void btnNotify_Investigators_Click(object sender, EventArgs e)
        {
            string secondinvestigator = "", emails = "";

            // investigator = AdminLinq.Admin.Getemail(ddlcompinvestigate.SelectedValue);
            secondinvestigator = AdminLinq.Admin.Getemail(ddlcompinvestigate2.SelectedValue);
            string firstinv = "";

            firstinv = AdminLinq.Admin.Getemail(ddlcompinvestigate.SelectedValue);
            emails   = secondinvestigator;

            DataTable dt = new DataTable();

            dt = Utilities_Licensing.GetNameandLicno(Convert.ToInt32(hfdautoid.Value));
            int i = Mail.SendMail1("", emails, "[email protected];[email protected];[email protected];[email protected]", "Investigation assigned", "You have been assigned to assist " + firstinv + " with this investigation.<br/><br/>Case # : " + Request.QueryString[1].ToString() + "<br/><br/>Respondent Name : " + dt.Rows[0]["Name"].ToString());

            if (i == 1)
            {
                string js = " altbox('Mail sent successfully.');";
                ScriptManager.RegisterStartupScript(Page, GetType(), "scr", js, true);
            }
            else
            {
                string js = " altbox('Mail not sent.');";
                ScriptManager.RegisterStartupScript(Page, GetType(), "scr", js, true);
            }
        }
        private void PersonInsertion()
        {
            int pid = Utilities_Licensing.Insert_Person_Detail(0, txtpersonfname.Text.ToString(), txtpersonmname.Text.ToString(), txtpersonlname.Text.ToString(), txtpersonmaidenname.Text.ToString(), ddlpersongender.SelectedValue, txtpersondob.Text.ToString(), txtpersonssn.Text.ToString(), txtpersonage.Text.ToString(), txtpersonaddress1.Text.ToString(), txtpersonaddress2.Text.ToString(), txtpersoncity.Text.ToString(), ddlpersonstate.SelectedValue, ddlpersoncounty.SelectedValue, txtpersonzip.Text.ToString(), ddlpersonphone.SelectedItem.Text, txtpersonphone.Text.ToString(), ddlpersonaltphone.SelectedItem.Text, txtpersonaltphone.Text.ToString(), ddlpersonmstatus.SelectedItem.Text, txtpersonfax.Text.ToString(), txtpersonemail.Text.ToString(), rdlpersonuscitizen.SelectedValue, ddlpersonsuffix.SelectedValue, Session["UID"].ToString(), DateTime.Now.ToString(), Session["UID"].ToString(), DateTime.Now.ToString(), txtpersoncitizenexpdate.Text, txtpersoncpenumber.Text, ddlethincity.SelectedValue);

            ScriptManager.RegisterStartupScript(Page, GetType(), "js", " InsertContact('" + pid + "')", true);
            PersonClear();
        }
示例#4
0
        protected void btnedit1_click(object sender, EventArgs e)
        {
            string value = hfd_examid.Value;

            Person_Details.tbl_examdetail obj = Utilities_Licensing.EditExam(Convert.ToInt32(value));
            hfd_examid.Value = obj.exam_id.ToString();
            if (obj.Inter_Score != "" || obj.Inter_Score != null)
            {
                txt_Inter_Score.Text = obj.Inter_Score;
            }
            if (Convert.ToDateTime(obj.NPLEX_DT).ToString("MM/dd/yyyy") != "01/01/1900")
            {
                txt_NPLEXDT.Text = Convert.ToDateTime(obj.NPLEX_DT).ToString("MM/dd/yyyy");
            }
            txt_nplexscr.Text = obj.NPLEX_SCR;
            if (Convert.ToDateTime(obj.MPJE_DT).ToString("MM/dd/yyyy") != "01/01/1900")
            {
                txt_MPJEdate.Text = Convert.ToDateTime(obj.MPJE_DT).ToString("MM/dd/yyyy");
            }
            txt_MPJE_SCR.Text = obj.MPJE_SCR;

            string examtype = "";

            examtype = obj.exam_type.ToString();
            ddl_examtype.ClearSelection();
            if (ddl_examtype.Items.FindByValue(examtype) != null)
            {
                ddl_examtype.Items.FindByValue(examtype).Selected = true;
            }

            string js = "Popup1();";

            ScriptManager.RegisterStartupScript(Page, GetType(), "scr", js, true);
        }
示例#5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Utilities_Licensing.Bind_LicenseTypes_individual(ddl_applictype);
     }
 }
        protected void btnedit_Click(object sender, EventArgs e)
        {
            string value = hfdselid.Value;

            Person_Details.Tbl_CeAudit obj = Utilities_Licensing.Editceaudit(value);
            hfdceauditid.Value    = obj.CeAuditID.ToString();
            txt_datesent.Text     = obj.DateSent;
            txt_datereceived.Text = obj.DateReceived;
            txt_live_hours.Text   = obj.LiveHours;
            string status = "";

            status = obj.Status.ToString();
            if (ddl_status.Items[0].Text != status)
            {
                ddl_status.Items[0].Selected = false;
                if (ddl_status.Items.FindByValue(status) != null)
                {
                    ddl_status.Items.FindByValue(status).Selected = true;
                }
            }
            ddl_year.SelectedValue    = obj.Year;
            txt_comment.Text          = obj.Comments;
            ddl_feepaid.SelectedValue = obj.FeePaid;
            txt_Non_live_hours.Text   = obj.Non_live_hours;
            string js = "Popup();";

            ScriptManager.RegisterStartupScript(Page, GetType(), "scr", js, true);
        }
示例#7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         hfdperid.Value = Request.QueryString[0].ToString();
         Utilities_Licensing.BindDropdown(ddl_status1, 53);
         Utilities_Licensing.BindDropdown(ddlnewappstatus, 24);
         Utilities_Licensing.BindDropdown(ddlappreason, 28);
         Utilities_Licensing.BindDropdown(ddlmailorderstatus, 53);
         Utilities_Licensing.BindCheckboxlist1(chkschedules, 68);
         Utilities_Licensing.Bind_LicenseTypes_Business(ddl_buslictypes);
         Utilities_Licensing.BindLicType(ddllictype, Convert.ToInt32(hfdperid.Value));
         Utilities_Licensing.BindLicType(ddl_licensetype, Convert.ToInt32(hfdperid.Value));
         Utilities_Licensing.BindLicType(ddl_schedulelicensetype, Convert.ToInt32(hfdperid.Value));
         Person_Details.tbl_PersonDetail objtype = Person_Details.Licensing_Details.get_PersonsData(Convert.ToInt32(hfdperid.Value));
         hfdobjtype.Value = objtype.object_type.ToString();
         //if(hfdobjtype.Value=="1")
         //mailorder.Attributes.Add("style","display:none");
         Utilities_Licensing.BindDropdown(ddlnewstatus, 14);
         txtDateOfChange.Text = DateTime.Now.ToShortDateString();
         txtappdt.Text        = DateTime.Now.ToShortDateString();
         Utilities_Licensing.BindStatusChange(ddlReason);
         ddlcmp.DataSource     = ComplaintsTabLinq.ClsComplaints.GetComplaints("0", Convert.ToInt32(hfdperid.Value));
         ddlcmp.DataTextField  = "Complaint_Number";
         ddlcmp.DataValueField = "Complaint_Number";
         ddlcmp.DataBind();
         ddlcmp.Items.Insert(0, new ListItem("", ""));
         //BindLicenseData();
         Utilities_Licensing.BindLicenseTypeByPersonID(chklictypes, Convert.ToInt32(hfdperid.Value));
         foreach (ListItem li in chklictypes.Items)
         {
             li.Attributes.Add("App_ID", li.Value);
         }
     }
 }
        protected void btnok_Click(object sender, EventArgs e)
        {
            if (Utilities_Licensing.Checklicenseexxists(txtlicno.Text, Request.QueryString[0].ToString()))
            {
                int    Application_ID     = Convert.ToInt32(ddlpenapp.SelectedValue);
                string App_status_changed = DateTime.Now.ToShortDateString();
                string Issued_date        = txtissuedate.Text;
                string Expired_date       = txtExpirationDate.Text;
                int    Make_complete      = 1;
                string Licno = txtlicno.Text;

                Person_Details.Licensing_Details.Insert_Make_Complete(Application_ID, App_status_changed, Issued_date, Expired_date, Make_complete, Licno);
                ddlpenapp.DataSource     = Utilities_Licensing.Getpending_applications(Request.QueryString[0].ToString());
                ddlpenapp.DataTextField  = "License_Type";
                ddlpenapp.DataValueField = "App_ID";

                ddlpenapp.DataBind();
                if (ddlpenapp.Items.Count > 0)
                {
                    ddlap_chng(null, null);
                }
                string js = "checkval(" + ddlpenapp.Items.Count + ")";
                ScriptManager.RegisterStartupScript(Page, GetType(), "scr", js, true);
            }
            else
            {
                var lic = Person_Details.Licensing_Details.Getlicnumber_creation(Convert.ToInt32(Request.QueryString[0].ToString()));
                txtlicno.Text          = lic[0].Lic_no;
                txtExpirationDate.Text = lic[0].Expire_date;
                //txtlicno.Text = dt.Rows[0]["Lic_no"].ToString();
                //txtExpirationDate.Text = dt.Rows[0]["Expire_date"].ToString();

                altbox("Sorry! This license number has already been assigned.");
            }
        }
示例#9
0
        protected void btnedit_click(object sender, EventArgs e)
        {
            string value = hfdselid.Value;
            tbl_Licensing_Journal_Detail obj = Utilities_Licensing.EditJournal(Convert.ToInt32(value));

            hfdjournalid.Value = obj.Journal_Id.ToString();
            string journal = "";

            journal = obj.Journal_Type_Id.ToString();
            if (ddlJournalType.Items[0].Text != journal)
            {
                ddlJournalType.Items[0].Selected = false;
                if (ddlJournalType.Items.FindByValue(journal) != null)
                {
                    ddlJournalType.Items.FindByValue(journal).Selected = true;
                }
            }
            //ddlJournalType.SelectedValue = obj.Journal_Type_ID.ToString();
            string isalerts = obj.Is_Alert.ToString();

            if (isalerts == "True")
            {
                ChkjournalAlert.Checked = true;
            }
            else
            {
                ChkjournalAlert.Checked = false;
            }
            txtjournaltype.Text = obj.Description;
            Page.RegisterStartupScript("scr", "<script>Popup();</script>");
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ddlpenapp.DataSource     = Utilities_Licensing.Getpending_applications(Request.QueryString[0].ToString());
                ddlpenapp.DataTextField  = "License_Type";
                ddlpenapp.DataValueField = "App_ID";
                ddlpenapp.DataBind();
                Complaints.utilities.Fill_Dropdown(ddl_users, "tbl_Login Order by LastName", "isnull(LastName,'')+', '+isnull(FirstName,'')", "loginID", " ", "Select");
                ddlap_chng(null, null);
                if (Session["Utype"].ToString() == "417")
                {
                    txtlicno.ReadOnly     = false;
                    txtissuedate.ReadOnly = false;
                }

                List <Person_Details.tbl_PersonDetail> obj = Person_Details.Licensing_Details.GetPerson_Details(Convert.ToInt32(Request.QueryString[0].ToString()));
                if (obj[0].object_type != 1)
                {
                    tablepersonrespnsible.Visible = true;
                }
                else
                {
                    tablepersonrespnsible.Visible = false;
                }
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         //Utilities_Licensing.BindDropdown(ddl_suffix, 12);
         Utilities_Licensing.BindDropdown(ddl_gender, 18);
         Utilities_Licensing.BindDropdown(ddl_maritalstatus, 19);
         Utilities_Licensing.BindDropdown(ddl_state, 9);
         Utilities_Licensing.BindDropdown(ddl_county, 10);
         Utilities_Licensing.BindDropdown(ddlethincity, 62);
         Utilities_Licensing.BindDropdown(ddl_suffix, 12);
         //string name = Request.QueryString[0].ToString();
         // txtuser.Text =  Session["UserDetailname"].ToString();
         // lstdoc1.DataSource = Utilities_Licensing.Get_Values("tbl_lkp_us", "*", " isus=1");
         lstdoc1.DataTextField  = "Item";
         lstdoc1.DataValueField = "chkid";
         lstdoc1.DataBind();
         // lstdoc2.DataSource = Utilities_Licensing.Get_Values("tbl_lkp_us", "*", " isus=0");
         lstdoc2.DataTextField  = "Item";
         lstdoc2.DataValueField = "chkid";
         lstdoc2.DataBind();
         //string name = Request.QueryString[0].ToString();
         Bind_PersonDetails();
         hfdpid.Value = Request.QueryString[0].ToString();
         //txtverdt.Text = DateTime.Now.ToShortDateString();
     }
     //txtuser.Text = "admin";//Session["UserDetailname"].ToString();
 }
        protected void btnbusinesssave_Click(object sender, EventArgs e)
        {
            int pid = Utilities_Licensing.Insert_Business_Details(0, txtbusiness.Text, txtbusinessownersname.Text, txtbusinessstartdate.Text, ddlbusinesstype.SelectedValue, txtbusinessfein.Text, txtbusinessaddress1.Text, txtbusinessaddress2.Text, txtbusinesscity.Text, ddlbusinessstate.SelectedValue, ddlbusinesscounty.SelectedValue, txtbusinesszip.Text, ddlbusinessphone.SelectedValue, txtbusinessphone.Text, ddlbusinessaltphone.SelectedValue, txtbusinessaltphone.Text, txtbusinessfax.Text, txtbusinessemail.Text, txtbusinessdea.Text, ddlbusinessstatus.SelectedValue, Session["UID"].ToString(), DateTime.Now.ToShortDateString(), Session["UID"].ToString(), DateTime.Now.ToShortDateString());

            ScriptManager.RegisterStartupScript(Page, GetType(), "js", " InsertContact('" + pid + "')", true);
            BusinessClear();
        }
示例#13
0
        protected void btnmailordersubmit_Click(object sender, EventArgs e)
        {
            if (hfdmailid.Value == "0")
            {
                string notnew = "";
                if (chknotnew.Checked == false)
                {
                    notnew = "No";
                }
                else
                {
                    notnew = "Yes";
                }

                Utilities_Licensing.Insertmailored(hfdperid.Value, ddlmailorderstatus.SelectedValue, txteffectivedate.Text, txtexpirydate.Text, notnew, Session["UID"].ToString());
                altbox("Record inserted successfully.");

                ddlmailorderstatus.SelectedIndex = -1;
                hfdmailid.Value       = "0";
                txteffectivedate.Text = "";
                txtexpirydate.Text    = "";
                chknotnew.Checked     = false;
            }
            else
            {
                Utilities_Licensing.UpdateMailorder(Convert.ToInt32(hfdmailid.Value), ddlmailorderstatus.SelectedValue, txteffectivedate.Text.ToString(), txtexpirydate.Text.ToString(), Session["UID"].ToString(), DateTime.Now.ToString());
                altbox("Record updated successfully.");

                ddlmailorderstatus.SelectedIndex = -1;
                hfdmailid.Value       = "0";
                txteffectivedate.Text = "";
                txtexpirydate.Text    = "";
                chknotnew.Checked     = false;
            }
        }
示例#14
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                hfdpid.Value = Request.QueryString[0].ToString();
                Person_Details.tbl_PersonDetail objtype = Person_Details.Licensing_Details.get_PersonsData(Convert.ToInt32(hfdpid.Value));
                hfdobjtype.Value = objtype.object_type.ToString();
                if (hfdobjtype.Value == "1")
                {
                    haspharmacy.Attributes.Add("style", "display:none");
                }
                else
                {
                    employee.Attributes.Add("style", "display:none");
                    supervisor.Attributes.Add("style", "display:none");
                    //exam.Attributes.Add("style", "display:none");
                    outofstate.Attributes.Add("style", "display:none");
                    otherstate.Attributes.Add("style", "display:none");
                }
                Utilities_Licensing.BindDropdown(ddlstate, 9);
                Utilities_Licensing.BindDropdown(ddlcounty, 10);

                btnadd.Attributes.Add("onClick", "return open_edit(" + hfdpid.Value + ");");
                btnaddemployer.Attributes.Add("onClick", "return Open_employer(" + hfdpid.Value + ");");
                //Utilities_Licensing.BindGridEmployer(grdemployee, Convert.ToInt32(hfdpid.Value));
            }
        }
示例#15
0
        protected void ddl_feetype_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (ddl_feetype.SelectedItem.Text == "Copies Of Documents")
            {
                fnneew.Visible = true;
            }
            else
            {
                fnneew.Visible = false;
            }
            if (ddl_feetype.SelectedValue == "130" || ddl_feetype.SelectedValue == "135")
            {
                recurring.Visible = true;
            }
            else
            {
                recurring.Visible = false;
            }
            tbl_lkp_subobj obj = Utilities_Licensing.Feeamount_RetriveAmountSubOrg(Convert.ToInt32(ddl_feetype.SelectedValue));

            txt_Amount.Text  = obj.Amount.ToString();
            hfdoamount.Value = obj.Amount.ToString();
            if (obj.Amount == 0)
            {
                txt_Amount.Enabled = true;
                txt_Duedate.Text   = DateTime.Now.ToString("MM/dd/yyyy");
            }
            else
            {
                txt_Amount.Enabled = false;
                txt_Duedate.Text   = DateTime.Now.ToString("MM/dd/yyyy");
            }
        }
示例#16
0
        protected void btnedit1_click(object sender, EventArgs e)
        {
            string Value = hfdcerti_id1.Value;

            Person_Details.tbl_Certification obj = Utilities_Licensing.EditControlled_Substances(Value);
            string status = "";

            status = obj.status.ToString();
            if (ddl_status1.Items[0].Text != status)
            {
                ddl_status1.Items[0].Selected = false;
                if (ddl_status1.Items.FindByValue(status) != null)
                {
                    ddl_status1.Items.FindByValue(status).Selected = true;
                }
            }
            ddl_licensetype.SelectedIndex = -1;
            if (ddl_licensetype.Items.FindByValue(obj.App_ID.ToString()) != null)
            {
                ddl_licensetype.Items.FindByValue(obj.App_ID.ToString()).Selected = true;
            }
            effective_date1.Text = Convert.ToDateTime(obj.Effective_dt).ToString("MM/dd/yyyy");
            exp_date1.Text       = Convert.ToDateTime(obj.Expiry_dt).ToString("MM/dd/yyyy");


            string js = "Popup1();";

            ScriptManager.RegisterStartupScript(Page, GetType(), "scr", js, true);
        }
示例#17
0
        protected void btnsubmit_Click(object sender, EventArgs e)
        {
            string startdate = ""; string enddate = "";

            if (txt_startdate.Text != "")
            {
                startdate = txt_startdate.Text;
            }
            else
            {
                startdate = "01/01/1900";
            }

            if (txt_enddate.Text != "")
            {
                enddate = txt_enddate.Text;
            }
            else
            {
                enddate = "01/01/1900";
            }
            Utilities_Licensing.UpdateSupervisorStartdate(Convert.ToInt32(hfdeditid.Value), Convert.ToDateTime(startdate), Convert.ToDateTime(enddate), txt_comments.Text, Session["UID"].ToString(), "3");
            txt_startdate.Text = "";
            txt_enddate.Text   = "";
            hfdeditid.Value    = "0";
            altbox("Record updated successfully.");
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Utilities_Licensing.BindDropdown(ddl_doctype, 70);
                Utilities_Licensing.BindDropdown(ddl_Doctypeedit, 70);
                hfdperid.Value = Request.QueryString[0].ToString();
                Speciality obj = Person_Details.Licensing_Details.Getspeciality(Convert.ToInt32(hfdperid.Value));
                if (obj != null)

                {
                    if (obj.DrugCollector == Convert.ToBoolean(1))
                    {
                        drugcollect.Checked = true;
                    }
                    else
                    {
                        drugcollect.Checked = false;
                    }
                    if (obj.Parenteral == Convert.ToBoolean(1))
                    {
                        txtparent.Checked = true;
                    }
                    else
                    {
                        txtparent.Checked = false;
                    }
                    if (obj.Nuclear == Convert.ToBoolean(1))
                    {
                        txtnuclear.Checked = true;
                    }
                    else
                    {
                        txtnuclear.Checked = false;
                    }
                    if (obj.RemoteOrderEntry == Convert.ToBoolean(1))
                    {
                        txtremorder.Checked = true;
                    }
                    else
                    {
                        txtremorder.Checked = false;
                    }
                    if (obj.NonPharmacyKeyHolder == Convert.ToBoolean(1))
                    {
                        txtnonpharmacy.Checked = true;
                    }
                    else
                    {
                        txtnonpharmacy.Checked = false;
                    }
                }

                else
                {
                    hfd_chkid.Value = "0";
                }
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         hfdpid.Value = Request.QueryString[0].ToString();
         Utilities_Licensing.BindDropdown(ddlvoidres, 31);
     }
 }
        protected void btndeljournal_click(object sender, EventArgs e)
        {
            string Value = hfdinsjournal.Value;

            Utilities_Licensing.DeleteInspection_JournalDetails(Value);
            altbox("Record deleted successfully.");
            hfdinsjournal.Value = "0";
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Utilities_Licensing.BindDropdown(ddlstate, 9);
         Utilities_Licensing.BindDropdown(ddlcounty, 10);
     }
 }
示例#22
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         hfdperid.Value = Request.QueryString[0].ToString();
         Utilities_Licensing.BindDropdown(ddl_State_Of_Discipline, 9);
     }
 }
示例#23
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                hfdperid.Value = Request.QueryString[0].ToString();
                List <tbl_lkp_data> cablst = Person_Details.Licensing_Details.Get_Lkp_tablesdata(39);

                if (Request.QueryString["type"] == null)
                {
                    hfdutype.Value = "1";
                    cablst         = cablst.Where(c => c.Lkp_data_ID != 1071 && c.Lkp_data_ID != 1072 && c.Lkp_data_ID != 1075 && c.Lkp_data_ID != 1076 && c.Lkp_data_ID != 1077 && c.Lkp_data_ID != 1085).ToList();
                    Utilities_Licensing.BindDropdown(ddl_doctype, 41);
                    btndownloadall.Visible = false;
                    chklictypes.Visible    = true;
                    Utilities_Licensing.BindLicType(ddl_lictypeedit, Convert.ToInt32(hfdperid.Value));
                }
                else
                {
                    hfdutype.Value = Request.QueryString["type"].ToString();
                    if (hfdutype.Value == "2")
                    {
                        cablst = cablst.Where(c => c.Lkp_data_ID == 1071 || c.Lkp_data_ID == 1072).ToList();
                        Utilities_Licensing.BindDropdown(ddl_doctype, 57);
                        btndownloadall.Visible = true;
                        chklictypes.Visible    = false;
                        Utilities_Licensing.BindLicType(ddl_lictypeedit, Convert.ToInt32(Request.QueryString[1].ToString()));
                    }
                }
                //BindDocumnetDetails();
                // Utilities_Licensing.BindDropdown(ddl_cabinet, 39);
                if (hfdutype.Value == "1")
                {
                    lictype.Visible = true;
                }
                else
                {
                    lictype.Visible = false;
                }
                ddl_cabinet.DataSource     = cablst;
                ddl_cabinet.DataValueField = "Lkp_data_ID";
                ddl_cabinet.DataTextField  = "Values";
                ddl_cabinet.DataBind();
                ddl_cabinet.Items.Insert(0, new ListItem("Select", "-1"));
                Utilities_Licensing.BindDropdown(ddl_folder, 40);
                Utilities_Licensing.BindLicType(ddl_licensetype, Convert.ToInt32(hfdperid.Value));
                foreach (ListItem li in ddl_doctype.Items)
                {
                    ddl_doctypeedit.Items.Add(li);
                }
                Utilities_Licensing.BindLicenseTypeByPersonID(chklictypes, Convert.ToInt32(hfdperid.Value));
                foreach (ListItem li in chklictypes.Items)
                {
                    li.Attributes.Add("App_ID", li.Value);
                }
                txt_date.Text = DateTime.Now.ToShortDateString();
            }
        }
示例#24
0
        protected void btnsubmit_Click(object sender, EventArgs e)
        {
            Utilities_Licensing.UpdateRecords(txtfrom.Text, txtto.Text);
            string js = "altbox('Records updated successfully.');";

            ScriptManager.RegisterStartupScript(Page, GetType(), "scr", js, true);
            txtfrom.Text = "";
            txtto.Text   = "";
        }
 protected void btn_submit1_Click(object sender, EventArgs e)
 {
     if (hfddocid.Value != "0")
     {
         Utilities_Licensing.Updatedocumentspeciality(Convert.ToInt32(hfddocid.Value), ddl_Doctypeedit.SelectedValue, txt_editDate.Text);
         altbox1("Record updated successfully.");
         Page.RegisterStartupScript("js", "<script>sa5.process();</script>");
     }
 }
示例#26
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         hfdperid.Value = Request.QueryString[0].ToString();
         Utilities_Licensing.BindDropdown(ddl_certification_type, 52);
         Utilities_Licensing.BindDropdown(ddl_status, 53);
     }
 }
示例#27
0
        protected void btnedit_click(object sender, EventArgs e)
        {
            string Value = hfdselid.Value;



            Person_Details.tbl_Certification obj = Utilities_Licensing.EditCertification(Convert.ToInt32(Value));


            hfdcerti_id.Value = obj.Cert_id.ToString();

            string certificationtype = "";

            certificationtype = obj.Cert_Type;
            ddl_certification_type.SelectedValue = certificationtype;

            hfdperid.Value = obj.Person_id.ToString();

            string status = "";

            status = obj.status;
            ddl_status.SelectedValue = status;

            if (obj.Effective_dt == null)
            {
                effective_date.Text = "";
            }
            else
            {
                effective_date.Text = Convert.ToDateTime(obj.Effective_dt).ToString("MM/dd/yyyy");
            }

            if (obj.Expiry_dt == null)
            {
                exp_date.Text = "";
            }
            else
            {
                exp_date.Text = Convert.ToDateTime(obj.Expiry_dt).ToString("MM/dd/yyyy");
            }

            if (obj.Orginal_Date == null)
            {
                txt_orginaldate.Text = "";
            }
            else
            {
                txt_orginaldate.Text = Convert.ToDateTime(obj.Orginal_Date).ToString("MM/dd/yyyy");
            }


            txt_comments.Text = obj.Comments;

            string js = "Popup();";

            ScriptManager.RegisterStartupScript(Page, GetType(), "scr", js, true);
        }
示例#28
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Utilities_Licensing.Fill_Dropdown(ddlreasonforreject, "tbl_lkp_data", "[Values] disp", "Lkp_data_ID", " Lkp_tbl_ID=28", "Select Reason");
         Utilities_Licensing.Bind_LicenseTypes(ddl_Lictype);
         ddl_Lictype.Items.Insert(0, new ListItem("Select License Type", "-1"));
     }
 }
示例#29
0
        protected void btndel1_click(object sender, EventArgs e)
        {
            string Value = hfdcerti_id1.Value;

            Utilities_Licensing.DeleteControlled_Substances(Value);


            altbox("Record deleted successfully.");
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                hfdperid.Value = Request.QueryString[0].ToString();
                List <tbl_lkp_data> cablst = Person_Details.Licensing_Details.Get_Lkp_tablesdata(39);

                if (Request.QueryString["type"] == null)
                {
                    hfdutype.Value = "1";
                    cablst         = cablst.Where(c => c.Lkp_data_ID != 1071 && c.Lkp_data_ID != 1072 && c.Lkp_data_ID != 1075 && c.Lkp_data_ID != 1076 && c.Lkp_data_ID != 1077 && c.Lkp_data_ID != 1085).ToList();
                    Utilities_Licensing.BindDropdown(ddldoctypeedit, 41);
                    btndownloadall.Visible = false;

                    Utilities_Licensing.BindLicType(ddl_lictypeedit, Convert.ToInt32(hfdperid.Value));
                }
                else
                {
                    hfdutype.Value = Request.QueryString["type"].ToString();
                    if (hfdutype.Value == "2")
                    {
                        cablst = cablst.Where(c => c.Lkp_data_ID == 1071 || c.Lkp_data_ID == 1072).ToList();
                        Utilities_Licensing.BindDropdown(ddldoctypeedit, 57);
                        btndownloadall.Visible = true;

                        Utilities_Licensing.BindLicType(ddl_lictypeedit, Convert.ToInt32(Request.QueryString[1].ToString()));
                    }
                }
                //BindDocumnetDetails();
                // Utilities_Licensing.BindDropdown(ddl_cabinet, 39);
                if (hfdutype.Value == "1")
                {
                    lictype.Visible = true;
                }
                else
                {
                    lictype.Visible = false;
                }
                //ddl_cabinet.DataSource = cablst;
                //ddl_cabinet.DataValueField = "Lkp_data_ID";
                //ddl_cabinet.DataTextField = "Values";
                //ddl_cabinet.DataBind();
                //ddl_cabinet.Items.Insert(0, new ListItem("Select", "-1"));
                //Utilities_Licensing.BindDropdown(ddl_folder, 40);
                Utilities_Licensing.BindLicType(ddl_licensetype, Convert.ToInt32(hfdperid.Value));

                var currentYear = DateTime.Today.Year;
                for (int i = 2; i >= 0; i--)
                {
                    // Now just add an entry that's the current year minus the counter
                    ddl_year.Items.Add((currentYear - i).ToString());
                }
                ddl_year.SelectedValue = currentYear.ToString();
                txt_date.Text          = DateTime.Now.ToShortDateString();
            }
        }