Example #1
0
        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            T_FileList_BLL         fileListBLL = new T_FileList_BLL();
            T_WorkFlowDoResult_BLL doResultBLL = new T_WorkFlowDoResult_BLL();

            string[] FileListIDS     = DNTRequest.GetQueryString("FileListIDS").Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
            string[] MustSubmitFlags = DNTRequest.GetQueryString("mustSubmitFlags").Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);

            for (var i = 0; i < FileListIDS.Length; i++)
            {
                T_FileList_MDL fileListMDL = fileListBLL.GetModel(ConvertEx.ToInt(FileListIDS[i]));
                if (fileListMDL != null && !fileListMDL.IsFolder)
                {
                    T_WorkFlowDoResult_MDL doResultMDL = new T_WorkFlowDoResult_MDL();
                    doResultMDL.FileListID      = ConvertEx.ToInt(FileListIDS[i]);
                    doResultMDL.SingleProjectID = DNTRequest.GetQueryInt("SingleProjectID", 0);
                    doResultMDL.WorkFlowID      = DNTRequest.GetQueryInt("workFlowID", 0);
                    doResultMDL.DoUserID        = Common.ConvertEx.ToInt(Common.Session.GetSessionInt("UserID"));
                    doResultMDL.DoDateTime      = System.DateTime.Now;
                    doResultMDL.DoResult        = ddlDoResult.SelectedValue;
                    doResultMDL.DoRemark        = DoRemark.Text.Trim();
                    doResultBLL.Add(doResultMDL);

                    fileListMDL.Remark         = DoRemark.Text.Trim();
                    fileListMDL.MustSubmitFlag = ConvertEx.ToBool(MustSubmitFlags[i]);
                    fileListBLL.Update(fileListMDL);

                    FileAccept(FileListIDS[i], ConvertEx.ToBool(ddlDoResult.SelectedValue));
                }
            }
            Common.MessageBox.CloseLayerOpenWeb(this.Page);
        }
Example #2
0
        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            T_WorkFlowDoResult_BLL doResultBLL = new T_WorkFlowDoResult_BLL();

            string[] ArchiveIDS = DNTRequest.GetQueryString("ArchiveIDS").Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);

            foreach (string ArchiveID in ArchiveIDS)
            {
                T_WorkFlowDoResult_MDL doResultMDL = new T_WorkFlowDoResult_MDL();
                doResultMDL.ArchiveID       = ConvertEx.ToInt(ArchiveID);
                doResultMDL.SingleProjectID = DNTRequest.GetQueryInt("SingleProjectID", 0);
                doResultMDL.WorkFlowID      = DNTRequest.GetQueryInt("workFlowID", 0);
                doResultMDL.DoUserID        = Common.ConvertEx.ToInt(Common.Session.GetSessionInt("UserID"));
                doResultMDL.DoDateTime      = System.DateTime.Now;
                doResultMDL.DoResult        = ddlDoResult.SelectedValue;
                doResultMDL.DoRemark        = DoRemark.Text.Trim();
                doResultBLL.Add(doResultMDL);
            }
            Common.MessageBox.CloseLayerOpenWeb(this.Page);
        }