Example #1
0
 private void ShowInfo(int FimaryID)
 {
     Maticsoft.BLL.record_FamilyBaseInfo bll=new Maticsoft.BLL.record_FamilyBaseInfo();
     Maticsoft.Model.record_FamilyBaseInfo model=bll.GetModel(FimaryID);
     this.lblFimaryID.Text=model.FimaryID.ToString();
     this.lblF_FimaryCode.Text=model.F_FimaryCode;
     this.lblF_UserID.Text=model.F_UserID.ToString();
     this.lblF_GroupID.Text=model.F_GroupID.ToString();
     this.lblF_FimaryTel.Text=model.F_FimaryTel;
     this.lblF_FimrayAddress.Text=model.F_FimrayAddress;
     this.lblF_HouseType.Text=model.F_HouseType.ToString();
     this.lblF_HouseArea.Text=model.F_HouseArea.ToString();
     this.lblF_Ventilation.Text=model.F_Ventilation.ToString();
     this.lblF_Humidity.Text=model.F_Humidity.ToString();
     this.lblF_Warm.Text=model.F_Warm.ToString();
     this.lblF_Lighting.Text=model.F_Lighting.ToString();
     this.lblF_Sanitation.Text=model.F_Sanitation.ToString();
     this.lblF_Kitchen.Text=model.F_Kitchen.ToString();
     this.lblF_Fuel.Text=model.F_Fuel.ToString();
     this.lblF_Water.Text=model.F_Water.ToString();
     this.lblF_WasteDisposal.Text=model.F_WasteDisposal.ToString();
     this.lblF_LivestockBar.Text=model.F_LivestockBar.ToString();
     this.lblF_ToiletType.Text=model.F_ToiletType.ToString();
     this.lblF_ResponsibilityUserID.Text=model.F_ResponsibilityUserID.ToString();
     this.lblF_FillingUserID.Text=model.F_FillingUserID.ToString();
 }
Example #2
0
 private void ShowInfo(int FimaryID)
 {
     Maticsoft.BLL.record_FamilyBaseInfo   bll   = new Maticsoft.BLL.record_FamilyBaseInfo();
     Maticsoft.Model.record_FamilyBaseInfo model = bll.GetModel(FimaryID);
     this.lblFimaryID.Text               = model.FimaryID.ToString();
     this.txtF_FimaryCode.Text           = model.F_FimaryCode;
     this.txtF_UserID.Text               = model.F_UserID.ToString();
     this.txtF_GroupID.Text              = model.F_GroupID.ToString();
     this.txtF_FimaryTel.Text            = model.F_FimaryTel;
     this.txtF_FimrayAddress.Text        = model.F_FimrayAddress;
     this.txtF_HouseType.Text            = model.F_HouseType.ToString();
     this.txtF_HouseArea.Text            = model.F_HouseArea.ToString();
     this.txtF_Ventilation.Text          = model.F_Ventilation.ToString();
     this.txtF_Humidity.Text             = model.F_Humidity.ToString();
     this.txtF_Warm.Text                 = model.F_Warm.ToString();
     this.txtF_Lighting.Text             = model.F_Lighting.ToString();
     this.txtF_Sanitation.Text           = model.F_Sanitation.ToString();
     this.txtF_Kitchen.Text              = model.F_Kitchen.ToString();
     this.txtF_Fuel.Text                 = model.F_Fuel.ToString();
     this.txtF_Water.Text                = model.F_Water.ToString();
     this.txtF_WasteDisposal.Text        = model.F_WasteDisposal.ToString();
     this.txtF_LivestockBar.Text         = model.F_LivestockBar.ToString();
     this.txtF_ToiletType.Text           = model.F_ToiletType.ToString();
     this.txtF_ResponsibilityUserID.Text = model.F_ResponsibilityUserID.ToString();
     this.txtF_FillingUserID.Text        = model.F_FillingUserID.ToString();
 }
