Esempio n. 1
0
    protected void trvwDepartment_SelectedNodeChanged(object sender, System.EventArgs e)
    {
        PtYhmcBll ptYhmcBll     = new PtYhmcBll();
        string    selectedValue = this.trvwDepartment.SelectedValue;

        this.gvwUser.DataSource = ptYhmcBll.GetAllModelByWhere(string.Format("where i_bmdm = {0} ", selectedValue));
        this.gvwUser.DataBind();
        foreach (GridViewRow gridViewRow in this.gvwUser.Rows)
        {
            CheckBox checkBox = new CheckBox();
            if (gridViewRow.Controls[0].FindControl("chk") is CheckBox)
            {
                checkBox = (gridViewRow.Controls[0].FindControl("chk") as CheckBox);
            }
            Label label = new Label();
            if (gridViewRow.Controls[1].FindControl("lblName") is Label)
            {
                label = (gridViewRow.Controls[1].FindControl("lblName") as Label);
            }
            if (ContractManage_ContractType_RoleControl.userCodes.Contains(label.ToolTip))
            {
                checkBox.Checked = true;
            }
        }
    }
Esempio n. 2
0
    public void InitPage()
    {
        PtYhmcBll      ptYhmcBll     = new PtYhmcBll();
        SendNodteModel sendNoteModel = this.sendNote.GetSendNoteModel(base.Request.QueryString["ic"]);

        this.lblremark.Text    = sendNoteModel.remark;
        this.lblsnCode.Text    = sendNoteModel.snCode;
        this.lblsnAddUser.Text = ptYhmcBll.GetModelById(sendNoteModel.snAddUser).v_xm;
        this.lblsnAddTime.Text = sendNoteModel.snAddTime.ToString();
        PrjInfoModel modelByPrjGuid = this.pTPrjInfoBll.GetModelByPrjGuid(sendNoteModel.prjCode.ToString());

        if (modelByPrjGuid != null)
        {
            this.lblProjectName.Text = modelByPrjGuid.PrjName;
        }
        this.lblBllProducer.Text = ptYhmcBll.GetModelById(base.UserCode).v_xm;
        this.lblPrintDate.Text   = DateTime.Now.ToShortDateString();
        this.hdGuid.Value        = sendNoteModel.snId;
        string userName = this.am.GetUserName(sendNoteModel.Limits.ToString());

        this.labLimit.Text = userName;
        string[] snId = new string[]
        {
            sendNoteModel.snId
        };
        this.ViewState["DataTable"] = this.sendGoods.GetResourceBypncode(snId);
        this.BindGv();
    }
Esempio n. 3
0
    public static string GetUserNames(string userCodes)
    {
        List <string> listFromJson = JsonHelper.GetListFromJson(userCodes);
        PtYhmcBll     bll          = new PtYhmcBll();

        return(StringUtility.GetUserNames(bll.GetNames(listFromJson)));
    }
Esempio n. 4
0
        public int addIncomePayment(SqlTransaction trans, string id)
        {
            IncometPaymentModel      model = new IncometPayment().GetModel(id);
            fund_AccountOperateModle modle = new fund_AccountOperateModle {
                AccountNum  = Guid.NewGuid().ToString(),
                Acredence   = Guid.NewGuid().ToString(),
                AccounType  = 1,
                AccountMony = model.CllectionPrice,
                RealMony    = model.CllectionPrice
            };
            PtYhmcBll bll = new PtYhmcBll();

            modle.DepID      = bll.GetModelById(base.UserCode).i_bmdm.ToString();
            modle.SumitMan   = base.UserCode;
            modle.SumiTime   = model.CllectionTime;
            modle.IsAccount  = 0;
            modle.contracnum = model.ContractID;
            modle.projnum    = "";
            cn.justwin.stockBLL.AccountManage.accBaise.accBaise baise = new cn.justwin.stockBLL.AccountManage.accBaise.accBaise();
            if (baise.GetModel(1).accAllot == 0)
            {
                PayoutContractModel model3 = new PayoutContract().GetModel(model.ContractID);
                modle.projnum    = model3.PrjGuid;
                modle.contracnum = "";
            }
            modle.AccountMan = string.Empty;
            return(this.dal.AddList(trans, modle));
        }
