| | |
| | | try |
| | | { |
| | | list.Clear(); |
| | | mes = SeachEncode.EncodingSeach("2040"); //生成单号 |
| | | mes = SeachEncode.EncodingSeach("1027"); //PC端设备点检记录生成单号 |
| | | if (mes.code == "300") |
| | | { |
| | | return mes; |
| | |
| | | } |
| | | }); ; |
| | | } |
| | | //回写字典表,更新当前流水号 |
| | | sql = @"update T_CodeRules set value=@cunm2 where rightcode=@RightCode"; |
| | | list.Add(new { str = sql, parm = new { cunm2 = numvalue, RightCode = "1027" } }); |
| | | |
| | | bool aa = DapperHelper.DoTransaction(list); |
| | | if (aa) |
| | |
| | | try |
| | | { |
| | | list.Clear(); |
| | | mes = SeachEncode.EncodingSeach("2041"); //生成单号 |
| | | mes = SeachEncode.EncodingSeach("1028"); //PC端保养记录生成单号 |
| | | if (mes.code == "300") |
| | | { |
| | | return mes; |
| | |
| | | } |
| | | }); ; |
| | | } |
| | | //回写字典表,更新当前流水号 |
| | | sql = @"update T_CodeRules set value=@cunm2 where rightcode=@RightCode"; |
| | | list.Add(new { str = sql, parm = new { cunm2 = numvalue, RightCode = "1028" } }); |
| | | |
| | | bool aa = DapperHelper.DoTransaction(list); |
| | | if (aa) |
| | | { |
| | |
| | | try |
| | | { |
| | | list.Clear(); |
| | | mes = SeachEncode.EncodingSeach("2042"); //生成单号 |
| | | mes = SeachEncode.EncodingSeach("1019"); //PC端维修申请记录生成单号 |
| | | if (mes.code == "300") |
| | | { |
| | | mes.Message = "生成单号失败,请设置编码为【2042】的编码规则"; |
| | | return mes; |
| | | } |
| | | else |
| | |
| | | source = faultsourcecode |
| | | } |
| | | }); |
| | | //回写字典表,更新当前流水号 |
| | | sql = @"update T_CodeRules set value=@cunm2 where rightcode=@RightCode"; |
| | | list.Add(new { str = sql, parm = new { cunm2 = numvalue, RightCode = "2042" } }); |
| | | |
| | | bool aa = DapperHelper.DoTransaction(list); |
| | | if (aa) |
| | |
| | | try |
| | | { |
| | | list.Clear(); |
| | | mes = SeachEncode.EncodingSeach("2043"); //生成单号 |
| | | mes = SeachEncode.EncodingSeach("1029"); //PC设备维修记录生成单号 |
| | | if (mes.code == "300") |
| | | { |
| | | mes.Message = "生成单号失败,请设置编码为【2043】的编码规则"; |
| | | return mes; |
| | | } |
| | | else |
| | |
| | | //更新维修申请单状态 |
| | | sql = @"update TEqp_RepairRequest set status=@status where docu_code=@docu_code and wksp_code=@wkshpcode and eqp_code=@eqpcode"; |
| | | list.Add(new { str = sql, parm = new { docu_code = docu_code, wkshpcode = wkshpcode, eqpcode = eqpcode, status = "COMP" } }); |
| | | |
| | | //回写字典表,更新当前流水号 |
| | | sql = @"update T_CodeRules set value=@cunm2 where rightcode=@RightCode"; |
| | | list.Add(new { str = sql, parm = new { cunm2 = numvalue, RightCode = "2043" } }); |
| | | |
| | | bool aa = DapperHelper.DoTransaction(list); |
| | | if (aa) |