Example #3
0
        /// <summary>
        /// 点击确定按钮执行的方法
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Button1_Click(object sender, EventArgs e)
        {
            Maticsoft.BLL.record_FamilyBaseInfo record_FamilyBaseInfo_bll = new Maticsoft.BLL.record_FamilyBaseInfo();
            Maticsoft.Model.record_FamilyBaseInfo record_FamilyBaseInfo_model = record_FamilyBaseInfo_bll.GetModel(FamilyID);

            if (record_FamilyBaseInfo_model == null)
            {
                record_FamilyBaseInfo_model = new Maticsoft.Model.record_FamilyBaseInfo();
            }

            //获取客户端通过Post方式传递过来的值的(需要更改)
            record_FamilyBaseInfo_model.F_FamilyTel = (string)Common.sink(this.F_FamilyTel.UniqueID, MethodType.Post, 255, 0, DataType.Str);
            record_FamilyBaseInfo_model.F_FamilyAddress = (string)Common.sink(this.F_FamilyAddress.UniqueID, MethodType.Post, 255, 0, DataType.Str);
            record_FamilyBaseInfo_model.F_HouseArea = Convert.ToInt32(Common.sink(this.F_HouseArea.UniqueID, MethodType.Post, 255, 0, DataType.Int));
            record_FamilyBaseInfo_model.F_HouseType = Convert.ToInt32(this.F_HouseType.SelectedValue);
            record_FamilyBaseInfo_model.F_Ventilation = Convert.ToInt32(this.F_Ventilation.SelectedValue);
            record_FamilyBaseInfo_model.F_Humidity = Convert.ToInt32(this.F_Humidity.SelectedValue);
            record_FamilyBaseInfo_model.F_Warm = Convert.ToInt32(this.F_Warm.SelectedValue);
            record_FamilyBaseInfo_model.F_Lighting = Convert.ToInt32(this.F_Lighting.SelectedValue);
            record_FamilyBaseInfo_model.F_Sanitation = Convert.ToInt32(this.F_Sanitation.SelectedValue);
            record_FamilyBaseInfo_model.F_Kitchen = Convert.ToInt32(this.F_Kitchen.SelectedValue);
            record_FamilyBaseInfo_model.F_Fuel = Convert.ToInt32(this.F_Fuel.SelectedValue);
            record_FamilyBaseInfo_model.F_Water = Convert.ToInt32(this.F_Water.SelectedValue);
            record_FamilyBaseInfo_model.F_WasteDisposal = Convert.ToInt32(this.F_WasteDisposal.SelectedValue);
            record_FamilyBaseInfo_model.F_LivestockBar = Convert.ToInt32(this.F_LivestockBar.SelectedValue);
            record_FamilyBaseInfo_model.F_ToiletType = Convert.ToInt32(this.F_ToiletType.SelectedValue);
            record_FamilyBaseInfo_model.F_ResponsibilityUserID = Convert.ToInt32(this.F_ResponsibilityUserID.Value);
            record_FamilyBaseInfo_model.F_FillingUserID = Convert.ToInt32(this.F_FillingUserID.Value);
            record_FamilyBaseInfo_model.F_UserID = Convert.ToInt32(this.F_UserID.Value);

            switch (CMD)
            {
                case "New":
                    CMD_Txt = "增加";
                    //如果是增加操作,就调用Add方法
                    record_FamilyBaseInfo_model.FamilyID = record_FamilyBaseInfo_bll.Add(record_FamilyBaseInfo_model);
                    Maticsoft.BLL.record_UserBaseInfo record_UserBaseInfo_bll = new Maticsoft.BLL.record_UserBaseInfo();
                    Maticsoft.Model.record_UserBaseInfo record_UserBaseInfo_model = record_UserBaseInfo_bll.GetModel(record_FamilyBaseInfo_model.F_UserID);
                    Maticsoft.BLL.sys_Group sys_Group_bll = new Maticsoft.BLL.sys_Group();
                    Maticsoft.Model.sys_Group sys_Group_model = sys_Group_bll.GetModel(record_UserBaseInfo_model.U_Committee);
                    string familyCode = sys_Group_model.G_Code + record_FamilyBaseInfo_model.FamilyID + "";
                    record_FamilyBaseInfo_model.F_FamilyCode = familyCode;
                    record_FamilyBaseInfo_bll.Update(record_FamilyBaseInfo_model);
                    record_UserBaseInfo_model.U_FamilyCode = familyCode;
                    record_UserBaseInfo_bll.Update(record_UserBaseInfo_model); //更新户主的家庭档案号
                    break;
                case "Edit":
                    CMD_Txt = "修改";
                    //如果是修改操作,就调用Update方法
                    record_FamilyBaseInfo_bll.Update(record_FamilyBaseInfo_model);
                    break;
            }
            All_Title_Txt = CMD_Txt + App_Txt;
            //以下方法的第4个参数需要更改
            EventMessage.MessageBox(1, "操作成功", string.Format("{1}ID({0})成功!", record_FamilyBaseInfo_model.FamilyID, All_Title_Txt), Icon_Type.OK, Common.GetHomeBaseUrl("default.aspx"));
        }
