This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.m | |
// AES加密 | |
// | |
// Created by Ajun on 15/06/2018. | |
// Copyright © 2018 Ajun. All rights reserved. | |
// | |
#import "ViewController.h" | |
#import <CommonCrypto/CommonCrypto.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIView+CornerRound.h | |
// 圆角画法 | |
// | |
// Created by Ajun on 09/06/2018. | |
// Copyright © 2018 Ajun. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIView+CornerRound.h | |
// 圆角画法 | |
// | |
// Created by Ajun on 09/06/2018. | |
// Copyright © 2018 Ajun. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// LeftViewController.h | |
// 侧滑 | |
// | |
// Created by Ajun on 10/06/2018. | |
// Copyright © 2018 Ajun. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
goodsUseSQLServer.queryJoinTest = function (_code) { | |
return new Promise(function (resolve, reject) { | |
var sqlString = "SELECT b_goods_use_detail.id,b_goods_use_detail.goodsCode,b_goods_use_detail.quantity,b_goods.id,b_goods.code,b_goods.quantity \ | |
FROM b_goods_use_detail inner join b_goods on b_goods_use_detail.goodsCode=b_goods.code\ | |
where goodsCode=?"; | |
mysqldb.execute({sql:sqlString, nestTables:false}, "good-111").then(resolve, reject); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//获取领用单明细及其附属 | |
managerGoodsUse.post("/getGoodsUseDetailsAndAttaches",function (req, res) { | |
var goodsUseCode = req.body.goodsUseCode; | |
var goodsUseType = req.body.goodsUseType;//领料类型 | |
var _goodsUses; | |
// var goodsUseDetails_ = []; | |
Promise.resolve().then(function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bidBackAndIssueSQLServer.testTransaction = function (_descriptions) { | |
var sqlOptions = []; | |
return new Promise(function (resolve, reject) { | |
Promise.all(_descriptions.map(function (current, index) { | |
if (index == 3){ | |
return sqlUtil.generateUpdateSql(BID_ISSUE_TABLE_NAME, { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
managerBidBackAndIssue.put("/test",function (req, res) { | |
bidBackAndIssueSQLServer.testTransaction(req.body.thing).then(function (argument) { | |
res.send(argument); | |
}).catch(function (ero) { | |
res.send(ero); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//TODO | |
bidBackAndIssueSQLServer.testTransaction = function (_descriptions) { | |
var sqlOptions = []; | |
return new Promise(function (resolve, reject) { | |
Promise.all(_descriptions.map(function (current, index) { | |
if (index == 3){ |
NewerOlder