Esempio n. 5
0
        public void CommitEvent(object key)
        {
            fund_ReqinfoModle        model  = this.bll.GetModel(key.ToString());
            fund_AccountOperateModle modle2 = new fund_AccountOperateModle {
                Acredence   = Guid.NewGuid().ToString(),
                AccounType  = model.reqType,
                AccountMony = new decimal?(Convert.ToDecimal(model.amount.ToString())),
                RealMony    = new decimal?(Convert.ToDecimal(model.amount.ToString()))
            };
            PtYhmc modelById = new PtYhmc();

            modelById        = new PtYhmcBll().GetModelById(base.UserCode);
            modle2.DepID     = modelById.i_bmdm.ToString();
            modle2.SumitMan  = base.UserCode;
            modle2.SumiTime  = new DateTime?(DateTime.Now);
            modle2.IsAccount = 0;
            if (model.IsContr == 0)
            {
                modle2.contracnum = model.PrjNum;
                modle2.projnum    = "";
                modle2.AccountNum = this.GetConBankNum(model.PrjNum);
            }
            else
            {
                modle2.projnum    = model.PrjNum;
                modle2.contracnum = "";
                modle2.AccountNum = this.GetPriBankNum(model.PrjNum);
            }
            modle2.AccountMan  = string.Empty;
            modle2.AccountMark = model.remark.ToString();
            new fund_AccountOperateBLL().Add(modle2);
        }
Esempio n. 6
0
        public void CommitEvent(object key)
        {
            PayoutPaymentModel       model = this.pm.GetModel(key.ToString());
            fund_AccountOperateModle modle = new fund_AccountOperateModle {
                AccountNum  = Guid.NewGuid().ToString(),
                Acredence   = Guid.NewGuid().ToString(),
                AccounType  = 1,
                AccountMony = new decimal?(Convert.ToDecimal("-" + model.PaymentMoney.ToString())),
                RealMony    = new decimal?(Convert.ToDecimal("-" + model.PaymentMoney.ToString()))
            };
            PtYhmcBll bll = new PtYhmcBll();

            modle.DepID      = bll.GetModelById(base.UserCode).i_bmdm.ToString();
            modle.SumitMan   = base.UserCode;
            modle.SumiTime   = model.InputDate;
            modle.IsAccount  = 0;
            modle.contracnum = model.ContractID;
            modle.projnum    = "";
            cn.justwin.stockBLL.AccountManage.accBaise.accBaise baise = new cn.justwin.stockBLL.AccountManage.accBaise.accBaise();
            if (baise.GetModel(1).accAllot == 0)
            {
                PayoutContractModel model3 = new PayoutContract().GetModel(model.ContractID);
                modle.projnum    = model3.PrjGuid;
                modle.contracnum = "";
            }
            modle.AccountMan  = string.Empty;
            modle.AccountMark = string.Empty;
            new fund_AccountOperateBLL().Add(modle);
        }
Esempio n. 7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         PtYhmcBll ptYhmcBll = new PtYhmcBll();
         this.txtRTXID.Text = ptYhmcBll.GetRTXID(base.UserCode);
     }
 }
Esempio n. 8
0
    protected void btnQuery_Click(object sender, System.EventArgs e)
    {
        PtYhmcBll ptYhmcBll = new PtYhmcBll();

        this.lbSelect.DataSource = ptYhmcBll.GetAllModelByWhere(string.Format(" where v_xm like '%{0}%'", this.txtQuery.Text.Trim()));
        this.lbSelect.DataBind();
        System.Collections.Generic.List <string> listFromJson = JsonHelper.GetListFromJson(JsonHelper.Serialize(JsonHelper.GetListFromJson(this.hfldUserCodes.Value).ToArray()));
        this.DataBindUserName(listFromJson);
    }
