| | |
| | | // Standard:'xxxxxx', |
| | | // LotNo:'20230801' |
| | | // }]; |
| | | debugger; |
| | | var printData = deepClone(parent.printData); |
| | | var configPrintJson; |
| | | |
| | |
| | | providers: [new configElementTypeProvider()] |
| | | }); |
| | | //设置左侧拖拽事件 |
| | | hiprint.PrintElementTypeManager.build('.hiprintEpContainer','testModule'); |
| | | hiprint.PrintElementTypeManager.build('.hiprintEpContainer', 'testModule'); |
| | | |
| | | var hiprintTemplate; |
| | | // var JsonData = JSON.parse('{"panels":[{"index":0,"height":50,"width":50,"paperHeader":0,"paperFooter":141.73228346456693,"printElements":[{"tid":"configModule.SkuName","options":{"left":9,"top":12,"height":9.75,"width":120}},{"tid":"configModule.SkuNo","options":{"left":9,"top":37.5,"height":78,"width":120,"textType":"qrcode"}}],"paperNumberLeft":178.5,"paperNumberTop":123}]}') |
| | |
| | | content: '/views/SystemSettings/PrintModule.html', |
| | | maxmin: true, |
| | | area: ['100%', '100%'], |
| | | data: printData, |
| | | end: function () { |
| | | |
| | | } |
| | |
| | | /// <exception cref="NotImplementedException"></exception> |
| | | public async Task AddPrintTemplate(SysPrintTemplate model, int userid) |
| | | { |
| | | if (model.Status == "1") |
| | | { |
| | | await Db.Updateable<SysPrintTemplate>().SetColumns(s => s.Status == "0").Where(s => s.Type == model.Type && model.Status == "1").ExecuteCommandAsync(); |
| | | } |
| | | model.CreateTime = DateTime.Now; |
| | | model.CreateUser = userid; |
| | | await Db.Insertable(model).ExecuteCommandAsync(); |
| | |
| | | /// <exception cref="NotImplementedException"></exception> |
| | | public async Task EditPrintTemplate(SysPrintTemplate model, int userid) |
| | | { |
| | | if (model.Status == "1") |
| | | { |
| | | await Db.Updateable<SysPrintTemplate>().SetColumns(s => s.Status == "0").Where(s => s.Type == model.Type && model.Status == "1").ExecuteCommandAsync(); |
| | | } |
| | | model.UpdateTime = DateTime.Now; |
| | | model.UpdateUser = userid; |
| | | await Db.Updateable(model).UpdateColumns(it => new { it.Name, it.Type, it.Status, it.PositionJson, it.UpdateTime, it.UpdateUser }).ExecuteCommandAsync(); |