コード例 #1
1
ファイル: prjStateAdjust.aspx.cs プロジェクト: zxl881203/src
    private void BindData()
    {
        string     text = base.Request["prjId"].ToString();
        TenderInfo byId = TenderInfo.GetById(text);

        this.prjName.Text               = byId.PrjName;
        this.prjCode.Text               = byId.PrjCode;
        this.txtPrjState.Text           = this.GetStateName(byId.PrjState);
        this.adjTime.Text               = System.DateTime.Now.ToString("yyyy-MM-dd");
        this.drpDLstState.SelectedValue = byId.PrjState.ToString();
        PTPrjInfoStateChange byPrjIdByOrder = this.prjInfoStatChgSev.GetByPrjIdByOrder(text, -1);

        if (byPrjIdByOrder != null)
        {
            this.drpDLstState.SelectedValue = byPrjIdByOrder.ChangeState.ToString();
            if (!string.IsNullOrEmpty(byPrjIdByOrder.ChangeTime.ToString()))
            {
                this.adjTime.Text = byPrjIdByOrder.ChangeTime.Value.ToString("yyyy-MM-dd");
            }
            this.adjReason.Text = byPrjIdByOrder.ChangeReason;
            PTyhmc byId2 = new PTYhmcService().GetById(byPrjIdByOrder.ChangeUser);
            if (byId2 != null)
            {
                this.hfldUserCode.Value = byId2.v_yhdm;
                this.txtAdjustMan.Text  = byId2.v_xm;
            }
            this.remark.Text             = byPrjIdByOrder.Note;
            this.ViewState["PrjChgStID"] = byPrjIdByOrder.Id;
        }
        this.ViewState["prjState"] = byId.PrjState.ToString();
        this.ViewState["prjGuId"]  = byId.PrjGuid.ToString();
    }
コード例 #2
0
        public string GetUserName(string userCode)
        {
            if (string.IsNullOrEmpty(userCode))
            {
                return(string.Empty);
            }
            Hashtable allUser = base.Cache["USERLIST"] as Hashtable;

            if (allUser == null)
            {
                allUser = new PTYhmcService().GetAllUser();
            }
            string name = string.Empty;
            object obj2 = allUser[userCode];

            if (obj2 == null)
            {
                name = new PTYhmcService().GetName(userCode);
                if (!string.IsNullOrEmpty(name))
                {
                    allUser.Add(userCode, name);
                    base.Cache["USERLIST"] = allUser;
                }
                return(name);
            }
            return(obj2.ToString());
        }
コード例 #3
0
ファイル: PettyCashDetail.aspx.cs プロジェクト: zxl881203/src
    private void Initial()
    {
        PTdbmService  pTdbmService  = new PTdbmService();
        PTYhmcService pTYhmcService = new PTYhmcService();
        PTdbm         byId          = pTdbmService.GetById(1);

        this.lblTitle.Text = byId.V_BMMC + "备用金申请表";
        if (!string.IsNullOrEmpty(this.pcId))
        {
            PCPettyCash byId2 = this.pcSer.GetById(this.pcId);
            if (byId2 != null)
            {
                this.hfldPettyCashIds.Value = this.pcId;
                PTyhmc byId3 = pTYhmcService.GetById(byId2.Applicant);
                PTdbm  byId4 = pTdbmService.GetById(byId3.i_bmdm);
                this.lblPayer.Text           = byId2.Payer;
                this.lblApplicationDate.Text = byId2.ApplicationDate.ToString("yyyy-MM-dd");
                this.lblDepart.Text          = byId4.V_BMMC;
                this.lblApplicant.Text       = byId3.v_xm;
                this.lblAccount.Text         = byId2.Account;
                this.lblBank.Text            = byId2.Bank;
                this.lblMatter.Text          = byId2.Matter;
                if (byId2.Project != null)
                {
                    this.lblProject.Text = byId2.Project.PrjName;
                }
                this.lblCash.Text              = byId2.Cash.ToString();
                this.lblpayee.Text             = byId2.Payee;
                this.lblCashDate.Text          = byId2.CashDate.ToString("yyyy-MM-dd");
                this.lblApplicationReason.Text = StringUtility.ReplaceTxt(byId2.ApplicationReason);
            }
        }
    }