Esempio n. 9
0
    protected void trvwDepartment_SelectedNodeChanged(object sender, System.EventArgs e)
    {
        System.Collections.Generic.List <string> listFromJson = JsonHelper.GetListFromJson(this.hfldUserCodes.Value);
        PtYhmcBll ptYhmcBll     = new PtYhmcBll();
        string    selectedValue = this.trvwDepartment.SelectedValue;

        this.gvwUser.DataSource = ptYhmcBll.GetAllModelByWhere(string.Format("where i_bmdm = {0}", selectedValue));
        this.gvwUser.DataBind();
        this.DataBindUser(listFromJson);
        this.DataBindUserName(listFromJson);
    }
Esempio n. 10
0
    protected void btnQuery_Click(object sender, System.EventArgs e)
    {
        PtYhmcBll ptYhmcBll = new PtYhmcBll();

        this.lbSelect.DataSource = ptYhmcBll.GetAllModelByWhere(string.Format("where state=1 and  v_xm like '%{0}%'", this.txtQuery.Text.Trim()));
        this.lbSelect.DataBind();
        if (!string.IsNullOrEmpty(this.hfldUserCodes.Value.Trim()))
        {
            System.Collections.Generic.List <string> @string = this.GetString(this.hfldUserCodes.Value);
            this.DataBindUserName(@string);
        }
    }
Esempio n. 11
0
 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>());
     }
 }
Esempio n. 12
0
    protected void btnQuery_Click(object sender, EventArgs e)
    {
        PtYhmcBll ptYhmcBll = new PtYhmcBll();

        this.lbSelect.DataSource = ptYhmcBll.GetAllModelByWhere(string.Format("where state=1 and v_xm LIKE '%{0}%' ", this.txtQuery.Text.Trim()));
        this.lbSelect.DataBind();
        List <string> listFromJson = JsonHelper.GetListFromJson(JsonHelper.Serialize(JsonHelper.GetListFromJson(this.hfldUserCodes.Value).ToArray()));

        if (listFromJson.Count > 0)
        {
            this.DataBindUserName(listFromJson);
        }
    }
Esempio n. 13
0
    protected void trvwDepartment_SelectedNodeChanged(object sender, System.EventArgs e)
    {
        PtYhmcBll ptYhmcBll     = new PtYhmcBll();
        string    selectedValue = this.trvwDepartment.SelectedValue;

        this.lbSelect.DataSource = ptYhmcBll.GetAllModelByWhere(string.Format("where state=1 and i_bmdm = {0} ", selectedValue));
        this.lbSelect.DataBind();
        if (this.hfldUserCodes.Value != "")
        {
            System.Collections.Generic.List <string> @string = this.GetString(this.hfldUserCodes.Value);
            this.DataBindUserName(@string);
        }
    }
Esempio n. 14
0
 protected void AddUsers(System.Collections.Generic.List <string> userCodes)
 {
     if (userCodes != null)
     {
         PtYhmcBll ptYhmcBll = new PtYhmcBll();
         System.Collections.Generic.List <string> names = ptYhmcBll.GetNames(userCodes);
         for (int i = 0; i < names.Count; i++)
         {
             if (!this.hdName.Value.Contains(names[i]))
             {
                 this.lbUser.Items.Add(new ListItem(names[i], userCodes[i]));
             }
         }
     }
 }
Esempio n. 15
0
    public string GetBPerson(string userCode)
    {
        string text = "";

        userCode = StringUtility.GetArrayToInStr(userCode.Split(new char[]
        {
            ','
        }));
        IList <PtYhmc> allModelByWhere = new PtYhmcBll().GetAllModelByWhere(" where v_yhdm in(" + userCode + ")");

        foreach (PtYhmc current in allModelByWhere)
        {
            text = text + current.v_xm + ",";
        }
        return(text);
    }
