Esempio n. 1
0
        private void BindRpt(string fmid)
        {
            Gov_ModelInfo byId = Gov_Model.Init().GetById(Convert.ToInt32(this.ViewState["fm"]));
            this.This_FolwName.Text = byId.Flow_Name;
            IList all = Gov_ModelStep.Init().GetAll("Flow_ModelID=" + this.ViewState["fm"], "order by id asc");
            List<TmpInfo> list = new List<TmpInfo>();
            list.Add(new TmpInfo
            {
                Tmp1 = "<strong>公文模型流程基本信息:</strong> &nbsp;&nbsp; " + byId.Flow_Name,
                Tmp2 = "flow",
                Tmp3 = "0"
            });
            for (int i = 0; i < all.Count; i++)
            {
                Gov_ModelStepInfo gov_ModelStepInfo = all[i] as Gov_ModelStepInfo;
                TmpInfo tmpInfo = new TmpInfo();
                int num = i + 1;
                tmpInfo.Tmp1 = string.Concat(new object[]
				{
					"<strong>第 ",
					num,
					" 步 : </strong> &nbsp;&nbsp; ",
					gov_ModelStepInfo.Step_Name
				});
                tmpInfo.Tmp2 = "step" + num;
                tmpInfo.Tmp3 = string.Concat(num);
                tmpInfo.Tmp4 = string.Concat(gov_ModelStepInfo.id);
                tmpInfo.Tmp5 = string.Concat(gov_ModelStepInfo.Step_Type);
                list.Add(tmpInfo);
            }
            this.rpt.DataSource = list;
            this.rpt.DataBind();
        }
Esempio n. 2
0
        public void Delete(int id)
        {
            Gov_ModelStepInfo gov_ModelStepInfo = new Gov_ModelStepInfo();

            gov_ModelStepInfo.id = id;
            this.control.DeleteEntity(gov_ModelStepInfo);
        }
Esempio n. 3
0
 private void ShowData(int step)
 {
     Gov_ModelInfo byId = Gov_Model.Init().GetById(Convert.ToInt32(this.ViewState["fm"]));
     if (step > 0)
     {
         this.ModelName.Visible = false;
         this.ModelStep.Visible = true;
         Gov_ModelStepInfo byId2 = Gov_ModelStep.Init().GetById(Convert.ToInt32(this.ViewState["step"]));
         this.Step_Name.Value = byId2.Step_Name;
         this.This_FolwName.Text = byId.Flow_Name;
         this.userlist.Value = byId2.UserList;
         this.namelist.Value = byId2.NameList;
         this.userlist_dep.Value = byId2.UserList_dep;
         this.namelist_dep.Value = byId2.NameList_dep;
         this.IsUserEdit.Checked = Convert.ToBoolean(byId2.IsUserEdit);
         this.IsUserFile.Checked = Convert.ToBoolean(byId2.IsUserFile);
         this.RightToFinish.Checked = Convert.ToBoolean(byId2.RightToFinish);
         this.MailAlert.Checked = Convert.ToBoolean(byId2.MailAlert);
         this.StepRemark.Value = byId2.Step_Remark;
     }
     else
     {
         this.ModelName.Visible = true;
         this.ModelStep.Visible = false;
         this.Flow_Name.Value = byId.Flow_Name;
         this.ModelFileList.SelectedValue = byId.ModelFileID;
         this.FlowRemark.Value = byId.Remark;
         this.userlist_deps.Value = byId.ShareDeps;
         this.namelist_deps.Value = byId.namelist;
         this.Model_Type.SelectedValue = string.Concat(byId.ComID);
     }
     this.ViewState["isadd"] = 1;
 }
Esempio n. 4
0
 private void SaveSetpFlow()
 {
     int num = Convert.ToInt32(this.ViewState["isadd"]);
     int step_Orders = Convert.ToInt32(this.ViewState["current count"]);
     if (num == 0)
     {
         Gov_ModelStepInfo gov_ModelStepInfo = new Gov_ModelStepInfo();
         gov_ModelStepInfo.Flow_ModelID = Convert.ToInt32(this.ViewState["fm"]);
         gov_ModelStepInfo.Step_Remark = this.StepRemark.Value;
         gov_ModelStepInfo.Step_Name = this.Step_Name.Value;
         gov_ModelStepInfo.Step_Type = Convert.ToInt32(base.Request.Form["step_type"]);
         gov_ModelStepInfo.UserList = this.userlist.Value;
         gov_ModelStepInfo.NameList = this.namelist.Value;
         gov_ModelStepInfo.NameList_dep = this.namelist_dep.Value;
         gov_ModelStepInfo.UserList_dep = this.userlist_dep.Value;
         gov_ModelStepInfo.IsUserEdit = Convert.ToInt32(this.IsUserEdit.Checked);
         gov_ModelStepInfo.IsUserFile = Convert.ToInt32(this.IsUserFile.Checked);
         gov_ModelStepInfo.MailAlert = Convert.ToInt32(this.MailAlert.Checked);
         gov_ModelStepInfo.RightToFinish = Convert.ToInt32(this.RightToFinish.Checked);
         gov_ModelStepInfo.Step_Orders = step_Orders;
         Gov_ModelStep.Init().Add(gov_ModelStepInfo);
     }
     else
     {
         Gov_ModelStepInfo gov_ModelStepInfo = Gov_ModelStep.Init().GetById(Convert.ToInt32(this.ViewState["step"]));
         gov_ModelStepInfo.Step_Remark = this.StepRemark.Value;
         gov_ModelStepInfo.Step_Name = this.Step_Name.Value;
         gov_ModelStepInfo.Step_Type = Convert.ToInt32(base.Request.Form["step_type"]);
         gov_ModelStepInfo.UserList = this.userlist.Value;
         gov_ModelStepInfo.NameList = this.namelist.Value;
         gov_ModelStepInfo.NameList_dep = this.namelist_dep.Value;
         gov_ModelStepInfo.UserList_dep = this.userlist_dep.Value;
         gov_ModelStepInfo.IsUserEdit = Convert.ToInt32(this.IsUserEdit.Checked);
         gov_ModelStepInfo.IsUserFile = Convert.ToInt32(this.IsUserFile.Checked);
         gov_ModelStepInfo.MailAlert = Convert.ToInt32(this.MailAlert.Checked);
         gov_ModelStepInfo.RightToFinish = Convert.ToInt32(this.RightToFinish.Checked);
         gov_ModelStepInfo.Step_Orders = step_Orders;
         Gov_ModelStep.Init().Update(gov_ModelStepInfo);
     }
 }
Esempio n. 5
0
 public void Update(Gov_ModelStepInfo Gov_ModelStep_)
 {
     this.control.UpdateEntity(Gov_ModelStep_, Gov_ModelStep_.id);
 }
Esempio n. 6
0
 public void Add(Gov_ModelStepInfo Gov_ModelStep_)
 {
     this.control.AddEntity(Gov_ModelStep_);
 }
Esempio n. 7
0
 public void Update(Gov_ModelStepInfo com)
 {
     Gov_ModelStep.dal.Update(com);
 }
Esempio n. 8
0
 public void Add(Gov_ModelStepInfo com)
 {
     Gov_ModelStep.dal.Add(com);
 }