Example #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         Maticsoft.BLL.record_FamilyBaseInfo bll=new Maticsoft.BLL.record_FamilyBaseInfo();
         if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
         {
             int FimaryID=(Convert.ToInt32(Request.Params["id"]));
             bll.Delete(FimaryID);
             Response.Redirect("list.aspx");
         }
     }
 }
Example #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         Maticsoft.BLL.record_FamilyBaseInfo bll = new Maticsoft.BLL.record_FamilyBaseInfo();
         if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
         {
             int FimaryID = (Convert.ToInt32(Request.Params["id"]));
             bll.Delete(FimaryID);
             Response.Redirect("list.aspx");
         }
     }
 }
Example #6
0
        public void btnSave_Click(object sender, EventArgs e)
        {
            string strErr="";
            if(this.txtF_FimaryCode.Text.Trim().Length==0)
            {
                strErr+="家庭档案编号不能为空!\\n";
            }
            if(!PageValidate.IsNumber(txtF_UserID.Text))
            {
                strErr+="户主格式错误!\\n";
            }
            if(!PageValidate.IsNumber(txtF_GroupID.Text))
            {
                strErr+="村(居)委会ID格式错误!\\n";
            }
            if(this.txtF_FimaryTel.Text.Trim().Length==0)
            {
                strErr+="F_FimaryTel不能为空!\\n";
            }
            if(this.txtF_FimrayAddress.Text.Trim().Length==0)
            {
                strErr+="家庭地址不能为空!\\n";
            }
            if(!PageValidate.IsNumber(txtF_HouseType.Text))
            {
                strErr+="房屋类型 1:砖瓦平房格式错误!\\n";
            }
            if(!PageValidate.IsDecimal(txtF_HouseArea.Text))
            {
                strErr+="居住面积格式错误!\\n";
            }
            if(!PageValidate.IsNumber(txtF_Ventilation.Text))
            {
                strErr+="通风 1:好格式错误!\\n";
            }
            if(!PageValidate.IsNumber(txtF_Humidity.Text))
            {
                strErr+="湿度 1:潮湿格式错误!\\n";
            }
            if(!PageValidate.IsNumber(txtF_Warm.Text))
            {
                strErr+="保暖 1:好格式错误!\\n";
            }
            if(!PageValidate.IsNumber(txtF_Lighting.Text))
            {
                strErr+="采光 1:好格式错误!\\n";
            }
            if(!PageValidate.IsNumber(txtF_Sanitation.Text))
            {
                strErr+="卫生 1:清洁格式错误!\\n";
            }
            if(!PageValidate.IsNumber(txtF_Kitchen.Text))
            {
                strErr+="厨房 1:合用格式错误!\\n";
            }
            if(!PageValidate.IsNumber(txtF_Fuel.Text))
            {
                strErr+="使用燃料 1:液化气格式错误!\\n";
            }
            if(!PageValidate.IsNumber(txtF_Water.Text))
            {
                strErr+="饮水来源 1:自来水格式错误!\\n";
            }
            if(!PageValidate.IsNumber(txtF_WasteDisposal.Text))
            {
                strErr+="垃圾处理 1:垃圾处理格式错误!\\n";
            }
            if(!PageValidate.IsNumber(txtF_LivestockBar.Text))
            {
                strErr+="禽畜栏 1:单设格式错误!\\n";
            }
            if(!PageValidate.IsNumber(txtF_ToiletType.Text))
            {
                strErr+="厕所类型 1:家庭卫生厕所:三格式粪池式格式错误!\\n";
            }
            if(!PageValidate.IsNumber(txtF_ResponsibilityUserID.Text))
            {
                strErr+="责任人格式错误!\\n";
            }
            if(!PageValidate.IsNumber(txtF_FillingUserID.Text))
            {
                strErr+="建档人格式错误!\\n";
            }

            if(strErr!="")
            {
                MessageBox.Show(this,strErr);
                return;
            }
            int FimaryID=int.Parse(this.lblFimaryID.Text);
            string F_FimaryCode=this.txtF_FimaryCode.Text;
            int F_UserID=int.Parse(this.txtF_UserID.Text);
            int F_GroupID=int.Parse(this.txtF_GroupID.Text);
            string F_FimaryTel=this.txtF_FimaryTel.Text;
            string F_FimrayAddress=this.txtF_FimrayAddress.Text;
            int F_HouseType=int.Parse(this.txtF_HouseType.Text);
            decimal F_HouseArea=decimal.Parse(this.txtF_HouseArea.Text);
            int F_Ventilation=int.Parse(this.txtF_Ventilation.Text);
            int F_Humidity=int.Parse(this.txtF_Humidity.Text);
            int F_Warm=int.Parse(this.txtF_Warm.Text);
            int F_Lighting=int.Parse(this.txtF_Lighting.Text);
            int F_Sanitation=int.Parse(this.txtF_Sanitation.Text);
            int F_Kitchen=int.Parse(this.txtF_Kitchen.Text);
            int F_Fuel=int.Parse(this.txtF_Fuel.Text);
            int F_Water=int.Parse(this.txtF_Water.Text);
            int F_WasteDisposal=int.Parse(this.txtF_WasteDisposal.Text);
            int F_LivestockBar=int.Parse(this.txtF_LivestockBar.Text);
            int F_ToiletType=int.Parse(this.txtF_ToiletType.Text);
            int F_ResponsibilityUserID=int.Parse(this.txtF_ResponsibilityUserID.Text);
            int F_FillingUserID=int.Parse(this.txtF_FillingUserID.Text);

            Maticsoft.Model.record_FamilyBaseInfo model=new Maticsoft.Model.record_FamilyBaseInfo();
            model.FimaryID=FimaryID;
            model.F_FimaryCode=F_FimaryCode;
            model.F_UserID=F_UserID;
            model.F_GroupID=F_GroupID;
            model.F_FimaryTel=F_FimaryTel;
            model.F_FimrayAddress=F_FimrayAddress;
            model.F_HouseType=F_HouseType;
            model.F_HouseArea=F_HouseArea;
            model.F_Ventilation=F_Ventilation;
            model.F_Humidity=F_Humidity;
            model.F_Warm=F_Warm;
            model.F_Lighting=F_Lighting;
            model.F_Sanitation=F_Sanitation;
            model.F_Kitchen=F_Kitchen;
            model.F_Fuel=F_Fuel;
            model.F_Water=F_Water;
            model.F_WasteDisposal=F_WasteDisposal;
            model.F_LivestockBar=F_LivestockBar;
            model.F_ToiletType=F_ToiletType;
            model.F_ResponsibilityUserID=F_ResponsibilityUserID;
            model.F_FillingUserID=F_FillingUserID;

            Maticsoft.BLL.record_FamilyBaseInfo bll=new Maticsoft.BLL.record_FamilyBaseInfo();
            bll.Update(model);
            Maticsoft.Common.MessageBox.ShowAndRedirect(this,"保存成功!","list.aspx");
        }