Esempio n. 16
0
    protected void trvwDepartment_SelectedNodeChanged(object sender, System.EventArgs e)
    {
        PtYhmcBll ptYhmcBll     = new PtYhmcBll();
        string    selectedValue = this.trvwDepartment.SelectedValue;

        if (selectedValue != "1")
        {
            this.lbSelect.DataSource = ptYhmcBll.GetAllModelByWhere(string.Format("where state=1 and i_bmdm = {0} ", selectedValue));
        }
        else
        {
            this.lbSelect.DataSource = ptYhmcBll.GetAllModelByWhere(string.Format("where state=1 ", new object[0]));
        }
        this.lbSelect.DataBind();
        System.Collections.Generic.List <string> listFromJson = JsonHelper.GetListFromJson(JsonHelper.Serialize(JsonHelper.GetListFromJson(this.hfldUserCodes.Value).ToArray()));
        this.DataBindUserName(listFromJson);
    }
Esempio n. 17
0
        public int DeleteByBmdm(SqlTransaction trans, string bmdm, string month)
        {
            IList <PtYhmc> allModelByWhere = new PtYhmcBll().GetAllModelByWhere(" where i_bmdm in (select i_bmdm from f_cid('" + bmdm + "'))");
            string         userCode        = "";

            foreach (PtYhmc yhmc in allModelByWhere)
            {
                userCode = userCode + "'" + yhmc.v_yhdm + "',";
            }
            if (userCode.Length > 1)
            {
                userCode = userCode.Substring(0, userCode.Length - 1);
            }
            else
            {
                userCode = "''";
            }
            return(this.monthSalary.DeleteByUserCode(trans, userCode, month));
        }
Esempio n. 18
0
    public new string GetUserName(string userCode)
    {
        string text = "";

        string[] array = userCode.Split(new char[]
        {
            ','
        });
        string[] array2 = array;
        for (int i = 0; i < array2.Length; i++)
        {
            string v_yhdm    = array2[i];
            PtYhmc modelById = new PtYhmcBll().GetModelById(v_yhdm);
            if (modelById != null)
            {
                text = text + modelById.v_xm + ",";
            }
        }
        return(text);
    }
Esempio n. 19
0
    public void SendModel()
    {
        PtYhmcBll      ptYhmcBll     = new PtYhmcBll();
        SendNodteModel sendNoteModel = this.sendNote.GetSendNoteModel(this.hdfSend.Value);

        this.sendremark.Text     = sendNoteModel.remark;
        this.sendCode.Text       = sendNoteModel.snCode;
        this.sendAddUser.Text    = ptYhmcBll.GetModelById(sendNoteModel.snAddUser).v_xm;
        this.sendAddTime.Text    = sendNoteModel.snAddTime.ToString();
        this.lblProjectName.Text = this.pTPrjInfoBll.GetModelByPrjGuid(sendNoteModel.prjCode.ToString()).PrjName;
        string userName = this.am.GetUserName(sendNoteModel.Limits.ToString());

        this.sendLimit.Text = userName;
        string[] snId = new string[]
        {
            sendNoteModel.snId
        };
        this.ViewState["DataSend"] = this.sendGoods.GetResourceBypncode(snId);
        this.SendResoce();
    }
