| | |
| | | <LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration> |
| | | <LastUsedPlatform>Any CPU</LastUsedPlatform> |
| | | <PublishProvider>FileSystem</PublishProvider> |
| | | <PublishUrl>G:\issWeb\ç½ç«åå¸\LAYUI</PublishUrl> |
| | | <PublishUrl>D:\ç½ç«åå¸\æºäºMESWMS\LAYUI</PublishUrl> |
| | | <WebPublishMethod>FileSystem</WebPublishMethod> |
| | | <SiteUrlToLaunchAfterPublish /> |
| | | </PropertyGroup> |
| | |
| | | <PropertyGroup> |
| | | <NameOfLastUsedPublishProfile>C:\Users\86130\Desktop\æºäºè¿æ\MES-WEB-LayUI\WebTM\Properties\PublishProfiles\JFTM.pubxml</NameOfLastUsedPublishProfile> |
| | | <ProjectView>ProjectFiles</ProjectView> |
| | | <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> |
| | | <LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig> |
| | | <UseIISExpress>true</UseIISExpress> |
| | | <Use64BitIISExpress /> |
| | | <IISExpressSSLPort /> |
| | |
| | | <VisualStudio> |
| | | <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> |
| | | <WebProjectProperties> |
| | | <StartPageUrl>views/user/login.html</StartPageUrl> |
| | | <StartAction>SpecificPage</StartAction> |
| | | <StartPageUrl> |
| | | </StartPageUrl> |
| | | <StartAction>CurrentPage</StartAction> |
| | | <AspNetDebugging>True</AspNetDebugging> |
| | | <SilverlightDebugging>False</SilverlightDebugging> |
| | | <NativeDebugging>False</NativeDebugging> |
| | |
| | | //#endregion |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //åå
³é |
| | | form.on('submit(HDept-BT)', function (data) { |
| | | get_Department( ); |
| | | }); |
| | | |
| | | |
| | | //ä¿å |
| | | form.on('submit(Saver)', function (data) {//ä¿å |
| | | var isWeekendCheck = isWeekend(data.field.HRestDay); |
| | |
| | | }); |
| | | } |
| | | |
| | | //#region é¨é¨éæ©é¡µé¢ |
| | | function get_Department() { |
| | | |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'é¨é¨å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../../views/åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_DepartmentList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index]; |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable'); |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | |
| | | $("#HDeptID").val(checkStatus.data[0].HItemID);//é¨é¨id |
| | | $("#HDeptName").val(checkStatus.data[0].é¨é¨åç§°);//é¨é¨åç§° |
| | | |
| | | layer.close(layer.index); |
| | | } |
| | | , btn2: function (index, layero) { |
| | | }, |
| | | end: function () { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //æ ¹æ®å½å人è·åé¨é¨,ç»ç» |
| | | function set_HDeptOrgId(HName) { |
| | | $.ajax({ |
| | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | | for (var i = 0; i < option.cols[0].length - 2; i++) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | if (dataCol[i]) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | } |
| | | //éèå |
| | | if (dataCols[1] == 1) { |
| | | option.cols[0][i + 1]["hide"] = true; |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:10px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">使ç¨ç»ç»</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 185px;"> |
| | | <input type="hidden" class="layui-input" lay-verify="HCREATEORGID" name="HCREATEORGID" id="HCREATEORGID" value="0"> |
| | | <select name="HUSEORGID" id="HUSEORGID" lay-verify="HUSEORGID"> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">é¨é¨</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HDeptName" name="HDeptName" id="HDeptName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HDeptID" id="HDeptID" lay-verify="HDeptID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHDept" id="btnHDept" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | set_InitFrom(); |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | //卿å è½½ç»ç» |
| | | Organ(); |
| | | $("#HCREATEORGID").val(sessionStorage["OrganizationID"]); |
| | | //夿æä½ç±»å |
| | | if (OperationType == 1) {//æ æºå |
| | | set_AddFNew(); |
| | | } |
| | | else if (OperationType == 3) {//ç¼è¾ |
| | | //ç¦ç¨ç»ç»é项 |
| | | //$("#HUSEORGID").attr("disabled", true); |
| | | set_EditFromGrid(); |
| | | } |
| | | else { |
| | |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | var NewRow = { "HDotCheckItemID": 0, "HDotCheckCode": "", "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": sessionStorage["HEmpID"], "HManagerCode": sessionStorage["HEmpNumber"], "HManagerName": sessionStorage["HEmpName"], "HRemark": "", "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "" }; |
| | | var NewRow = { "HDotCheckItemID": 0, "HDotCheckCode": "", "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": sessionStorage["HEmpID"], "HManagerCode": sessionStorage["HEmpNumber"], "HManagerName": sessionStorage["HEmpName"], "HRemark": "", "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "" }; |
| | | switch (obj.event) { |
| | | //å¢å ä¸è¡ |
| | | case 'btn-AddLine': set_AddLine(NewRow); |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true |
| | | ,content: ['../设å¤ç®¡ç/è®¾å¤æ¡£æ¡/Gy_EquipFileMainList.html', 'yes'] |
| | | , content: ['../设å¤ç®¡ç/è®¾å¤æ¡£æ¡/Gy_EquipFileMainList.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | }); |
| | | }); |
| | | |
| | | //表头设å¤ç¹æ£è§ç¨ä¿¡æ¯ |
| | | form.on('submit(btnHDept)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'é¨é¨å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_DepartmentList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HDeptID").val(checkStatus.data[0].HItemID); |
| | | $("#HDeptName").val(checkStatus.data[0].é¨é¨åç§°); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | |
| | |
| | | |
| | | //ç¹æ£è®¡å |
| | | columns_plan = [ |
| | | { type: 'checkbox', fixed: 'left', totalRowText: 'å计è¡'} |
| | | { type: 'checkbox', fixed: 'left', totalRowText: 'å计è¡' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, event: "qwe" } |
| | | , { field: 'HPlanDate', title: 'è®¡åæ¥æ' } |
| | | , { field: 'HPlanBeginTime', title: '计åå¼å§æ¶é´ç¹' } |
| | |
| | | , page: true |
| | | , totalRow: true |
| | | , limit: 500 |
| | | , limits:[50,200,500,1000,3000] |
| | | , limits: [50, 200, 500, 1000, 3000] |
| | | , cellMinWidth: 120 |
| | | , height: 500 |
| | | , cols: [columns_plan] |
| | |
| | | function set_AddFNew() { |
| | | //è·åæå¤§åæ®å· |
| | | get_MAXNum(); |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckCode": "", "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": sessionStorage["HEmpID"], "HManagerCode": sessionStorage["HEmpNumber"], "HManagerName": sessionStorage["HEmpName"], "HRemark": "", "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "" }]; |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckCode": "", "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": sessionStorage["HEmpID"], "HManagerCode": sessionStorage["HEmpNumber"], "HManagerName": sessionStorage["HEmpName"], "HRemark": "", "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "" }]; |
| | | table.render(option); |
| | | } |
| | | //è·åæå¤§åæ®å·åé»è®¤å¼èµå¼ |
| | |
| | | } |
| | | }); |
| | | } |
| | | //è·åç»ç» |
| | | function Organ() { |
| | | //è·åç»å½é¡µç»ç»å |
| | | var Organization = ''; |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/Web/GetOrganizations", |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data; |
| | | for (var i = 0; i < data.length; i++) { |
| | | Organization += '<option style="color:blue;" value="' + data[i].ID + '">' + data[i].Name + '</option>'; |
| | | } |
| | | $("#HUSEORGID").append(Organization); |
| | | $("#HUSEORGID").val(sessionStorage["OrganizationID"]) |
| | | form.render('select'); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | //ç¼è¾ |
| | | function set_EditFromGrid() { |
| | | set_EditForm(linterid); //ç¼è¾è·å表头 |
| | | set_EditGrid(linterid); //ç¼è¾è·åè¡¨ä½ |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckCode": "", "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": 0, "HManagerCode": "", "HManagerName": "", "HRemark": "", "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "" }]; |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckCode": "", "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": 0, "HManagerCode": "", "HManagerName": "", "HRemark": "", "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "" }]; |
| | | table.render(option); |
| | | |
| | | |
| | | set_EditGrid_Plan(linterid); //ç¼è¾è·å表ä½--ç¹æ£è®¡å |
| | | option.data = [{ "HPlanDate": "", "HPlanBeginTime": "", "HPlanEndTime": "", "HRelationFlag": "æªç¹æ£","DiffDate":0 }]; |
| | | option.data = [{ "HPlanDate": "", "HPlanBeginTime": "", "HPlanEndTime": "", "HRelationFlag": "æªç¹æ£", "DiffDate": 0 }]; |
| | | table.render(option_plan); |
| | | } |
| | | |
| | |
| | | if (result.count == 1) { |
| | | var DJData = result.data;//ç¹æ£ |
| | | var rowdate1 = layui.table.cache["mainTable"]; |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckCode": "", "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": 0, "HManagerCode": "", "HManagerName": "", "HRemark": "", "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "" }]; |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckCode": "", "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": 0, "HManagerCode": "", "HManagerName": "", "HRemark": "", "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "" }]; |
| | | table.render(option); |
| | | |
| | | if (DJData.length != 0) //è¡¨ä½æ°æ®ä¸ä¸ºç©ºæ¶ |
| | |
| | | var checkrow = { |
| | | "HDotCheckItemID": DJData[i].ç¹æ£é¡¹ç®ID, "HDotCheckCode": DJData[i].ç¹æ£é¡¹ç®ä»£ç , "HDotCheckItem": DJData[i].ç¹æ£é¡¹ç®, "HDotCheckPart": DJData[i].ç¹æ£é¨ä½, |
| | | "HClaim": DJData[i].å
·ä½è¦æ±, "HManagerID": DJData[i].è´è´£äººID, "HManagerCode": DJData[i].è´è´£äººä»£ç , |
| | | "HManagerName": DJData[i].è´è´£äºº, "HRemark": DJData[i].å夿³¨, "HDotCheckItemClassID": DJData[i].HDotCheckItemClassID, "HDotCheckItemClassName": DJData[i].ç¹æ£é¡¹ç®åç±»åç§°, "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "" |
| | | "HManagerName": DJData[i].è´è´£äºº, "HRemark": DJData[i].å夿³¨, "HDotCheckItemClassID": DJData[i].HDotCheckItemClassID, "HDotCheckItemClassName": DJData[i].ç¹æ£é¡¹ç®åç±»åç§°, "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "" |
| | | }; |
| | | buttonArr.push(checkrow); //å°ä¹åçæ°æ®åå¨ |
| | | } |
| | |
| | | , "HRemark": data.è¡¨å¤´å¤æ³¨ |
| | | , "HMouldDotCheckRuleID": data.HMouldDotCheckRuleID |
| | | , "HMouldDotCheckRuleName": data.设å¤ç¹æ£è§ç¨ |
| | | , "HCREATEORGID": data.HCREATEORGID |
| | | , "HUSEORGID": data.HUSEORGID |
| | | , "HDeptID": data.HDeptID |
| | | , "HDeptName": data.é¨é¨åç§° |
| | | }); |
| | | |
| | | } else { |
| | |
| | | url: GetWEBURL() + 'Sb_EquipDotCheckPlanBill/Sb_EquipDotCheckPlanBillListProjectDetai', |
| | | type: "GET", |
| | | data: { "sqlWhere": "and hmainid=" + linterid }, |
| | | success: function (result) { |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | var data = result.data; |
| | | var subarr = []; |
| | |
| | | }) |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | } |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | |
| | | "sWhere": "and HItemID = '" + $("#HDeptID").val() + "'", "user": sessionStorage["HUserName"], "Organization": sessionStorage["Organization"] |
| | | }, |
| | | success: function (result) { |
| | | $("#HManagerID").val(result.data[0].HEmpID); |
| | | $("#HManagerName").val(result.data[0].è´è´£äºº); |
| | | if (result.code == 1 && result.data.length > 0) { |
| | | $("#HManagerID").val((result.data[0].HEmpID == undefined ? 0 : result.data[0].HEmpID) == null ? 0 : result.data[0].HEmpID); |
| | | $("#HManagerName").val(result.data[0].è´è´£äºº); |
| | | } else { |
| | | layer.msg("æ ¹æ®å½åç»å½ç¨æ·çé¨é¨ è·å 主管" + result.Message) |
| | | } |
| | | }, error: function () { |
| | | layer.alert("åçé误!", { icon: 5 }); |
| | | } |