コード例 #4
0
    public void GetPattyCash()
    {
        PTdbmService             pTdbmService             = new PTdbmService();
        PTYhmcService            pTYhmcService            = new PTYhmcService();
        BasicSerialNumberService basicSerialNumberService = new BasicSerialNumberService();
        PTdbm byId = pTdbmService.GetById(1);

        this.lblTitle.Text       = byId.V_BMMC + "备用金申请表";
        this.lblPayMentDate.Text = System.DateTime.Now.ToShortDateString();
        if (!string.IsNullOrEmpty(this.pcId))
        {
            PCPettyCash byId2 = this.pcSer.GetById(this.pcId);
            if (byId2 != null)
            {
                PTyhmc byId3 = pTYhmcService.GetById(byId2.Applicant);
                PTdbm  byId4 = pTdbmService.GetById(byId3.i_bmdm);
                this.lblDepartMent.Text = byId4.V_BMMC;
                this.lblOperator.Text   = byId3.v_xm;
                this.lblContent.Text    = byId2.Matter;
                this.lblMoney.Text      = byId2.Cash.ToString();
                this.lblTotalMoney.Text = this.lblMoney.Text;
                this.lblDrawPeople.Text = byId3.v_xm;
                this.lblpayee.Text      = byId2.Payee;
                this.lblBank.Text       = byId2.Bank;
                this.lblAccount.Text    = byId2.Account;
                if (byId2.Project != null)
                {
                    this.lblProjectCode.Text = byId2.Project.PrjCode;
                }
                this.lblFileNumber.Text = basicSerialNumberService.GetNo("PC_PettyCash", this.pcId);
            }
        }
    }
コード例 #5
0
ファイル: PettyCashMonth.aspx.cs プロジェクト: zxl881203/src
    private void InitTitle(int year)
    {
        PTYhmcService pTYhmcService = new PTYhmcService();
        string        v_xm          = pTYhmcService.GetById(this.userCode).v_xm;

        this.lblTitle.Text = string.Format("{0}年{1}借款金额汇总", year, v_xm);
    }
コード例 #6
0
    protected string GetUserNameCsv(object roleId)
    {
        PrivUserRoleService privUserRoleService = new PrivUserRoleService();
        IList <string>      userByRole          = privUserRoleService.GetUserByRole(roleId.ToString());
        PTYhmcService       pTYhmcService       = new PTYhmcService();
        IList <string>      nameList            = pTYhmcService.GetNameList(userByRole);

        return(nameList.ToCsv());
    }
コード例 #7
0
ファイル: SelectAllUser.aspx.cs プロジェクト: zxl881203/src
 protected void AddUsers(System.Collections.Generic.IList <string> userCodes)
 {
     if (userCodes != null)
     {
         PtYhmcBll ptYhmcBll = new PtYhmcBll();
         ptYhmcBll.GetNames(userCodes);
         this.hfldCodeJson.Value = JsonHelper.JsonSerializer <string[]>(userCodes.ToArray <string>());
         PTYhmcService pTYhmcService = new PTYhmcService();
         System.Collections.Generic.IList <string> nameList = pTYhmcService.GetNameList(userCodes);
         this.hfldNameJson.Value = JsonHelper.JsonSerializer <string[]>(nameList.ToArray <string>());
     }
 }
コード例 #8
0
ファイル: Audit.ascx.cs プロジェクト: zxl881203/src
    public PTyhmc GetOrginator()
    {
        WFInstanceMainService wFInstanceMainService = new WFInstanceMainService();
        PTYhmcService         pTYhmcService         = new PTYhmcService();
        WFInstanceMain        wFInstanceMain        = wFInstanceMainService.GetByInstanceCode(this.pcId).FirstOrDefault <WFInstanceMain>();

        if (wFInstanceMain != null)
        {
            return(pTYhmcService.GetById(wFInstanceMain.Organiger));
        }
        return(null);
    }
コード例 #9
0
ファイル: Audit.ascx.cs プロジェクト: zxl881203/src
    public string GetName(object userCode)
    {
        string        result        = string.Empty;
        PTYhmcService pTYhmcService = new PTYhmcService();
        PTyhmc        byId          = pTYhmcService.GetById(userCode.ToString());

        if (byId != null)
        {
            result = byId.v_xm;
        }
        return(result);
    }
