Пример #1
0
        protected void FlowFeedback1_FeedbackComplete(object sender, SmoothEnterprise.Flowwork.UI.WebControl.FeedbackCompleteEventArgs e)
        {
            try
            {
                SmoothEnterprise.Web.UI.HTMLControl.InputText it;
                object obj = this.FlowFeedback1.ReplyView.FindControl("Input_Comment");
                it = (SmoothEnterprise.Web.UI.HTMLControl.InputText)obj;
                e["Flow_Comment"] = it.Text;
                //電子簽章呈現---------------------------------------------------------------------
                SmoothEnterprise.Web.UI.HTMLControl.InputText it3;
                object obj3 = this.FlowFeedback1.ReplyView.FindControl("InputText3");
                it3             = (SmoothEnterprise.Web.UI.HTMLControl.InputText)obj3;
                it3.Text        = this.CurrentUser.LogonID;
                e["InputText3"] = it3.Text;

                //多角目的廠業務維護方案/原因/夾附件-----------------------------
                bool un = checkuser();

                if (un == true)
                {
                    SaveMake_no();
                }

                //---------------------------------------------------------------

                this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(),
                                                                 "RedirectAfterCommit",
                                                                 "<script language=\"javascript\">window.location='/Flowwork/MyApproval.aspx';</script>");
            }
            catch { }
        }
Пример #2
0
        protected void FlowFeedback1_FeedbackComplete(object sender, SmoothEnterprise.Flowwork.UI.WebControl.FeedbackCompleteEventArgs e)
        {
            SmoothEnterprise.Web.UI.HTMLControl.InputText it;
            object obj = this.FlowFeedback1.ReplyView.FindControl("Input_Comment");

            it = (SmoothEnterprise.Web.UI.HTMLControl.InputText)obj;
            e["Flow_Comment"] = it.Text;


            SmoothEnterprise.Web.UI.HTMLControl.InputText it3;
            object obj3 = this.FlowFeedback1.ReplyView.FindControl("InputText3");

            it3             = (SmoothEnterprise.Web.UI.HTMLControl.InputText)obj3;
            it3.Text        = this.CurrentUser.LogonID;
            e["InputText3"] = it3.Text;

            //寫入是否為代理人
            SmoothEnterprise.Web.UI.HTMLControl.InputText it4;
            object obj4 = this.FlowFeedback1.ReplyView.FindControl("IniReviewer");

            it4 = (SmoothEnterprise.Web.UI.HTMLControl.InputText)obj4;
            e["IniReviewer"] = "代";


            SmoothEnterprise.Database.DataSet ds = new SmoothEnterprise.Database.DataSet(SmoothEnterprise.Database.DataSetType.OpenRead);
            ds.Open(" select revieweruid,text  from  dgflowqueue   where requesturl= '" + Request.RawUrl.ToString().ToLower().Replace("view", "edit") + "'" +
                    // "  and revieweruid='" + this.CurrentUser.ID.Substring(1, 36) +
                    " and  initdate=(select MAX(initdate)   from  dgflowqueue    where requesturl= '" +
                    Request.RawUrl.ToString().ToLower().Replace("view", "edit") + "')");


            if (!ds.EOF)
            {
                e["IniReviewer"] = "";
            }
            ds.Close();

            if ((this.FlowFeedback1.ResultType.ToString() == "Return") ||
                (this.FlowFeedback1.ResultType.ToString() == "Back"))
            {
                e.NodeComplete = true;
            }

            //-------------------------------------

            string BossApprover = ((SmoothEnterprise.Security.UI.WebControl.PopupUser) this.FlowFeedback1.ReplyView.FindControl("PopupUser1")).Text;

            if (BossApprover.Length >= 20)
            {
                e.Reviewers.Add(new Guid(BossApprover), "加簽主管");
            }



            //this.FlowFeedback1.ResultType.ToString() == "Next"
            this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(),
                                                             "RedirectAfterCommit",
                                                             "<script language=\"javascript\">window.location='/Flowwork/MyApproval.aspx';</script>");
        }