Esempio n. 20
0
    public void InitPage()
    {
        PtYhmcBll      ptYhmcBll   = new PtYhmcBll();
        sm_receiveNote modelByrnId = this.receiveNote.GetModelByrnId(base.Request.QueryString["ic"]);

        this.lblsnCode.Text      = modelByrnId.rnCode;
        this.lblsnAddUser.Text   = ptYhmcBll.GetModelById(modelByrnId.rnUser).v_xm;
        this.lblsnAddTime.Text   = modelByrnId.rnTime.ToString();
        this.txtRemark.Text      = StringUtility.ReplaceTxt(modelByrnId.remark.ToString());
        this.txtExplain.Text     = StringUtility.ReplaceTxt(modelByrnId.Explain.ToString());
        this.lblBllProducer.Text = ptYhmcBll.GetModelById(base.UserCode).v_xm;
        this.lblPrintDate.Text   = DateTime.Now.ToShortDateString();
        this.hdGuid.Value        = modelByrnId.rnId;
        this.hdfSend.Value       = modelByrnId.snId;
        string[] rnid = new string[]
        {
            modelByrnId.rnId
        };
        this.ViewState["DataTable"] = this.receiveGoods.getResourceByRnid(rnid);
        this.BindGv();
    }
Esempio n. 21
0
    public static string GetUserNamesComma(string userCodes)
    {
        List <string> codes = new List <string>();

        if (userCodes != null)
        {
            if (userCodes.ToString().Contains("["))
            {
                codes = JsonHelper.GetListFromJson(userCodes);
            }
            else
            {
                foreach (string str in userCodes.Trim(new char[] { ',' }).Split(new char[] { ',' }))
                {
                    codes.Add(str);
                }
            }
        }
        PtYhmcBll bll = new PtYhmcBll();

        return(StringUtility.GetUserNames(bll.GetNames(codes)));
    }
Esempio n. 22
0
    protected void bindBidData()
    {
        string    text       = base.Request["id"];
        DataTable partTender = TenderInfo.GetPartTender(text, "4", base.UserCode);

        if (partTender.Rows.Count > 0)
        {
            DataRow dataRow = partTender.Rows[0];
            this.dropTenderAppraiseMethod.SelectedValue = dataRow["TenderAppraiseMethod"].ToString();
            this.txtTenderAnswerDate.Text       = Common2.GetTime(dataRow["ProjTenderAnswerDate"]);
            this.txtTenderBeginDate.Text        = Common2.GetTime(dataRow["ProjTenderBeginDate"]);
            this.txtTenderAverage.Text          = dataRow["TenderAverage"].ToString();
            this.txtTenderCeilingPrice.Text     = dataRow["TenderCeilingPrice"].ToString();
            this.txtTenderContent.Text          = dataRow["ProjTenderContent"].ToString();
            this.txtTenderCostContent.Text      = dataRow["ProjTenderCostContent"].ToString();
            this.txtTenderEarnestMoney.Text     = dataRow["ProjTenderEarnestMoney"].ToString();
            this.txtTenderPrjManager.Text       = dataRow["PrjManagerName"].ToString();
            this.hfldPrjManage.Value            = dataRow["PrjManager"].ToString();
            this.txtTenderQuote.Text            = dataRow["TenderQuote"].ToString();
            this.txtTenderRemark.Text           = dataRow["ProjTenderRemark"].ToString();
            this.txtTenderUnit.Text             = dataRow["TenderUnit"].ToString();
            this.dropTenderPayWay.SelectedValue = dataRow["ProjTenderPayWay"].ToString();
            if (!string.IsNullOrEmpty(dataRow["TenderProspect"].ToString()))
            {
                this.txtTenderProspect.Text = Common2.GetTime(dataRow["TenderProspect"]);
            }
            if (!string.IsNullOrEmpty(dataRow["TenderReadOne"].ToString()))
            {
                this.hfldTenderReadOne.Value = dataRow["TenderReadOne"].ToString();
                PtYhmc modelById = new PtYhmcBll().GetModelById(this.hfldTenderReadOne.Value);
                if (modelById != null)
                {
                    this.txtTenderReadOne.Text = modelById.v_xm;
                }
            }
        }
        this.FileUpload1.Folder     = ConfigurationManager.AppSettings["ProjectFile"].ToString();
        this.FileUpload1.RecordCode = text + "_4";
    }
