Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                SingleProjectID = Common.ConvertEx.ToInt(Common.DNTRequest.GetString("SingleProjectID"));
                T_SingleProject_BLL spBLL = new T_SingleProject_BLL();
                T_SingleProject_MDL spMDL = spBLL.GetModel(SingleProjectID);

                List <T_Company_MDL> ltCompany = new T_Company_BLL().GetModelList("CompanyID=(select CompanyID from T_Construction_Project where ConstructionProjectID=" + Common.ConvertEx.ToString(spMDL.ConstructionProjectID) + ")");
                Comm.SetValueToPage(spMDL, this.tbl);

                gczt.Text = PublicModel.getSingleProjectStatusNameByStatus(ConvertEx.ToInt(spMDL.Status));//工程状态
                if (ltCompany.Count > 0)
                {
                    companyName.Text       = ltCompany[0].CompanyName;                                  //单位名称
                    ChargeUserName.Text    = ltCompany[0].ChargeUserName;                               //项目负责人
                    ContactPerson_Tel.Text = ltCompany[0].ContactPerson + "(" + ltCompany[0].Tel + ")"; //联系人 ,联系电话
                }
                GetWorkFlowHtml(spMDL);
            }
        }