コード例 #1
0
    protected void btnAddVehicle_Click(object sender, EventArgs e)
    {
        bool   LeadsUpload = false, LeadsAdmin = false;
        string EMPID = "";

        if (Ckleads.Items[0].Selected == true)
        {
            LeadsUpload = true;
        }
        else
        {
            LeadsUpload = false;
        }


        if (chkleadsadmin.Items[0].Selected == true)
        {
            LeadsAdmin = true;
        }
        else
        {
            LeadsAdmin = false;
        }


        EMPID = Session["EMpid"].ToString();

        string usertypid = "";

        try{
            usertypid = Session[Constants.USER_TYPE_ID].ToString();
        }
        catch { usertypid = "1"; }
        DataSet UserEmpRights   = objHotLeadBL.EditHistoryforadmin(EMPID, LeadsUpload, LeadsAdmin, usertypid);
        DataSet UserEmploRights = objHotLeadBL.UpdateLeadsRightsSales(EMPID, LeadsUpload, LeadsAdmin);

        GetLeadsUserRights(Convert.ToInt32(ddlcenters.SelectedValue));
        MpUpdaterights.Hide();
        Ckleads.Items[0].Selected       = false;
        chkleadsadmin.Items[0].Selected = false;
    }