Esempio n. 23
0
    private void InitContract(fund_AccountOperateModle contract)
    {
        if (!string.IsNullOrEmpty(this.contractID))
        {
            contract.AoID = Convert.ToInt32(this.contractID);
        }
        contract.SumiTime    = new DateTime?(Convert.ToDateTime(this.DateBox1.Text.Trim()));
        contract.SumitMan    = base.UserCode;
        contract.AccountMony = new decimal?(Convert.ToDecimal(this.txtContractMoney.Value.Trim()));
        contract.RealMony    = contract.AccountMony;
        contract.AccounType  = new int?(int.Parse(this.DropDownList1.SelectedValue));
        contract.Acredence   = this.txtContractCode.Text.Trim();
        contract.IsAccount   = new int?(0);
        contract.projnum     = this.hdfproject.Value.Trim();
        contract.contracnum  = this.hdfcontrcn.Value.Trim();
        contract.AccountMan  = string.Empty;
        contract.AccountNum  = this.hdfaccount.Value.Trim();
        contract.AccountMark = this.txtNotes.Text.Trim();
        PtYhmc    ptYhmc    = new PtYhmc();
        PtYhmcBll ptYhmcBll = new PtYhmcBll();

        ptYhmc         = ptYhmcBll.GetModelById(base.UserCode);
        contract.DepID = ptYhmc.i_bmdm.ToString();
    }
