Exemple #1
0
    void CustomerProductAccountSetup()
    {
        DataSet UserDs = obj_Collection.Get_Company_CodebyUser(Session["U_NAME"].ToString());

        if (UserDs.Tables[0].Rows.Count > 0)
        {
            if (UserDs.Tables[0].Rows[0]["USER_TYPE"].ToString() == "COMPANY")
            {
                Session["COMCode"] = UserDs.Tables[0].Rows[0]["COMPANY_CODE"].ToString();
            }
        }
    }
    void CustomerProductAccountSetup()
    {
        DataSet UserDs = obj_collection.Get_Company_CodebyUser(Session["U_NAME"].ToString());

        if (UserDs.Tables[0].Rows.Count > 0)
        {
            if (UserDs.Tables[0].Rows[0]["USER_TYPE"].ToString() == "COMPANY")
            {
                Session["COMCode"]       = UserDs.Tables[0].Rows[0]["COMPANY_CODE"].ToString();
                ddlcompany.SelectedValue = UserDs.Tables[0].Rows[0]["COMPANY_CODE"].ToString();
                ddlcompany.Enabled       = false;
                ddlcompany_SelectedIndexChanged(null, null);
                FillGrid();
            }
        }
    }