Пример #1
0
        public virtual SmoothEnterprise.Flowwork.Control.FlowReviewerCollection SelectUser(System.Guid requestuid, object parameter, object arguments)
        {
            SmoothEnterprise.Flowwork.Control.FlowReviewerCollection rc = new SmoothEnterprise.Flowwork.Control.FlowReviewerCollection();
            // Put your code to generate custom reviewers
            // Example :
            // rc.Add(userid);
            // rc.Add(userid,text);
            //
            // Get parameter value(s)
            // Example :
            // object value = SmoothEnterprise.Flowwork.Control.FlowReviewer.GetParameter(parameter,key);
            string USERA     = "";
            string USERTITLE = "";

            System.Collections.Hashtable ht = parameter as System.Collections.Hashtable;
            if (ht != null)
            {
                USERA     = ht["USER2"].ToString();
                USERTITLE = ht["USERTITLE2"].ToString();
            }
            rc.Add(new System.Guid(USERA), USERTITLE);
            return(rc);
        }
Пример #2
0
        public virtual SmoothEnterprise.Flowwork.Control.FlowReviewerCollection select(System.Guid requestuid, object parameter, object arguments)
        {
            SmoothEnterprise.Flowwork.Control.FlowReviewerCollection rc = new SmoothEnterprise.Flowwork.Control.FlowReviewerCollection();

            //根據Flow Parameter中所設定的參數, 決定第三關審核人
            string CustomNode3Approver = "";

            System.Collections.Hashtable ht = parameter as System.Collections.Hashtable;

            object value = SmoothEnterprise.Flowwork.Control.FlowReviewer.GetParameter(parameter, "CustomNode3Approver");

            if (ht != null)
            {
                CustomNode3Approver = ht["CustomNode3Approver"].ToString();
                if (CustomNode3Approver != "")
                {
                    rc.Add(new System.Guid(CustomNode3Approver));
                }
            }


            return(rc);
        }
Пример #3
0
        public virtual SmoothEnterprise.Flowwork.Control.FlowReviewerCollection select(System.Guid requestuid, object parameter, object arguments)
        {
            SmoothEnterprise.Flowwork.Control.FlowReviewerCollection rc = new SmoothEnterprise.Flowwork.Control.FlowReviewerCollection();
            // Put your code to generate custom reviewers
            // Example :
            // rc.Add(userid);

            /* string USERA = "";
             * string USERTITLE = "";
             * System.Collections.Hashtable ht = parameter as System.Collections.Hashtable;
             * if (ht != null)
             * {
             *   USERA = ht["USER2_2"].ToString();
             *   USERTITLE = ht["USERTITLE2_2"].ToString();
             * }
             * rc.Add(new System.Guid(USERA), USERTITLE); */

            rc.Add(new System.Guid("69EBD7A2-F22D-4A25-8D84-C97C43D1B0C4"), "¤H¨Æ"); //¶ÀÄR±ö
            rc.Add(new System.Guid("569AE95D-877F-4880-838D-0D6D4BCF277E"), "¤H¨Æ"); //ªôÚ{¯ø
            rc.Add(new System.Guid("DC62DBEB-6268-4254-B8ED-191DD35587C6"), "¤H¨Æ"); //¤ý¥É¬Â
            rc.Add(new System.Guid("C0B9B4E4-312F-4282-9549-7651A830AD01"), "¤H¨Æ"); //´^¥É´f

            return(rc);
        }
Пример #4
0
        public virtual SmoothEnterprise.Flowwork.Control.FlowReviewerCollection CustomUser(System.Guid requestuid, object parameter, object arguments)
        {
            SmoothEnterprise.Flowwork.Control.FlowReviewerCollection rc = new SmoothEnterprise.Flowwork.Control.FlowReviewerCollection();
            // Put your code to generate custom reviewers
            // Example :
            // rc.Add(userid);
            // rc.Add(userid,text);
            //
            // Get parameter value(s)
            // Example :
            // object value = SmoothEnterprise.Flowwork.Control.FlowReviewer.GetParameter(parameter,key);

            /*
             * string USERA = "";
             * System.Collections.Hashtable ht = parameter as System.Collections.Hashtable;
             * if (ht != null)
             * {
             *  USERA = ht["USER1"].ToString();
             * }
             * rc.Add(new System.Guid(USERA));
             *
             *
             *
             * string sq4 = "insert into  misbuffer2(caption)values('" + USERA + "第1個節點')";
             * RunIUSql2(sq4);
             */

            SmoothEnterprise.Database.DataSet ds = new SmoothEnterprise.Database.DataSet();
            ds.Open("SELECT id FROM dguser WHERE  logonid = 'smooth'");
            while (!ds.EOF)
            {
                rc.Add(new System.Guid(ds["id"].ToString()));
                ds.MoveNext();
            }
            return(rc);
        }