protected void Btn_Fail_Click(object sender, EventArgs e) { _cStatus = status.Fial; head.UpdataStatus(Request.QueryString["rowid"], status.Fial); Response.Write("<script>alert('已經作廢完畢');</script>"); this.GoBack(); }
protected void Btn_Stop_Click(object sender, SmoothEnterprise.Flowwork.UI.WebControl.FlowButtonEventArgs e) { string guid = Request.QueryString["rowid"].ToString(); _cStatus = status.Stop; head.UpdataStatus(guid, status.Stop); setDisplay(); //發通知給目前審核者,說已經中止了 string rowid = Request.QueryString["rowid"]; head.GetInfo(rowid); SendMail(rowid, _leader, lab_Ra_NO.Text, head.send_dt, "中止"); DBTransfer fs = new DBTransfer(); if (!string.IsNullOrEmpty(guid)) { fs.RunIUSql("delete dgflowqueue where requesturl like '%" + guid + "%'"); } }
protected void Btn_SendRequest_Click(object sender, SmoothEnterprise.Flowwork.UI.WebControl.FlowButtonEventArgs e) { string rowid = Request.QueryString["rowid"]; IPQC_Ra_Head db = new IPQC_Ra_Head(); if (this.IsValid) { try { this.Btn_SendRequest.Flow = this.FlowClient1; _cStatus = status.Send; db.UpdataStatus(rowid, status.Send); setDisplay(); // lab_InspectNO.Text = AddONumber(Request.QueryString["rowid"]); // Response.Write("<script>alert('執行送審');</script>"); //執行送審程序 ArrayList managerid = new ArrayList(); //主管id ArrayList managernm = new ArrayList(); //主管 Text managerid.Add(_leader); managernm.Add("確認"); int count = 0; foreach (string i in managerid) { this.FlowClient1.AddParameter("USER" + count.ToString(), i); count++; } count = 0; foreach (string i in managernm) { this.FlowClient1.AddParameter("USERTITLE" + count.ToString(), i); count++; } sharflow12_2.Flowwork.sharflow12_21 flow = new sharflow12_2.Flowwork.sharflow12_21(); FlowClient1.Text = "IPQC Ra檢驗單 單號:" + lab_Ra_NO.Text; switch (managerid.Count) //依舊arraylist裡面有幾個,來判斷走那條flow { case 1: e.NextNode = flow.sharflow12_2Node1; break; case 2: e.NextNode = flow.sharflow12_2Node1; break; case 3: e.NextNode = flow.sharflow12_2Node1; break; case 4: e.NextNode = flow.sharflow12_2Node1; break; case 5: e.NextNode = flow.sharflow12_2Node1; break; case 6: e.NextNode = flow.sharflow12_2Node1; break; case 7: e.NextNode = flow.sharflow12_2Node1; break; case 8: e.NextNode = flow.sharflow12_2Node1; break; case 9: e.NextNode = flow.sharflow12_2Node1; break; case 10: e.NextNode = flow.sharflow12_2Node1; break; case 11: e.NextNode = flow.sharflow12_2Node1; break; case 12: e.NextNode = flow.sharflow12_2Node1; break; case 13: e.NextNode = flow.sharflow12_2Node1; break; case 14: e.NextNode = flow.sharflow12_2Node1; break; case 15: e.NextNode = flow.sharflow12_2Node1; break; } e.NextNode.ReviewerURL = "/IPQC_Ra/IPQC_RaView.aspx"; FirstApprove(managerid[0].ToString()); } catch (Exception ex) { this.AddError(this, "BUTTON_save_Click()", "", ex.Message); } } }