Esempio n. 24
0
    public void BindTxt(string PrjId)
    {
        ProjectInfo byId = ProjectInfo.GetById(PrjId);

        this.ViewState["oldCode"]      = byId.PrjCode;
        this.ViewState["oldName"]      = byId.PrjName;
        this.dropXmgroup.SelectedValue = byId.Xmgroup;
        this.txtTelphone.Text          = byId.Telephone;
        if (byId.ProgAgent != "")
        {
            this.txtAgent.Text   = byId.ProgAgentName;
            this.hfldAgent.Value = byId.ProgAgent;
        }
        this.hfldAgent.Value                = byId.ProgAgent;
        this.dropBudgetWay.SelectedValue    = byId.BudgetWay;
        this.txtBuildingArea.Text           = byId.BuildingArea;
        this.dropContractWay.SelectedValue  = byId.ContractWay;
        this.txtDesigner.Text               = byId.Designer;
        this.txtDuration.Text               = byId.Duration;
        this.txtEndDate.Text                = Common2.GetTime(byId.EndDate);
        this.txtBuildingTypeNo.Text         = byId.PrjGrade;
        this.txtInspector.Text              = byId.Inspector;
        this.dropKeyPart.SelectedValue      = byId.KeyPart;
        this.txtOtherStatement.Text         = byId.OtherStatement;
        this.hfldOwner.Value                = byId.OwnerCode.ToString();
        this.dropPayCondition.SelectedValue = byId.PayCondition;
        this.dropPayWay.SelectedValue       = byId.PayWay;
        this.txtPrjCode.Value               = byId.PrjCode;
        if (byId.PrjCost.ToString() != "0")
        {
            this.txtPrjCost.Text = byId.PrjCost.ToString();
        }
        this.txtPrjFundInfo.Text = byId.PrjFundInfo;
        this.txtPrjInfo.Text     = byId.PrjInfo;
        if (byId.PrjManager != "")
        {
            this.txtPrjManager.Text   = byId.PrjManagerName;
            this.hfldPrjManager.Value = byId.PrjManager;
        }
        if (byId.Businessman != "")
        {
            this.txtBusinessman.Text   = byId.BusinessmanName;
            this.hfldBusinessman.Value = byId.Businessman;
        }
        this.txtPrjName.Text                = byId.PrjName;
        this.txtPrjPlace.Text               = byId.PrjPlace;
        this.hfldPrjState.Value             = byId.PrjState.ToString();
        this.dropQualityClass.SelectedValue = byId.QualityClass;
        this.dropRank.SelectedValue         = byId.Rank;
        this.txtRemark1.Text                = byId.Remark;
        this.txtStartDate.Text              = Common2.GetTime(byId.StartDate);
        this.dropTenderWay.SelectedValue    = byId.TenderWay;
        this.txtTotalHouseNum.Text          = byId.TotalHouseNum;
        this.txtUndergroundArea.Text        = byId.UndergroundArea;
        this.txtUsegrounArea.Text           = byId.UsegrounArea;
        this.txtAfforestArea.Text           = byId.AfforestArea;
        this.txtParkArea.Text               = byId.ParkArea;
        if (byId.WorkUnit != "")
        {
            this.txtWorkUnit.Text   = byId.WorkUnitName;
            this.hfldWorkUnit.Value = byId.WorkUnit;
        }
        this.txtForecastProfitRate.Text   = byId.ForecastProfitRate.ToString();
        this.txtEngineeringEstimates.Text = byId.EngineeringEstimates;
        if (byId.PrjDutyPerson != "")
        {
            this.hfldDutyPerson.Value = byId.PrjDutyPerson;
            this.txtDutyPerson.Text   = byId.PrjDutyPersonName;
        }
        this.txtApprovalOf.Text               = byId.PrjApprovalOf;
        this.txtFundWorkable.Text             = byId.PrjFundWorkable;
        this.txtManagementMargin.Text         = byId.ManagementMargin.ToString();
        this.txtMigrantQualityMarginRate.Text = byId.MigrantQualityMarginRate.ToString();
        this.txtWithholdingTaxRate.Text       = byId.WithholdingTaxRate.ToString();
        this.txtPerformanceBond.Text          = byId.PerformanceBond.ToString();
        this.txtElseMargin.Text               = byId.ElseMargin.ToString();
        this.txtName.Text                   = byId.ProjPeopleUserName;
        this.hfldPrjPeople.Value            = byId.ProjPeopleCode;
        this.txtCorp.Text                   = byId.ProjPeopleCorp;
        this.txtDuty.Text                   = byId.ProjPeopleDuty;
        this.txtPhone.Text                  = byId.ProjPeopleTel;
        this.txtOwner.Text                  = byId.OwnerName;
        this.txtOwnerLinkMan.Text           = byId.OwnerLinkMan;
        this.txtOwnerLinkManPhone.Text      = byId.OwnerLinkPhone;
        this.txtOwnerAddress.Text           = byId.OwnerAddress;
        this.txtPrjManagerRequire.Text      = byId.PrjManagerRequire;
        this.txtTechnicalLeaderRequire.Text = byId.TechnicalLeaderRequire;
        if (!string.IsNullOrEmpty(byId.Province))
        {
            this.dropprovince.Items.FindByText(byId.Province).Selected = true;
        }
        if (!string.IsNullOrEmpty(byId.City))
        {
            this.hfldCity.Value = byId.City;
            this.bindCity();
        }
        this.hfldEngTypeJson.Value = JsonConvert.SerializeObject(byId.EngineeringTypes);
        this.hfldPrjKindJson.Value = JsonHelper.JsonSerializer <ProjectKind[]>(byId.PrjTypes.ToArray <ProjectKind>());
        this.hfldRankJson.Value    = JsonHelper.JsonSerializer <ProjectRank[]>(byId.PrjRanks.ToArray <ProjectRank>());
        if (!string.IsNullOrWhiteSpace(byId.PrjReadOne))
        {
            this.hfldPrjReadOne.Value = byId.PrjReadOne;
            PtYhmc modelById = new PtYhmcBll().GetModelById(byId.PrjReadOne);
            if (modelById != null)
            {
                this.txtPrjReadOne.Text = modelById.v_xm;
            }
        }
        this.txtInfoOrigin.Text         = byId.ProjInfoOrigin;
        this.txtElseRequest.Text        = byId.ProjElseRequest;
        this.dropProperty.SelectedValue = byId.PrjProperty;
    }