コード例 #1
0
ファイル: index_profile.aspx.cs プロジェクト: uwitec/ds568
 //员工人数
 public string GetStaffNum(object id)
 {
     try
     {
         var bl = new DS_Employees_Br();
         return(bl.GetSingle(int.Parse(id.ToString())).Employees);
     }
     catch { return(""); }
 }
コード例 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Button1.Click += new EventHandler(Button1_Click);
        if (IsPostBack)
        {
            return;
        }
        //设置左边菜单
        var mst = this.Master as Member_Manage_MasterPage;

        mst.SetMenuTitle("公司资料", "详细资料");

        var ud = Session["UserData"] as UserData;
        var bl = new DS_CompanyInfo_Br();
        var md = bl.GetSingleByMemberID(ud.Member.ID);

        ViewState["LegRep"]         = md.LegalRepresentative;
        ViewState["Bank"]           = md.Bank;
        ViewState["Account"]        = md.Account;
        ViewState["StorageArea"]    = md.StorageArea;
        ViewState["Employees"]      = md.Employees;
        ViewState["StudyEmployees"] = md.StudyEmployees;
        ViewState["BrandName"]      = md.BrandName;
        ViewState["Monthly"]        = md.Monthly;
        ViewState["unit"]           = md.MonthlyUnit;
        ViewState["AnnualTurnover"] = md.AnnualTurnover;
        ViewState["AnnualImports"]  = md.AnnualImports;
        ViewState["AnnualExport"]   = md.AnnualExport;
        ViewState["MSCer"]          = string.IsNullOrEmpty(md.MSCer)?"":md.MSCer.TrimEnd(',');
        ViewState["qc"]             = md.QualityControl;
        ViewState["mainmarket"]     = md.MainMarket;
        ViewState["MajorCustomers"] = md.MajorCustomers;
        ViewState["oem"]            = md.OEM;
        ViewState["ComImg"]         = md.ComImg;

        //员工人数
        var embl = new DS_Employees_Br();

        Repeater1.DataSource = Repeater2.DataSource = embl.Query("", "px");
        Repeater1.DataBind();
        Repeater2.DataBind();

        //营业额
        var tubl = new DS_Turnover_Br();

        Repeater3.DataSource = Repeater4.DataSource = Repeater5.DataSource = tubl.Query("", "px");
        Repeater3.DataBind();
        Repeater4.DataBind();
        Repeater5.DataBind();
    }
コード例 #3
0
ファイル: DetailInfo.aspx.cs プロジェクト: uwitec/ds568
    protected void Page_Load(object sender, EventArgs e)
    {
        Button1.Click+=new EventHandler(Button1_Click);
        if (IsPostBack) return;
        //设置左边菜单
        var mst = this.Master as Member_Manage_MasterPage;
        mst.SetMenuTitle("公司资料", "详细资料");

        var ud = Session["UserData"] as UserData;
        var bl = new DS_CompanyInfo_Br();
        var md = bl.GetSingleByMemberID(ud.Member.ID);
        ViewState["LegRep"] = md.LegalRepresentative;
        ViewState["Bank"] = md.Bank;
        ViewState["Account"] = md.Account;
        ViewState["StorageArea"] = md.StorageArea;
        ViewState["Employees"] = md.Employees;
        ViewState["StudyEmployees"] = md.StudyEmployees;
        ViewState["BrandName"] = md.BrandName;
        ViewState["Monthly"] = md.Monthly;
        ViewState["unit"] = md.MonthlyUnit;
        ViewState["AnnualTurnover"] = md.AnnualTurnover;
        ViewState["AnnualImports"] = md.AnnualImports;
        ViewState["AnnualExport"] = md.AnnualExport;
        ViewState["MSCer"] =string.IsNullOrEmpty(md.MSCer)?"":md.MSCer.TrimEnd(',');
        ViewState["qc"] = md.QualityControl;
        ViewState["mainmarket"] = md.MainMarket;
        ViewState["MajorCustomers"] = md.MajorCustomers;
        ViewState["oem"] = md.OEM;
        ViewState["ComImg"] = md.ComImg;

        //员工人数
        var embl = new DS_Employees_Br();
        Repeater1.DataSource = Repeater2.DataSource = embl.Query("", "px");
        Repeater1.DataBind();
        Repeater2.DataBind();

        //营业额
        var tubl = new DS_Turnover_Br();
        Repeater3.DataSource = Repeater4.DataSource = Repeater5.DataSource = tubl.Query("", "px");
        Repeater3.DataBind();
        Repeater4.DataBind();
        Repeater5.DataBind();
    }