Пример #3
0
        protected void FlowFeedback1_FeedbackComplete(object sender, SmoothEnterprise.Flowwork.UI.WebControl.FeedbackCompleteEventArgs e)
        {
            SmoothEnterprise.Web.UI.HTMLControl.InputText it;
            object obj = this.FlowFeedback1.ReplyView.FindControl("Input_Comment");

            it = (SmoothEnterprise.Web.UI.HTMLControl.InputText)obj;
            e["Flow_Comment"] = it.Text;


            SmoothEnterprise.Web.UI.HTMLControl.InputText it3;
            object obj3 = this.FlowFeedback1.ReplyView.FindControl("InputText3");

            it3             = (SmoothEnterprise.Web.UI.HTMLControl.InputText)obj3;
            it3.Text        = this.CurrentUser.LogonID;
            e["InputText3"] = it3.Text;

            //寫入是否為代理人
            SmoothEnterprise.Web.UI.HTMLControl.InputText it4;
            object obj4 = this.FlowFeedback1.ReplyView.FindControl("IniReviewer");

            it4 = (SmoothEnterprise.Web.UI.HTMLControl.InputText)obj4;
            e["IniReviewer"] = "代";

            //會計審核作業是第二條,故不能使用 Request.RawUrl.ToString().ToLower()
            SmoothEnterprise.Database.DataSet ds = new SmoothEnterprise.Database.DataSet(SmoothEnterprise.Database.DataSetType.OpenRead);
            ds.Open(" select revieweruid,text  from  dgflowqueue   where requesturl like '%" + Request.QueryString[0] + "%'" +
                    // "and  initdate=(select MAX(initdate)   from  dgflowqueue    where requesturl= '" +
                    // "/erp_cbgi014/cbgi014edit.aspx')");
                    " and  initdate=(select MAX(initdate)   from  dgflowqueue    where requesturl= '" +
                    Request.RawUrl.ToString().ToLower().Replace("_accview", "edit") + "')");

            if (!ds.EOF)
            {
                e["IniReviewer"] = "";
            }
            ds.Close();

            if ((this.FlowFeedback1.ResultType.ToString() == "Return") ||
                (this.FlowFeedback1.ResultType.ToString() == "Back"))
            {
                e.NodeComplete = true;
            }

            //-------------------------------------



            //this.FlowFeedback1.ResultType.ToString() == "Next"
            this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(),
                                                             "RedirectAfterCommit",
                                                             "<script language=\"javascript\">window.location='/Flowwork/MyApproval.aspx';</script>");
        }
