| | |
| | | /// <returns></returns> |
| | | [Route(template: "MesOrderStepVerifySearch")] |
| | | [HttpGet] |
| | | public HttpResponseMessage MesOrderStepVerifySearch(string verify, string wo_code=null,string partnumber=null,string partname=null,string partspec=null,string reportuser=null,string reportdate=null, int page = 0, int rows = 0, string prop = null, string order = null) |
| | | public HttpResponseMessage MesOrderStepVerifySearch(string verify=null, string wo_code=null,string partnumber=null,string partname=null,string partspec=null,string reportuser=null,string reportdate=null, int page = 0, int rows = 0, string prop = null, string order = null) |
| | | { |
| | | string reportdateopendate = ""; //收料开始时间 |
| | | string reportdateclosedate = ""; //收料结束时间 |
| | |
| | | { |
| | | if (verify != "" && verify != null) |
| | | { |
| | | search += "and B.verify=@verify "; |
| | | search += "and AA.verify=@verify "; |
| | | dynamicParams.Add("@verify", verify); |
| | | } |
| | | if (wo_code != "" && wo_code != null) |
| | |
| | | var sql = @"select * from( |
| | | select A.id,B.id as sbid,A.wo_code,A.materiel_code as partnumber,P.partname,P.partspec,A.task_qty,M.wkshp_code,G.org_name as wkshp_name,A.eqp_code,E.name as eqp_name, |
| | | M.route_code,R.name as route_name,A.step_code,S.stepname,S.flwtype,D.first_choke,D.last_choke,T.unprice,B.usergroup_code,O.group_name as usergroup_name,B.report_person as usercode,U.username, |
| | | B.report_date,B.report_qty,B.ng_qty,B.bad_qty,B.verify |
| | | B.report_date,B.report_qty,B.ng_qty,B.bad_qty,B.verify,B.bad_money |
| | | from TK_Wrk_Record A |
| | | inner join TK_Wrk_RecordSub B on A.id=B.m_id |
| | | left join TK_Wrk_Man M on A.wo_code=M.wo_code |
| | |
| | | ///////////////////////////////修改报工////////////////////////////// |
| | | |
| | | //回写对应的报工记录子表合格数量、不良数量、报废数量 |
| | | sql = @"update TK_Wrk_RecordSub set report_qty=report_qty+@repair_qty,ng_qty=ng_qty+@ng_qty,bad_qty=bad_qty+@bad_qty, |
| | | sql = @"update TK_Wrk_RecordSub set report_qty=report_qty+@repair_qty,ng_qty=ng_qty+@ng_qty,bad_qty=bad_qty+@bad_qty,bad_money=bad_money+@bad_money, |
| | | updatereportuser=@updatereportuser,updatereportdate=@updatereportdate |
| | | where m_id=@m_id and id=@id and style='B'"; |
| | | list.Add(new |
| | |
| | | { |
| | | m_id = int.Parse(json[i].id), |
| | | id = int.Parse(json[i].sbid), |
| | | repair_qty = decimal.Parse(json[i].report_qty), |
| | | ng_qty = decimal.Parse(json[i].ng_qty), |
| | | bad_qty = decimal.Parse(json[i].bad_qty), |
| | | repair_qty = decimal.Parse(json[i].report_dvalue), |
| | | ng_qty = decimal.Parse(json[i].ng_dvalue), |
| | | bad_qty = decimal.Parse(json[i].bad_dvalue), |
| | | bad_money = decimal.Parse(json[i].badmoney_dvalue), |
| | | updatereportuser = username, |
| | | updatereportdate = date |
| | | } |
| | |
| | | str = sql, |
| | | parm = new |
| | | { |
| | | good_qty = decimal.Parse(json[i].report_qty), |
| | | ng_qty = decimal.Parse(json[i].ng_qty), |
| | | bad_qty = decimal.Parse(json[i].bad_qty), |
| | | good_qty = decimal.Parse(json[i].report_dvalue), |
| | | ng_qty = decimal.Parse(json[i].ng_dvalue), |
| | | bad_qty = decimal.Parse(json[i].bad_dvalue), |
| | | wo_code = json[i].wo_code, |
| | | step_code = json[i].step_code, |
| | | id = int.Parse(json[i].id) |
| | |
| | | str = sql, |
| | | parm = new |
| | | { |
| | | ng_qty = decimal.Parse(json[i].ng_qty), |
| | | ng_qty = decimal.Parse(json[i].ng_dvalue), |
| | | wo_code = json[i].wo_code, |
| | | step_code = json[i].step_code, |
| | | id = int.Parse(json[i].id), |
| | |
| | | }); |
| | | //写入报工记录审核表 |
| | | sql = @"insert into TK_WorkRecord_Verify(report_id,report_sbid,wo_code,partnumber,task_qty,wkshp_code,eqp_code,route_code, |
| | | step_seq,step_code,flw_type,first_choke,last_choke,unprice,usergroup_code,usercode,report_date,report_qty,report_dvalue,ng_qty,ng_dvalue,bad_qty,bad_dvalue,bad_money) |
| | | step_seq,step_code,flw_type,first_choke,last_choke,unprice,usergroup_code,usercode,report_date,report_qty,report_dvalue,ng_qty,ng_dvalue,bad_qty,bad_dvalue,bad_money,badmoney_dvalue) |
| | | values(@report_id,@report_sbid,@wo_code,@partnumber,@task_qty,@wkshp_code,@eqp_code,@route_code, |
| | | @step_seq,@step_code,@flw_type,@first_choke,@last_choke,@unprice,@usergroup_code,@usercode,@report_date,@report_qty,@report_dvalue,@ng_qty,@ng_dvalue,@bad_qty,@bad_dvalue,@bad_money)"; |
| | | @step_seq,@step_code,@flw_type,@first_choke,@last_choke,@unprice,@usergroup_code,@usercode,@report_date,@report_qty,@report_dvalue,@ng_qty,@ng_dvalue,@bad_qty,@bad_dvalue,@bad_money,@badmoney_dvalue)"; |
| | | list.Add(new |
| | | { |
| | | str = sql, |
| | |
| | | ng_dvalue=json[i].ng_dvalue.ToString(), |
| | | bad_qty=json[i].bad_qty.ToString(), |
| | | bad_dvalue=json[i].bad_dvalue.ToString(), |
| | | bad_money=json[i].bad_money.ToString() |
| | | bad_money=json[i].bad_money.ToString(), |
| | | badmoney_dvalue= json[i].badmoney_dvalue.ToString() |
| | | } |
| | | }); |
| | | } |
| | |
| | | public string bad_qty { get; set; } //报废数量 |
| | | public string bad_dvalue { get; set; } //报废数量差值 |
| | | public string bad_money { get; set; } //报废金额 |
| | | public string badmoney_dvalue { get; set; } //报废差值 |
| | | } |
| | | } |
| | |
| | | <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup> |
| | | <_PublishTargetUrl>D:\网站发布\MES灵翔</_PublishTargetUrl> |
| | | <History>True|2022-11-18T05:25:30.9305617Z;True|2022-11-17T10:13:35.2543186+08:00;True|2022-11-16T11:50:20.8332089+08:00;True|2022-11-16T10:30:15.8662476+08:00;True|2022-11-16T09:54:50.9630719+08:00;True|2022-11-11T13:23:20.3484151+08:00;True|2022-11-09T13:07:34.9422662+08:00;True|2022-11-09T10:59:58.4912849+08:00;True|2022-11-09T10:11:04.4851324+08:00;True|2022-11-09T10:10:46.8698985+08:00;</History> |
| | | <History>True|2022-11-18T07:18:55.9443587Z;True|2022-11-18T15:18:44.4492390+08:00;True|2022-11-18T13:29:22.9601475+08:00;True|2022-11-18T13:29:05.4108151+08:00;True|2022-11-18T13:25:30.9305617+08:00;True|2022-11-17T10:13:35.2543186+08:00;True|2022-11-16T11:50:20.8332089+08:00;True|2022-11-16T10:30:15.8662476+08:00;True|2022-11-16T09:54:50.9630719+08:00;True|2022-11-11T13:23:20.3484151+08:00;True|2022-11-09T13:07:34.9422662+08:00;True|2022-11-09T10:59:58.4912849+08:00;True|2022-11-09T10:11:04.4851324+08:00;True|2022-11-09T10:10:46.8698985+08:00;</History> |
| | | </PropertyGroup> |
| | | <ItemGroup> |
| | | <File Include="Areas/HelpPage/HelpPage.css"> |
| | |
| | | <publishTime>12/24/2021 15:38:29</publishTime> |
| | | </File> |
| | | <File Include="bin/VueWebApi.dll"> |
| | | <publishTime>11/18/2022 13:25:23</publishTime> |
| | | <publishTime>11/18/2022 15:18:38</publishTime> |
| | | </File> |
| | | <File Include="bin/VueWebApi.pdb"> |
| | | <publishTime>11/18/2022 13:25:23</publishTime> |
| | | <publishTime>11/18/2022 15:18:38</publishTime> |
| | | </File> |
| | | <File Include="bin/VueWebApi.xml"> |
| | | <publishTime>11/18/2022 13:25:23</publishTime> |
| | | <publishTime>11/18/2022 15:18:38</publishTime> |
| | | </File> |
| | | <File Include="bin/WebActivatorEx.dll"> |
| | | <publishTime>02/08/2013 16:42:28</publishTime> |
| | |
| | | <publishTime>06/16/2022 13:39:23</publishTime> |
| | | </File> |
| | | <File Include="Web.config"> |
| | | <publishTime>11/18/2022 13:25:30</publishTime> |
| | | <publishTime>11/18/2022 15:18:43</publishTime> |
| | | </File> |
| | | </ItemGroup> |
| | | </Project> |
| | |
| | | D:\新凯迪MES\MES项目\MES灵翔\VueWebApi\VueWebApi\bin\zh-Hans\System.Web.WebPages.resources.dll |
| | | D:\新凯迪MES\MES项目\MES灵翔\VueWebApi\VueWebApi\bin\zh-Hans\System.Web.WebPages.Deployment.resources.dll |
| | | D:\新凯迪MES\MES项目\MES灵翔\VueWebApi\VueWebApi\bin\zh-Hans\System.Web.WebPages.Razor.resources.dll |
| | | D:\新凯迪MES\MES项目\MES灵翔\VueWebApi\VueWebApi\obj\Release\VueWebApi.csproj.AssemblyReference.cache |
| | | D:\新凯迪MES\MES项目\MES灵翔\VueWebApi\VueWebApi\obj\Release\VueWebApi.csproj.CoreCompileInputs.cache |
| | | D:\新凯迪MES\MES项目\MES灵翔\VueWebApi\VueWebApi\obj\Release\VueWebApi.csproj.CopyComplete |
| | | D:\新凯迪MES\MES项目\MES灵翔\VueWebApi\VueWebApi\obj\Release\VueWebApi.dll |