refactor: 器具采购入库维护 器具领用出库单维护 器具领用退库单维护 locaiton.reload()部分修改为无感刷新
| | |
| | | <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup> |
| | | <NameOfLastUsedPublishProfile>D:\æºäºè¿æ\MES\MES-WEB-LayUI\WebTM\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> |
| | | <NameOfLastUsedPublishProfile>D:\å·¥ä½ä»£ç \æºäºè¿æ\MES\MES-WEB-LayUI\WebTM\Properties\PublishProfiles\LAYUI.pubxml</NameOfLastUsedPublishProfile> |
| | | <ProjectView>ProjectFiles</ProjectView> |
| | | <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> |
| | | <NameOfLastUsedPublishProfile>D:\WorkBench\MES-WEB-LayUI\WebTM\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> |
| | | <ProjectView>ShowAllFiles</ProjectView> |
| | | <LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig> |
| | | <UseIISExpress>true</UseIISExpress> |
| | | <Use64BitIISExpress /> |
| | | <IISExpressSSLPort /> |
| | |
| | | <VisualStudio> |
| | | <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> |
| | | <WebProjectProperties> |
| | | <StartPageUrl>views/user/login_pda.html</StartPageUrl> |
| | | <StartAction>SpecificPage</StartAction> |
| | | <StartPageUrl> |
| | | </StartPageUrl> |
| | | <StartAction>CurrentPage</StartAction> |
| | | <AspNetDebugging>True</AspNetDebugging> |
| | | <SilverlightDebugging>False</SilverlightDebugging> |
| | | <NativeDebugging>False</NativeDebugging> |
| | |
| | | set_InitGrid(); |
| | | set_CountGrid(); |
| | | DisPlay_HideColumnEdit(HModName, sessionStorage["HUserName"], option, table); |
| | | ColumnAddNotEditableStyle() |
| | | ColumnHideColumnSetting() |
| | | ColumnAddNotEditableStyle(cancelEditStyleList) |
| | | ColumnHideColumnSetting(HideColmReg) |
| | | // å¨è·åå设置åä¼éç½®optionï¼éè¦éæ°ç»styleèµå¼ |
| | | //夿æä½ç±»å |
| | | if (OperationType == 1) {//æ æºæ°å¢ |
| | |
| | | case 'set_HideColumn': |
| | | get_HideColumnEditAfterReload(HModName, sessionStorage["HUserName"], option, table |
| | | , function () { |
| | | location.reload(); |
| | | let opt = [option]; |
| | | ColumnAddNotEditableStyle(cancelEditStyleList, opt); |
| | | ColumnHideColumnSetting(HideColmReg, opt); |
| | | table.reload('mainTable', opt[0]); |
| | | } |
| | | ); |
| | | break; |
| | |
| | | } |
| | | |
| | | // ç»ä¸å
许ç¼è¾çæ°æ®æ·»å æ ·å¼ |
| | | function ColumnAddNotEditableStyle(regExp) { |
| | | function ColumnAddNotEditableStyle(_regExp, _option) { |
| | | let notEditableStyle = "; background: #e2e2e2;" |
| | | let opt = option |
| | | debugger |
| | | for (let col of option.cols[0]) { |
| | | if (regExp.test(col.field) === true) { |
| | | col.style += notEditableStyle; |
| | | col.edit = null |
| | | } |
| | | if (_option !== undefined) { |
| | | opt = _option[0] |
| | | } |
| | | } |
| | | |
| | | // ç»ä¸å
许ç¼è¾çæ°æ®æ·»å æ ·å¼ |
| | | function ColumnAddNotEditableStyle() { |
| | | let notEditableStyle = "; background: #e2e2e2;" |
| | | let opt = option |
| | | debugger |
| | | for (let col of option.cols[0]) { |
| | | if (cancelEditStyleList.test(col.field) === true) { |
| | | if (_regExp.test(col.field) === true) { |
| | | col.style += notEditableStyle; |
| | | col.edit = null |
| | | } |
| | |
| | | } |
| | | |
| | | // 设置åéè |
| | | function ColumnHideColumnSetting() { |
| | | function ColumnHideColumnSetting(_regExp, _option) { |
| | | let opt = option |
| | | if (_option !== undefined) { |
| | | opt = _option[0] |
| | | } |
| | | for (let col of option.cols[0]) { |
| | | if (HideColmReg.test(col.field) === true) { |
| | | if (_regExp.test(col.field) === true) { |
| | | col.hide = true |
| | | } |
| | | } |
| | |
| | | //å设置 |
| | | case 'set_HideColumn': |
| | | get_HideColumnEditAfterReload(HModName, sessionStorage["HUserName"], option, table, function () { |
| | | location.reload() |
| | | let cancelEditStyleList = new RegExp(/HMaterName|HMaterSpec|HUnitName|HQtyMust|HWHName|HSPName/i) |
| | | let opt = [option] |
| | | ColumnAddNotEditableStyle(cancelEditStyleList, opt) |
| | | table.reload('mainTable', opt[0]) |
| | | }) |
| | | break; |
| | | } |
| | |
| | | } |
| | | //表头信æ¯å¾æ¥åä½å¼¹çª |
| | | form.on('submit(HSupList)', function () { |
| | | //debugger; |
| | | if ($("#HSupTypeID").val() == 0 || $("#HSupTypeID").val() == null) { |
| | | return layer.msg('è¯·éæ©å¾æ¥ç±»å'); |
| | | } |
| | |
| | | if (linterid != "" && linterid != null) { |
| | | refSav = "Update"; |
| | | } |
| | | //debugger; |
| | | data.field.HMaker = sessionStorage["HUserName"];//å¶å人 |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | |
| | | , done: function (res, curr, count) { |
| | | } |
| | | }; |
| | | |
| | | debugger |
| | | } |
| | | //åå§æ±æ»ä¿¡æ¯ |
| | | function set_CountGrid() { |
| | |
| | | //#endregion |
| | | |
| | | // ç»ä¸å
许ç¼è¾çæ°æ®æ·»å æ ·å¼ |
| | | function ColumnAddNotEditableStyle(regExp) { |
| | | function ColumnAddNotEditableStyle(regExp, _option) { |
| | | let notEditableStyle = "; background: #e2e2e2;" |
| | | let opt = option |
| | | debugger |
| | | for (let col of option.cols[0]) { |
| | | if(_option !== undefined){ |
| | | opt = _option[0] |
| | | } |
| | | for (let col of opt.cols[0]) { |
| | | if (regExp.test(col.field) === true) { |
| | | col.style += notEditableStyle; |
| | | } |
| | |
| | | set_InitGrid(); |
| | | set_CountGrid(); |
| | | DisPlay_HideColumnEdit(HModName, sessionStorage["HUserName"], option, table); |
| | | ColumnAddNotEditableStyle() |
| | | ColumnHideColumnSetting() |
| | | ColumnAddNotEditableStyle(cancelEditStyleList) |
| | | ColumnHideColumnSetting(HideColmReg) |
| | | //夿æä½ç±»å |
| | | if (OperationType == 1) {//æ æºæ°å¢ |
| | | set_AddFNew(); |
| | |
| | | case 'set_HideColumn': |
| | | get_HideColumnEditAfterReload(HModName, sessionStorage["HUserName"], option, table, |
| | | function () { |
| | | location.reload(); |
| | | // è¿éè·åçoptionæ¯ SetColumn.js ä¸çoption, 䏿¬é¡µé¢ä¸çoptionæ å
³ |
| | | let opt = [option]; |
| | | ColumnAddNotEditableStyle(cancelEditStyleList, opt); |
| | | ColumnHideColumnSetting(HideColmReg, opt); |
| | | table.reload('mainTable', opt[0]); |
| | | } |
| | | ) |
| | | break; |
| | |
| | | //#endregion |
| | | |
| | | // ç»ä¸å
许ç¼è¾çæ°æ®æ·»å æ ·å¼ |
| | | function ColumnAddNotEditableStyle() { |
| | | function ColumnAddNotEditableStyle(regExp, _option) { |
| | | let notEditableStyle = "; background: #e2e2e2;" |
| | | let opt = option |
| | | debugger |
| | | for (let col of option.cols[0]) { |
| | | if (cancelEditStyleList.test(col.field) === true) { |
| | | if(_option !== undefined){ |
| | | opt = _option[0] |
| | | } |
| | | for (let col of opt.cols[0]) { |
| | | if (regExp.test(col.field) === true) { |
| | | col.style += notEditableStyle; |
| | | col.edit = null |
| | | } |
| | |
| | | } |
| | | |
| | | // 设置åéè |
| | | function ColumnHideColumnSetting() { |
| | | function ColumnHideColumnSetting(regExp, _option) { |
| | | let opt = option |
| | | if(_option !== undefined){ |
| | | opt = _option[0] |
| | | } |
| | | for (let col of option.cols[0]) { |
| | | if (HideColmReg.test(col.field) === true) { |
| | | if (regExp.test(col.field) === true) { |
| | | col.hide = true |
| | | } |
| | | } |