Example #7
0
        public void btnSave_Click(object sender, EventArgs e)
        {
            string strErr = "";

            if (this.txtF_FimaryCode.Text.Trim().Length == 0)
            {
                strErr += "家庭档案编号不能为空!\\n";
            }
            if (!PageValidate.IsNumber(txtF_UserID.Text))
            {
                strErr += "户主格式错误!\\n";
            }
            if (!PageValidate.IsNumber(txtF_GroupID.Text))
            {
                strErr += "村(居)委会ID格式错误!\\n";
            }
            if (this.txtF_FimaryTel.Text.Trim().Length == 0)
            {
                strErr += "F_FimaryTel不能为空!\\n";
            }
            if (this.txtF_FimrayAddress.Text.Trim().Length == 0)
            {
                strErr += "家庭地址不能为空!\\n";
            }
            if (!PageValidate.IsNumber(txtF_HouseType.Text))
            {
                strErr += "房屋类型 1:砖瓦平房格式错误!\\n";
            }
            if (!PageValidate.IsDecimal(txtF_HouseArea.Text))
            {
                strErr += "居住面积格式错误!\\n";
            }
            if (!PageValidate.IsNumber(txtF_Ventilation.Text))
            {
                strErr += "通风 1:好格式错误!\\n";
            }
            if (!PageValidate.IsNumber(txtF_Humidity.Text))
            {
                strErr += "湿度 1:潮湿格式错误!\\n";
            }
            if (!PageValidate.IsNumber(txtF_Warm.Text))
            {
                strErr += "保暖 1:好格式错误!\\n";
            }
            if (!PageValidate.IsNumber(txtF_Lighting.Text))
            {
                strErr += "采光 1:好格式错误!\\n";
            }
            if (!PageValidate.IsNumber(txtF_Sanitation.Text))
            {
                strErr += "卫生 1:清洁格式错误!\\n";
            }
            if (!PageValidate.IsNumber(txtF_Kitchen.Text))
            {
                strErr += "厨房 1:合用格式错误!\\n";
            }
            if (!PageValidate.IsNumber(txtF_Fuel.Text))
            {
                strErr += "使用燃料 1:液化气格式错误!\\n";
            }
            if (!PageValidate.IsNumber(txtF_Water.Text))
            {
                strErr += "饮水来源 1:自来水格式错误!\\n";
            }
            if (!PageValidate.IsNumber(txtF_WasteDisposal.Text))
            {
                strErr += "垃圾处理 1:垃圾处理格式错误!\\n";
            }
            if (!PageValidate.IsNumber(txtF_LivestockBar.Text))
            {
                strErr += "禽畜栏 1:单设格式错误!\\n";
            }
            if (!PageValidate.IsNumber(txtF_ToiletType.Text))
            {
                strErr += "厕所类型 1:家庭卫生厕所:三格式粪池式格式错误!\\n";
            }
            if (!PageValidate.IsNumber(txtF_ResponsibilityUserID.Text))
            {
                strErr += "责任人格式错误!\\n";
            }
            if (!PageValidate.IsNumber(txtF_FillingUserID.Text))
            {
                strErr += "建档人格式错误!\\n";
            }

            if (strErr != "")
            {
                MessageBox.Show(this, strErr);
                return;
            }
            int     FimaryID               = int.Parse(this.lblFimaryID.Text);
            string  F_FimaryCode           = this.txtF_FimaryCode.Text;
            int     F_UserID               = int.Parse(this.txtF_UserID.Text);
            int     F_GroupID              = int.Parse(this.txtF_GroupID.Text);
            string  F_FimaryTel            = this.txtF_FimaryTel.Text;
            string  F_FimrayAddress        = this.txtF_FimrayAddress.Text;
            int     F_HouseType            = int.Parse(this.txtF_HouseType.Text);
            decimal F_HouseArea            = decimal.Parse(this.txtF_HouseArea.Text);
            int     F_Ventilation          = int.Parse(this.txtF_Ventilation.Text);
            int     F_Humidity             = int.Parse(this.txtF_Humidity.Text);
            int     F_Warm                 = int.Parse(this.txtF_Warm.Text);
            int     F_Lighting             = int.Parse(this.txtF_Lighting.Text);
            int     F_Sanitation           = int.Parse(this.txtF_Sanitation.Text);
            int     F_Kitchen              = int.Parse(this.txtF_Kitchen.Text);
            int     F_Fuel                 = int.Parse(this.txtF_Fuel.Text);
            int     F_Water                = int.Parse(this.txtF_Water.Text);
            int     F_WasteDisposal        = int.Parse(this.txtF_WasteDisposal.Text);
            int     F_LivestockBar         = int.Parse(this.txtF_LivestockBar.Text);
            int     F_ToiletType           = int.Parse(this.txtF_ToiletType.Text);
            int     F_ResponsibilityUserID = int.Parse(this.txtF_ResponsibilityUserID.Text);
            int     F_FillingUserID        = int.Parse(this.txtF_FillingUserID.Text);


            Maticsoft.Model.record_FamilyBaseInfo model = new Maticsoft.Model.record_FamilyBaseInfo();
            model.FimaryID               = FimaryID;
            model.F_FimaryCode           = F_FimaryCode;
            model.F_UserID               = F_UserID;
            model.F_GroupID              = F_GroupID;
            model.F_FimaryTel            = F_FimaryTel;
            model.F_FimrayAddress        = F_FimrayAddress;
            model.F_HouseType            = F_HouseType;
            model.F_HouseArea            = F_HouseArea;
            model.F_Ventilation          = F_Ventilation;
            model.F_Humidity             = F_Humidity;
            model.F_Warm                 = F_Warm;
            model.F_Lighting             = F_Lighting;
            model.F_Sanitation           = F_Sanitation;
            model.F_Kitchen              = F_Kitchen;
            model.F_Fuel                 = F_Fuel;
            model.F_Water                = F_Water;
            model.F_WasteDisposal        = F_WasteDisposal;
            model.F_LivestockBar         = F_LivestockBar;
            model.F_ToiletType           = F_ToiletType;
            model.F_ResponsibilityUserID = F_ResponsibilityUserID;
            model.F_FillingUserID        = F_FillingUserID;

            Maticsoft.BLL.record_FamilyBaseInfo bll = new Maticsoft.BLL.record_FamilyBaseInfo();
            bll.Update(model);
            Maticsoft.Common.MessageBox.ShowAndRedirect(this, "保存成功!", "list.aspx");
        }