Пример #4
0
        //protected void getPosition(string lab_id)
        //{
        //    using (SmoothEnterprise.Database.DataSet rs = new SmoothEnterprise.Database.DataSet(SmoothEnterprise.Database.DataSetType.OpenRead))
        //    {
        //        string sql = string.Format("select * from eipe.dbo.ipqc_Ra_lab_position where lab_id='{0}' order by seq ", lab_id);
        //        rs.Open(sql);

        //        while (!rs.EOF)
        //        {
        //            string rowid = rs["rowid"].ToString();
        //            string file_name = rs["file_name"].ToString();
        //            string expect_date = rs["expect_date"].ToString();
        //            string complate_date = rs["complate_date"].ToString();
        //            string rart = rs["rart"].ToString();
        //            string average = rs["average"].ToString();
        //            string attach = Convert.ToBase64String((byte[])rs["file_attach"]);  //加密成64位元字串

        //            _pos.Add(lab_id, rowid, file_name, attach, expect_date, complate_date, rart, average, "s");
        //            getTsList(rowid);
        //            rs.MoveNext();
        //        }

        //        GridView gv = new GridView();
        //        DataView view = new DataView(_pos.Container);

        //        gv_Lab.DataSource = view;
        //        gv_Lab.DataBind();
        //    }
        //}

        //顯示簽核流程
        protected void FlowFeedback1_FeedbackComplete(object sender, SmoothEnterprise.Flowwork.UI.WebControl.FeedbackCompleteEventArgs e)
        {
            try
            {
                //writetofile("FlowFeedback1_FeedbackComplete");
                _NotifyReview = true;

                this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "RedirectAfterCommit", "<script language=\"javascript\">window.location='/Flowwork/MyApproval.aspx';</script>");

                SmoothEnterprise.Web.UI.HTMLControl.InputText it;
                object obj = this.FlowFeedback1.ReplyView.FindControl("ResTxt");
                it = (SmoothEnterprise.Web.UI.HTMLControl.InputText)obj;
                e["Flow_Comment"] = it.Text;
                //電子簽章呈現---------------------------------------------------------------------
                SmoothEnterprise.Web.UI.HTMLControl.InputText it3;
                object obj3 = this.FlowFeedback1.ReplyView.FindControl("Flow_loginID");
                it3               = (SmoothEnterprise.Web.UI.HTMLControl.InputText)obj3;
                it3.Text          = this.CurrentUser.LogonID;
                e["Flow_loginID"] = it3.Text;

                //寫入是否為代理人
                SmoothEnterprise.Web.UI.HTMLControl.InputText it4;
                object obj4 = this.FlowFeedback1.ReplyView.FindControl("IniReviewer");
                it4 = (SmoothEnterprise.Web.UI.HTMLControl.InputText)obj4;
                //e["IniReviewer"] = "代";
                e["IniReviewer"] = "代";


                SmoothEnterprise.Database.DataSet ds = new SmoothEnterprise.Database.DataSet(SmoothEnterprise.Database.DataSetType.OpenRead);
                ds.Open(" select revieweruid  from  dgflowqueue   where requesturl like '%" + Request.QueryString[0].ToString() + "%'" +
                        "  and revieweruid='" + this.CurrentUser.ID.Substring(1, 36) +
                        "' and  initdate=(select MAX(initdate)   from  dgflowqueue    where requesturl like '%" +
                        Request.QueryString[0].ToString() + "%')");
                if (!ds.EOF)
                {
                    e["IniReviewer"] = "";
                }
                ds.Close();
                e.NodeComplete = true;
            }
            catch (Exception ex)
            {
                this.AddError(this, "FlowFeedback1_FeedbackComplete()", "", "FlowFeedback1_FeedbackComplete<br/>" + ex.Message);
            }
        }
Пример #5
0
        protected void FlowFeedback1_FeedbackComplete(object sender, SmoothEnterprise.Flowwork.UI.WebControl.FeedbackCompleteEventArgs e)
        {
            try
            {
                SmoothEnterprise.Web.UI.HTMLControl.InputText it;
                object obj = this.FlowFeedback1.ReplyView.FindControl("Input_Comment");
                it = (SmoothEnterprise.Web.UI.HTMLControl.InputText)obj;
                e["Flow_Comment"] = it.Text;
                //電子簽章呈現---------------------------------------------------------------------
                SmoothEnterprise.Web.UI.HTMLControl.InputText it3;
                object obj3 = this.FlowFeedback1.ReplyView.FindControl("InputText3");
                it3             = (SmoothEnterprise.Web.UI.HTMLControl.InputText)obj3;
                it3.Text        = this.CurrentUser.LogonID;
                e["InputText3"] = it3.Text;

                //if (Request.QueryString[0].ToLower() == "bfea4cbf-5a5c-4e3e-a680-4d0e76f5748c")
                //{
                //    e.Reviewers.Add("D45938A7-3430-42EC-8BE6-0E1F391329E0", "第六關審核人");
                //}
            }
            catch { }
        }
Пример #6
0
 protected void FlowFeedback1_FeedbackComplete(object sender, SmoothEnterprise.Flowwork.UI.WebControl.FeedbackCompleteEventArgs e)
 {
     e.NodeComplete = true;
     this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "RedirectAfterCommit", "<script language=\"javascript\">window.location='/Flowwork/MyApproval.aspx';</script>");
 }
Пример #7
0
        //該節簽核完成
        protected void FlowFeedback1_FeedbackComplete(object sender, SmoothEnterprise.Flowwork.UI.WebControl.FeedbackCompleteEventArgs e)
        {
            string url = Request.Url.PathAndQuery;

            f.Feedback_FeedbackComplete(CurrentUser.LogonID, url, FlowFeedback1, e);
        }