private void Head_load() { Leica_Head head = new Leica_Head(); head.Query(_head_id); _kind = head.Kind; _h_operator = head.H_Operator; _insp_date = head.Insp_Dt; _result = head.Result; _insp_no = head.Insp_No; _product = head.Product; _program = head.Program; }
/// <summary> /// 簽核流程結束 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void FlowFeedback1_FlowStop(object sender, SmoothEnterprise.Flowwork.UI.WebControl.FlowStopEventArgs e) { string uName = "", eMail = ""; string mail_script = ""; string rowid = Request.QueryString["rowid"]; status s = 0; string url = Utility.LocalUrl + Request.RawUrl; string reslut = "", subject = ""; switch (e.ResultType) { case SmoothEnterprise.Flowwork.Control.ReviewResultType.Complete: //完成 //結束 s = status.Complete; mail_script = MABase.Flow.MailFormat.Complete(Title, uName, lab_NO.Text, url); reslut = "審核通過"; f.getCreateUser(rowid, ref uName, ref eMail); subject = string.Format("{0} No:{1}({2})", Title, lab_NO.Text, reslut); Utility.SendMail(eMail, "EIP(員工入口網站)", subject, mail_script); break; case SmoothEnterprise.Flowwork.Control.ReviewResultType.Terminate: //退回提案人 s = status.Back; f.getCreateUser(rowid, ref uName, ref eMail); mail_script = MABase.Flow.MailFormat.Terminate(Title, uName, lab_NO.Text, url); reslut = "退回"; f.getCreateUser(rowid, ref uName, ref eMail); subject = string.Format("{0} No:{1}({2})", Title, lab_NO.Text, reslut); Utility.SendMail(eMail, "EIP(員工入口網站)", subject, mail_script); break; case SmoothEnterprise.Flowwork.Control.ReviewResultType.Next: s = status.Send; mail_script = MABase.Flow.MailFormat.Approve(Title, uName, lab_NO.Text, url); reslut = "審核"; subject = string.Format("{0} No:{1}({2})", Title, lab_NO.Text, reslut); f.ToApproval(rowid, uName, subject, mail_script); break; } Leica_Head.Stata_Change(s, rowid); }
private void Save_Head() { EIPSysSha SysNum = new EIPSysSha(); Leica_Head Head = new Leica_Head(); Head.Create_User = CurrentUser.LogonID; Head.H_Operator = _h_operator; Head.Insp_Dt = _insp_date; Head.Insp_No = SysNum.GetNewSn("Q608", DateTime.Now.ToString("yyMM")); Head.Kind = _kind; Head.Product = ConvertToOption(_product); Head.Program = ConvertToOption(_program); Head.Result = _result; Head.ROWID = _head_id; Head.Status = Convert.ToInt16(status.Waite).ToString(); Head.Custmer = _custmer; Head.Insert(); }