コード例 #10
0
ファイル: PettyCashEdit.aspx.cs プロジェクト: zxl881203/src
    private void Initial()
    {
        PTdbmService  pTdbmService  = new PTdbmService();
        PTYhmcService pTYhmcService = new PTYhmcService();
        PTdbm         byId          = pTdbmService.GetById(1);

        this.lblTitle.Text = byId.V_BMMC + "备用金申请表";
        if (string.Compare(this.type, "Add", true) == 0)
        {
            this.txtPayer.Text           = byId.V_BMMC;
            this.txtApplicationDate.Text = System.DateTime.Now.ToString("yyyy-MM-dd");
            this.txtCashDate.Text        = System.DateTime.Now.AddDays(3.0).ToString("yyyy-MM-dd");
            PTyhmc byId2 = pTYhmcService.GetById(base.UserCode);
            this.txtApplicant.Text = byId2.v_xm;
            PTdbm byId3 = pTdbmService.GetById(byId2.i_bmdm);
            this.txtDepart.Text = byId3.V_BMMC;
        }
        if (!string.IsNullOrEmpty(this.pcId))
        {
            PCPettyCash byId4 = this.pcSer.GetById(this.pcId);
            if (byId4 != null)
            {
                PTyhmc byId5 = pTYhmcService.GetById(byId4.Applicant);
                PTdbm  byId6 = pTdbmService.GetById(byId5.i_bmdm);
                this.txtPayer.Text           = byId4.Payer;
                this.txtApplicationDate.Text = byId4.ApplicationDate.ToString("yyyy-MM-dd");
                this.txtDepart.Text          = byId6.V_BMMC;
                this.txtApplicant.Text       = byId5.v_xm;
                this.txtAccount.Text         = byId4.Account;
                this.txtBank.Text            = byId4.Bank;
                this.txtMatter.Text          = byId4.Matter;
                if (byId4.Project != null)
                {
                    this.txtProject.Text       = byId4.Project.PrjName;
                    this.hfldPrjTypeCode.Value = byId4.Project.TypeCode;
                }
                this.txtCash.Text              = byId4.Cash.ToString();
                this.txtCashDate.Text          = byId4.CashDate.ToString("yyyy-MM-dd");
                this.txtApplicationReason.Text = byId4.ApplicationReason;
                this.txtpayee.Text             = byId4.Payee;
            }
        }
    }
コード例 #11
0
ファイル: Desktop.aspx.cs プロジェクト: zxl881203/src
    private void InitPage()
    {
        this.userCode           = this.Session["yhdm"].ToString();
        this.hfldUserCode.Value = this.userCode;
        this.InitMenu();
        PTYhmcService pTYhmcService = new PTYhmcService();

        this.lblCurrentUser.Text = pTYhmcService.GetById(this.userCode).v_xm;
        if (ConfigurationManager.AppSettings["PhoneNumber"] != null)
        {
            this.lblPhoneNumber.Text = ConfigurationManager.AppSettings["PhoneNumber"].ToString();
        }
        if (base.Application["UserCodeCollection"] != null)
        {
            this.lblOnlineNum.Text = ((DataTable)base.Application["UserCodeCollection"]).Rows.Count.ToString() + " ";
        }
        this.lblVersion.Text = ConfigurationManager.AppSettings["HomePageTitle"].ToString();
        HttpCookie cookie = new HttpCookie("UserCode", base.UserCode);

        base.Response.Cookies.Add(cookie);
    }
コード例 #12
0
    private void BindData()
    {
        string text = base.Request["ic"].ToString();
        PTPrjInfoStateChange byPrjIdByOrder;

        if (string.IsNullOrEmpty(base.Request["pass"]))
        {
            byPrjIdByOrder = new PTPrjInfoStateChangeService().GetByPrjIdByOrder(text, 1);
        }
        else
        {
            byPrjIdByOrder = new PTPrjInfoStateChangeService().GetByPrjIdByOrder(text, -1);
        }
        BasicCodeListService basicCodeListService = new BasicCodeListService();

        System.Guid  id   = new System.Guid(text);
        PTPrjInfoZTB byId = new PTPrjInfoZTBService().GetById(id);

        if (byPrjIdByOrder != null)
        {
            if (!string.IsNullOrEmpty(byPrjIdByOrder.ChangeUser))
            {
                PTyhmc byId2 = new PTYhmcService().GetById(byPrjIdByOrder.ChangeUser);
                this.lblChangeMan.Text = byId2.v_xm;
            }
            this.lblChangeTime.Text      = Common2.GetTime(byPrjIdByOrder.ChangeTime.ToString());
            this.lblOldState.Text        = basicCodeListService.GetNameByTypeAndCode("ProjectState", byPrjIdByOrder.OldState.Value);
            this.lblChangeState.Text     = basicCodeListService.GetNameByTypeAndCode("ProjectState", byPrjIdByOrder.ChangeState.Value);
            this.lblprjChangeReason.Text = byPrjIdByOrder.ChangeReason;
            this.lblPrjRemark.Text       = byPrjIdByOrder.Note;
        }
        if (byId != null)
        {
            this.lblPrjCode.Text   = byId.PrjCode;
            this.lblPrjName.Text   = byId.PrjName;
            this.lblStartDate.Text = Common2.GetTime(byId.StartDate).ToString();
            this.lblEndDate.Text   = Common2.GetTime(byId.EndDate).ToString();
        }
    }