Example #8
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void OnStart()
        {
            if (CMD == "New")
            {
            }
            else if (CMD == "Edit")
            {
                HeadMenuButtonItem bi2 = new HeadMenuButtonItem();
                bi2.ButtonPopedom = PopedomType.Delete;
                bi2.ButtonName = "家庭健康档案";  //需要改
                bi2.ButtonUrlType = UrlType.JavaScript;
                bi2.ButtonUrl = string.Format("DelData('?CMD=Delete&FamilyID={0}')", FamilyID);
                HeadMenuWebControls1.ButtonList.Add(bi2);

                InputData();
            }
            else if (CMD == "Delete")
            {
            Maticsoft.BLL.record_FamilyBaseInfo bll = new Maticsoft.BLL.record_FamilyBaseInfo();
                Maticsoft.Model.record_FamilyBaseInfo model = bll.GetModel(FamilyID);
                //bll执行删除操作,参数是这个实体类的ID值
                bll.Delete(model.FamilyID);
                Maticsoft.BLL.record_FamilyProblem record_FamilyProblem_bll = new Maticsoft.BLL.record_FamilyProblem();
                record_FamilyProblem_bll.Delete(model.FamilyID);
                //以下方法的第4、5个参数需要更改
                EventMessage.MessageBox(1, "操作成功", string.Format("{1}ID({0})成功!", FamilyID, "删除信息"), Icon_Type.OK, Common.GetHomeBaseUrl("default.aspx"));
            }
        }
