WELOA.Web/gz/show/wageprint.aspx.cs

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GZBLL;
using LSBLL;
using WELOA.Model;
using System.Data;

namespace Web.gz.show
{
    public partial class wageprint : System.Web.UI.Page
    {
        
       
        private GZ_Info gzinfoBLL = new GZ_Info();
        
        private LS_Staff staffBLL = new LS_Staff();
        private GZ_Wage wageBLL = new GZ_Wage();

        
        protected void Page_Load(object sender, EventArgs e)
        {
            string strProjectA = "";
            if ((this.Session["rank"] == null) || (this.Session["rank"].ToString() == ""))
            {
                this.Session.Clear();
                base.Response.Write("<script language=javascript >window.parent.location.href='../../default.aspx'</script>");
            }
            if ((((this.Session["zhengjian"] != null) && (this.Session["zhengjian"].ToString() != "")) && (this.Session["company"] != null)) && (this.Session["company"].ToString() != ""))
            {
                DateSetInformation DateSetInformation;
                if (base.Request.QueryString["ProjectA"] != null)
                {
                    strProjectA = base.Request.QueryString["ProjectA"].Replace("^", "");
                }
                string strDateStar = base.Request.QueryString["DateStar"];
                string strDateEnd = base.Request.QueryString["DateEnd"];
                string strStaff = this.Session["zhengjian"].ToString();
                this.lbTitle.Text = this.Session["company"].ToString() + strProjectA + "明细表";
                switch (strDateStar)
                {
                    case "":
                    case null:
                        DateSetInformation = this.wageBLL.selectWage(strProjectA, strStaff);
                        if (DateSetInformation.nException > 0)
                        {
                            this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常2,请联系管理员处理。')</script>");
                        }
                        else if (DateSetInformation.ds.Tables[0].Rows.Count > 0)
                        {
                            this.lbbianhao.Text = DateSetInformation.ds.Tables[0].Rows[0]["证件号"].ToString();
                            this.lbxingming.Text = DateSetInformation.ds.Tables[0].Rows[0]["姓名"].ToString();
                            this.lbbumen.Text = DateSetInformation.ds.Tables[0].Rows[0]["部门"].ToString();
                            this.lbriqi.Text = DateSetInformation.ds.Tables[0].Rows[0]["日期"].ToString();
                            if (DateSetInformation.ds.Tables[0].Rows[0]["摘要"].ToString().Trim() != "")
                            {
                                this.lbshuoming.Text = "本次工资说明:" + DateSetInformation.ds.Tables[0].Rows[0]["摘要"].ToString();
后面还有 72 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。