private void tex_remark_Click(object sender, EventArgs e) { HCSWF_parameters_info HCSWF_parameters_info01 = new HCSWF_parameters_info(); HCSWF_parameters_info01.ShowDialog(); tex_remark.Text = HCSWF_parameters_info01.Info_Data; }
private string setbarcode(string indata) { string str_bcx = indata.Substring(0, 5); if (str_bcx == "BCXP9") { string str_value = indata.Substring(12, 1); DataRow[] arrayDR = DtmanualData.Select("manual_id=" + str_value); string str_nextcode = arrayDR[0]["next_code"].ToString(); string str_info = arrayDR[0]["if_needinfo"].ToString(); string str_type = arrayDR[0]["manual_type"].ToString(); #region 查询手动处理代码、类型、是否强制信息 if (str_info == "1" && tex_remark.Text.Trim().Length == 0) { #region 手动处理:需要强制备注信息 HCSWF_parameters_info HCSWF_parameters_info01 = new HCSWF_parameters_info(); HCSWF_parameters_info01.ShowDialog(); tex_remark.Text = HCSWF_parameters_info01.Info_Data; #endregion } #region 手动处理:将包调度到指定流程 //rexxie等待开发接口、和实现算法(完成,未测试) SortedList in_barcode = new SortedList(); in_barcode.Add(Set_Code, Set_Code.Substring(0, 3)); SortedList SL_Submit = new SortedList(); SL_Submit.Add("bar_code", Set_Code); SL_Submit.Add("current_code", PD_Code); SL_Submit.Add("next_code", str_nextcode); SL_Submit.Add("user_id", CnasBaseData.UserID); SL_Submit.Add("manual_type", str_type); SL_Submit.Add("manual_info", tex_remark.Text); SortedList sl_rec = CnasHCSWorkflowInterface01.SubmitProcedureManual(1001, in_barcode, SL_Submit, null); if (sl_rec["rec_result"].ToString() == "0") { return("0"); } else { string strrec01 = ""; if (sl_rec["rec_data01"] != null) { strrec01 = strrec01 + sl_rec["rec_data01"].ToString(); } if (sl_rec["rec_data02"] != null) { strrec01 = strrec01 + sl_rec["rec_data02"].ToString(); } return(strrec01); } #endregion #endregion } else { return("提交指令非法,请仔细检查!"); } }