Example #9
0
 /// <summary>
 /// 在编辑的时候将对应的值绑定到Label上
 /// </summary>
 private void InputData()
 {
     Maticsoft.BLL.record_FamilyBaseInfo bll = new Maticsoft.BLL.record_FamilyBaseInfo();
     Maticsoft.Model.record_FamilyBaseInfo model = bll.GetModel(FamilyID);
     F_FamilyTel.Text = model.F_FamilyTel.ToString();
     F_HouseType.SelectedValue = model.F_HouseType + "";
     F_FamilyAddress.Text = model.F_FamilyAddress;
     F_FamilyCode.Text = model.F_FamilyCode;
     F_HouseArea.Text = model.F_HouseArea.ToString();
     F_Ventilation.SelectedValue = model.F_Ventilation + "";
     F_Humidity.SelectedValue = model.F_Humidity + "";
     F_Warm.SelectedValue = model.F_Warm + "";
     F_Lighting.SelectedValue = model.F_Lighting + "";
     F_Sanitation.SelectedValue = model.F_Sanitation + "";
     F_Kitchen.SelectedValue = model.F_Kitchen + "";
     F_Fuel.SelectedValue = model.F_Fuel + "";
     F_Water.SelectedValue = model.F_Water + "";
     F_WasteDisposal.SelectedValue = model.F_WasteDisposal + "";
     F_LivestockBar.SelectedValue = model.F_LivestockBar + "";
     F_ToiletType.SelectedValue = model.F_ToiletType + "";
     Maticsoft.BLL.sys_User user_bll = new Maticsoft.BLL.sys_User();
     Maticsoft.Model.sys_User user_model = user_bll.GetModel(model.F_UserID);
     F_UserID.Value = user_model.UserID + "";
     F_UserID_input.Value = user_model.U_CName;
     Maticsoft.Model.sys_User user_model1 = user_bll.GetModel(model.F_ResponsibilityUserID);
     F_ResponsibilityUserID.Value = user_model1.UserID + "";
     F_ResponsibilityUserID_input.Value = user_model1.U_CName;
     Maticsoft.Model.sys_User user_model2 = user_bll.GetModel(model.F_FillingUserID);
     F_FillingUserID.Value = user_model2.UserID + "";
     F_FillingUserID_input.Value = user_model2.U_CName;
     Maticsoft.BLL.record_FamilyProblem record_FamilyProblem_bll = new Maticsoft.BLL.record_FamilyProblem();
     Maticsoft.Model.record_FamilyProblem record_FamilyProblem_model = record_FamilyProblem_bll.GetModel(model.FamilyID);
     if (record_FamilyProblem_model != null)
     {
         F_RecordTime.Text = record_FamilyProblem_model.F_RecordTime.ToShortDateString();
         F_StartTime.Text = record_FamilyProblem_model.F_StartTime.ToShortDateString();
         F_endTime.Text = record_FamilyProblem_model.F_endTime.ToShortDateString();
         F_OverviewProblem.Text = record_FamilyProblem_model.F_OverviewProblem.ToString();
         F_DetailProblem.Text = record_FamilyProblem_model.F_DetailProblem.ToString();
         Maticsoft.BLL.sys_User fillinguser_bll = new Maticsoft.BLL.sys_User();
         Maticsoft.Model.sys_User fillinguser_model = fillinguser_bll.GetModel(model.F_FillingUserID);
         F_FillingUserID2.Value = user_model.UserID + "";
         F_FillingUserID2_input.Value = user_model.U_CName;
     }
 }
Example #10
0
 /// <summary>
 /// �������
 /// </summary>
 private void BindData()
 {
     Maticsoft.Model.sys_Group sys_Group_model = sys_Group_bll.GetModel(U_GroupID);
     string orderby = OrderType == 0 ? Orderfld + " asc" : Orderfld + " desc";
     int startIndex = (this.AspNetPager1.CurrentPageIndex - 1) * this.AspNetPager1.PageSize + 1;
     int endIndex = this.AspNetPager1.CurrentPageIndex * this.AspNetPager1.PageSize;
     Maticsoft.BLL.record_FamilyBaseInfo bll = new Maticsoft.BLL.record_FamilyBaseInfo();
     DataSet datas = bll.GetListByPage(SearchTerms, orderby, startIndex, endIndex);
     GridView1.DataSource = datas;
     GridView1.DataBind();
     this.AspNetPager1.RecordCount = bll.GetRecordCount(SearchTerms);
 }