diff --git a/北京北汽/Controller/SCP_DC_UNI_CONTROLLER.cs b/北京北汽/Controller/SCP_DC_UNI_CONTROLLER.cs index 1d9cb86..040f8ef 100644 --- a/北京北汽/Controller/SCP_DC_UNI_CONTROLLER.cs +++ b/北京北汽/Controller/SCP_DC_UNI_CONTROLLER.cs @@ -18,6 +18,7 @@ using System.Transactions; using System.Data.Entity.Core; using System.Security.Cryptography; using System.Data.Entity; +using System.Collections.ObjectModel; //using WebSrvAPITest; namespace CK.SCP.Controller @@ -52,7 +53,7 @@ namespace CK.SCP.Controller ResultObject> _ret = new ResultObject>(); try { - using (var db = EntitiesFactory.CreateExchangeCenterInstance()) + using (var db = EntitiesFactory.CreateExchangeCenterInstance()) { IQueryable q = db.TEA_SUBSCRIBE; if (!string.IsNullOrEmpty(p_entity.TableName)) @@ -112,7 +113,7 @@ namespace CK.SCP.Controller ResultObject _ret = new ResultObject(); try { - using (var db = EntitiesFactory.CreateExchangeCenterInstance()) + using (var db = EntitiesFactory.CreateExchangeCenterInstance()) { foreach (var itm in p_entitys) { @@ -148,7 +149,7 @@ namespace CK.SCP.Controller ResultObject _ret = new ResultObject(); try { - using (var db = EntitiesFactory.CreateExchangeCenterInstance()) + using (var db = EntitiesFactory.CreateExchangeCenterInstance()) { foreach (var itm in p_entitys) { @@ -180,84 +181,32 @@ namespace CK.SCP.Controller /// 获取 /// /// - public static List Get_TEA_TASK_SUB_List(ExchangeCenterContext db,TEA_TASK_SUB p_entity) - { - List list = new List(); + //public static List Get_TEA_TASK_SUB_List(TEA_TASK_SUB p_entity) + //{ + // List list = new List(); - string _sql = "select * from TEA_TASK_SUB where TaskState = '{0}' and Subscriber = '{1}'"; - _sql = string.Format(_sql, (int)p_entity.TaskState,p_entity.Subscriber); - list = db.Database.SqlQuery(_sql).ToList(); - return list; - } + // using (var db = EntitiesFactory.CreateExchangeCenterInstance()) + // { + // string _sql = "select * from TEA_TASK_SUB where TaskState = '{0}' and Subscriber = '{1}'"; + // _sql = string.Format(_sql, (int)p_entity.TaskState, p_entity.Subscriber); + // list = db.Database.SqlQuery(_sql).ToList(); + // } + // return list; + //} public static ResultObject> Get_TEA_TASK_SUB_List(TEA_TASK_SUB p_entity) { ResultObject> _ret = new ResultObject>(); try { - using (var db = EntitiesFactory.CreateExchangeCenterInstance()) + using (var db = EntitiesFactory.CreateExchangeCenterInstance()) { - IQueryable q = db.TEA_TASK_SUB; - if (!string.IsNullOrEmpty(p_entity.TableName)) - { - q = q.Where(p => p.TableName.Contains(p_entity.TableName)); - } - if (!string.IsNullOrEmpty(p_entity.Creator)) - { - q = q.Where(p => p.Creator.Contains(p_entity.Creator)); - } - if (p_entity.DataCount != 0) - { - q = q.Where(p => p.DataCount == p_entity.DataCount); - } - if (!string.IsNullOrEmpty(p_entity.Subscriber)) - { - q = q.Where(p => p.Subscriber == p_entity.Subscriber); - } - if (p_entity.FailedCount != 0) - { - q = q.Where(p => p.FailedCount == p_entity.FailedCount); - } - if (!string.IsNullOrEmpty(p_entity.FailedInfo)) - { - q = q.Where(p => p.FailedInfo.Contains(p_entity.FailedInfo)); - } - if (!string.IsNullOrEmpty(p_entity.Domain)) - { - q = q.Where(p => p.Domain.Contains(p_entity.Domain)); - } - if (!string.IsNullOrEmpty(p_entity.Site)) - { - q = q.Where(p => p.Site.Contains(p_entity.Site)); - } - if (p_entity.UID != 0) - { - q = q.Where(p => p.UID == p_entity.UID); - } - if (!string.IsNullOrEmpty(p_entity.CreateUser)) - { - q = q.Where(p => p.CreateUser.Contains(p_entity.CreateUser)); - } - if (!string.IsNullOrEmpty(p_entity.Remark)) - { - q = q.Where(p => p.Remark.Contains(p_entity.Remark)); - } - if (!string.IsNullOrEmpty(p_entity.UpdateUser)) - { - q = q.Where(p => p.UpdateUser.Contains(p_entity.UpdateUser)); - } - if (p_entity.IsChecked != false) - { - q = q.Where(p => p.IsChecked == p_entity.IsChecked); - } - //if (!string.IsNullOrEmpty(p_entity.TaskState)) - //{ - // q = q.Where(p => p.UpdateUser.Contains(p_entity.UpdateUser)); - //} - q = q.Where(p => p.TaskState==p_entity.TaskState); - + string _sql = "select * from TEA_TASK_SUB with(nolock) where TaskState = '{0}' and Subscriber = '{1}'"; + _sql = string.Format(_sql, (int)p_entity.TaskState, p_entity.Subscriber); + + var q = db.Database.SqlQuery(_sql).OrderBy(p=>p.CreateTime).ToList(); _ret.State = ReturnStatus.Succeed; - _ret.Result = q.OrderBy(p => p.CreateTime).ToList(); + _ret.Result = q; } } catch (Exception e) @@ -293,11 +242,11 @@ namespace CK.SCP.Controller return _ret; } - public static ResultObject CREATE_TEA_TASK_SUB(ExchangeCenterContext db, bool p_ismasterslave ,TEA_TASK_SUB p_task) + public static ResultObject CREATE_TEA_TASK_SUB(ExchangeCenterContext db, bool p_ismasterslave, TEA_TASK_SUB p_task) { ResultObject _ret = new ResultObject(); try - { + { var _list = db.TEA_SUBSCRIBE.Where(p => p.Creator == "SCP" && p.TableName == p_task.TableName).ToList(); foreach (var itm in _list) { @@ -385,7 +334,7 @@ namespace CK.SCP.Controller ResultObject _ret = new ResultObject(); try { - using (var db = EntitiesFactory.CreateExchangeCenterInstance()) + using (var db = EntitiesFactory.CreateExchangeCenterInstance()) { foreach (var itm in p_entitys) { @@ -407,23 +356,24 @@ namespace CK.SCP.Controller public static void ReadService(Action> p_action) { ResultObject result = new ResultObject(); - ExchangeCenterContext db = EntitiesFactory.CreateExchangeCenterInstance(); + //ExchangeCenterContext db = EntitiesFactory.CreateExchangeCenterInstance(); // ResultObject> result = new ResultObject>(); - //var _result = Get_TEA_TASK_SUB_List(new TEA_TASK_SUB() { TaskState = EnumTaskState.Unread, Subscriber = "SCP"}); - List tasklist = Get_TEA_TASK_SUB_List(db,new TEA_TASK_SUB() { TaskState = EnumTaskState.Unread, Subscriber = "SCP" }); - if (tasklist.Count()>0) - //if (_result.State == ReturnStatus.Succeed) + var _result = Get_TEA_TASK_SUB_List(new TEA_TASK_SUB() { TaskState = EnumTaskState.Unread, Subscriber = "SCP"}); + //List tasklist = Get_TEA_TASK_SUB_List(new TEA_TASK_SUB() { TaskState = EnumTaskState.Unread, Subscriber = "SCP" }); + //if (tasklist.Count() > 0) + if (_result.State == ReturnStatus.Succeed) { - foreach (var _task in tasklist) - //foreach (var _task in _result.Result) + + //foreach (var _task in tasklist) + foreach (var _task in _result.Result) { ScpEntities scpdb = EntitiesFactory.CreateScpInstance(); DataCenterContext dc = EntitiesFactory.CreateDataCenterInstance(); AppBoxContext authdb = EntitiesFactory.CreateAppBoxInstance(); - //ExchangeCenterContext db = EntitiesFactory.CreateExchangeCenterInstance(); + ExchangeCenterContext db = EntitiesFactory.CreateExchangeCenterInstance(); using (var scope = - // 注释内容可去掉mdtc - //new TransactionScope(TransactionScopeOption.Suppress, new TransactionOptions() + // 注释内容可去掉dtc + //new TransactionScope(TransactionScopeOption.Suppress, new TransactionOptions() new TransactionScope(TransactionScopeOption.Required, new TransactionOptions() { IsolationLevel = System.Transactions.IsolationLevel.Serializable, @@ -470,16 +420,20 @@ namespace CK.SCP.Controller break; case "TES_SUPPLIER": var _supplierlist = db.TES_SUPPLIER.Where(p => p.TaskID == _task.TaskID).ToList(); - result = UpdateSupplier(_supplierlist, scpdb,authdb, _task); + result = UpdateSupplier(_supplierlist, scpdb, authdb, _task); result.Message = _task.TaskID.ToString(); Update_TEA_TASK_SUB(db, _task); - EntitiesFactory.SaveDb(scpdb); - EntitiesFactory.SaveDb(db); - EntitiesFactory.SaveDb(dc); - EntitiesFactory.SaveDb(authdb); - scope.Complete(); + scpdb.BulkSaveChanges(); + db.BulkSaveChanges(); + authdb.BulkSaveChanges(); + dc.BulkSaveChanges(); + //EntitiesFactory.SaveDb(scpdb); + //EntitiesFactory.SaveDb(db); + //EntitiesFactory.SaveDb(dc); + //EntitiesFactory.SaveDb(authdb); UpdateSupplierExtend(_supplierlist); - break; + scope.Complete(); + break; case "TES_PART_MSTR": result = UpdatePart(db, scpdb, _task); result.Message = _task.TaskID.ToString(); @@ -498,7 +452,7 @@ namespace CK.SCP.Controller EntitiesFactory.SaveDb(dc); scope.Complete(); break; - // 作废asn单 + // 作废asn单 case "TED_SCRAPASN": result = UpApAsn(db, scpdb, _task); result.Message = _task.TaskID.ToString(); @@ -512,38 +466,43 @@ namespace CK.SCP.Controller // result = UpdateFactory(db, scpdb, appscpdb, _task); // break; } - + // p_action(result); result.State = ReturnStatus.Succeed; result.Result = true; } - catch (System.Data.Entity.Validation.DbEntityValidationException dbEx)//捕获实体验证异常 - { - var sb = new StringBuilder(); - foreach (var error in dbEx.EntityValidationErrors.ToList()) - { - error.ValidationErrors.ToList().ForEach(i => - { - sb.AppendFormat("表:{0},字段:{1},信息:{2}\r\n", error.Entry.Entity.GetType().Name, i.PropertyName, i.ErrorMessage); - }); - } - scope.Dispose(); - result.State = ReturnStatus.Failed; - result.ErrorList.Add(dbEx); - } - catch (OptimisticConcurrencyException ex)//并发冲突异常 - { + //catch (System.Data.Entity.Validation.DbEntityValidationException dbEx)//捕获实体验证异常 + //{ + // var sb = new StringBuilder(); + // foreach (var error in dbEx.EntityValidationErrors.ToList()) + // { + // error.ValidationErrors.ToList().ForEach(i => + // { + // sb.AppendFormat("表:{0},字段:{1},信息:{2}\r\n", error.Entry.Entity.GetType().Name, i.PropertyName, i.ErrorMessage); + // }); + // } + // scope.Dispose(); + // result.State = ReturnStatus.Failed; + // result.ErrorList.Add(dbEx); + //} + //catch (OptimisticConcurrencyException ex)//并发冲突异常 + //{ - scope.Dispose(); - result.State = ReturnStatus.Failed; - result.ErrorList.Add(ex); - } + // scope.Dispose(); + // result.State = ReturnStatus.Failed; + // result.ErrorList.Add(ex); + //} catch (Exception ex) { scope.Dispose(); result.State = ReturnStatus.Failed; result.ErrorList.Add(ex); - result.Message = _task.TaskID.ToString(); + result.Message = ex.Message; //_task.TaskID.ToString(); + if (ex.InnerException != null) + { + result.Message = ex.InnerException.Message; + } + // result.MessageList.Add("任务编号:" + _task.TaskID + "错误信息:" + ex.Message); } } @@ -568,15 +527,16 @@ namespace CK.SCP.Controller { ScpEntities scpdb = EntitiesFactory.CreateScpInstance(); ExchangeCenterContext db = EntitiesFactory.CreateExchangeCenterInstance(); - var _list = scpdb.TS_UNI_API.Where(p => p.State == (int)DataState.Enabled&&p.Domain== "HFBMPT").OrderBy(p => p.UID).ToList(); - var _list1 = scpdb.TS_UNI_API.Where(p => p.State == (int)DataState.Enabled && p.Domain == "HFBMPT" && p.InterfaceType== "Price").OrderBy(p => p.UID).ToList(); - + var _list = scpdb.TS_UNI_API.Where(p => p.State == (int)DataState.Enabled && p.Domain == "CDBMPT").OrderBy(p => p.UID).ToList(); + var _list1 = scpdb.TS_UNI_API.Where(p => p.State == (int)DataState.Enabled && p.Domain == "CDBMPT" && p.InterfaceType == "Price").OrderBy(p => p.UID).ToList(); + var apiii = _list1.Count(); - if (apiii > 0) { - var ret = UpdateTES_PURCHASE_PRICE(db, scpdb, _list1); + if (apiii > 0) + { + var ret = UpdateTES_PURCHASE_PRICE(db, scpdb, _list1); } var billNumList = _list.Select(p => p.BillNum).Distinct(); - + foreach (var itm in billNumList) { var _dataList = _list.Where(p => p.BillNum == itm).ToList(); @@ -584,19 +544,19 @@ namespace CK.SCP.Controller if (_asnList.Count > 0) { var _taskId = Guid.NewGuid(); - _msglist.Add(new LogModel() { LogMessage = string.Format("发现发货单信息{0}条", _asnList.Count), LogTime = DateTime.Now.ToString(), TaskId = _taskId.ToString(), TableName = "TED_ASN_MSTR" }); + _msglist.Add(new LogModel() { LogMessage = string.Format("发现发货单信息{0}条", _asnList.Count), LogTime = DateTime.Now.ToString(), TaskId = _taskId.ToString(), TableName = "TED_ASN_MSTR" }); var ret = UpdateAsn(db, scpdb, _asnList, _taskId); if (ret.State == ReturnStatus.Succeed) { _msglist.Add(ret.Result); - } + } } var _invoiceList = _dataList.Where(p => p.InterfaceType == UniApiType.Invoice.ToString()).ToList(); if (_invoiceList.Count > 0) { var _taskId = Guid.NewGuid(); _msglist.Add(new LogModel() { LogMessage = string.Format("发现发票信息{0}条", _invoiceList.Count), LogTime = DateTime.Now.ToString(), TaskId = _taskId.ToString(), TableName = "TED_INVOICE_MSTR" }); - var ret = UpdateInvoice(db, scpdb,_invoiceList, _taskId); + var ret = UpdateInvoice(db, scpdb, _invoiceList, _taskId); if (ret.State == ReturnStatus.Succeed) { _msglist.Add(ret.Result); @@ -632,17 +592,17 @@ namespace CK.SCP.Controller result.State = ReturnStatus.Succeed; result.Result = _msglist; } - catch(Exception e) + catch (Exception e) { - _msglist.Add(new LogModel() { LogMessage = e.Message, LogTime = DateTime.Now.ToString(), TaskId =string.Empty, TableName = "ERROR" }); - result.State = ReturnStatus.Failed; + _msglist.Add(new LogModel() { LogMessage = e.Message, LogTime = DateTime.Now.ToString(), TaskId = string.Empty, TableName = "ERROR" }); + result.State = ReturnStatus.Failed; result.Result = _msglist; scope.Dispose(); } //finally //{ - + //} } @@ -653,7 +613,7 @@ namespace CK.SCP.Controller ResultObject _ret = new ResultObject(); try - { + { List _teslist = new List(); var _api = _priceList.FirstOrDefault(); @@ -720,7 +680,7 @@ namespace CK.SCP.Controller } return _ret; } - + //public static ResultObject UpdateAsnDetail(ExchangeCenterContext db, ScpEntities scpdb,List p_asnDetailList) //{ // ResultObject _ret = new ResultObject(); @@ -759,7 +719,7 @@ namespace CK.SCP.Controller using (var db = EntitiesFactory.CreateScpInstance()) { - _ls = db.TB_ASN.Where(p => p.AsnBillNum == p_asn&&p.State==3).ToList(); + _ls = db.TB_ASN.Where(p => p.AsnBillNum == p_asn && p.State == 3).ToList(); } return _ls; } @@ -783,8 +743,8 @@ namespace CK.SCP.Controller _asn.CreateUser = _api.CreateOper; _asn.KanbanBillNum = asn.AskBillNum; _asn.PurchaseOrder = asn.PoBillNum.Trim(); - - if(_api.Domain=="CQBMPT") + + if (_api.Domain == "CQBMPT") { _asn.Domain = "CQBMPT"; _asn.Site = "CQ01"; @@ -838,13 +798,13 @@ namespace CK.SCP.Controller { _entity.Site = asn.SubSite; _entity.Domain = asn.Site; - } + } _entity.DataID = Guid.NewGuid(); db.TED_ASN_DET.Add(_entity); _ls.Add(_entity); detail.State = (int)BillState.Finish; detail.PutTime = DateTime.Now; - } + } var ret = CREATE_TEA_TASK_SUB(db, true, new TEA_TASK_SUB() { DataCount = _asnList.Count, @@ -858,7 +818,7 @@ namespace CK.SCP.Controller }); } _ret.State = ReturnStatus.Succeed; - _ret.Result = new LogModel() { LogMessage=string.Format("成功发布发货单信息{0}条", _asnList.Count), LogTime=DateTime.Now.ToString(), TaskId= p_taskID.ToString(), TableName= "TED_ASN_MSTR" }; + _ret.Result = new LogModel() { LogMessage = string.Format("成功发布发货单信息{0}条", _asnList.Count), LogTime = DateTime.Now.ToString(), TaskId = p_taskID.ToString(), TableName = "TED_ASN_MSTR" }; } catch (Exception e) { @@ -1056,7 +1016,7 @@ namespace CK.SCP.Controller { var _api = _poList.FirstOrDefault(); TED_PO_MSTR _po = new TED_PO_MSTR(); - _po.GUID= Guid.NewGuid(); + _po.GUID = Guid.NewGuid(); _po.PurchaseOrder = _api.BillNum; _po.ModeType = _api.SubBillType.ToString(); _po.Supplier = _api.VendId; @@ -1065,9 +1025,10 @@ namespace CK.SCP.Controller _po.OrderDate = _api.CreateTime; _po.DueDate = _api.PutTime; _po.Confirm = true; - _po.Buyer= _api.Buyer; - if (_api.SubBillType == 1) { - _po.ScheduledOrder =true ; + _po.Buyer = _api.Buyer; + if (_api.SubBillType == 1) + { + _po.ScheduledOrder = true; } else { @@ -1086,12 +1047,12 @@ namespace CK.SCP.Controller _po.CommandType = "A"; _po.TaskID = p_taskID; _po.DataID = Guid.NewGuid(); - _po.Pricelist= _api.VendId.ToUpper().Trim() + _api.Site.Trim().Substring(1, 1) + _api.Site.Substring(3, 1).Trim(); + _po.Pricelist = _api.VendId.ToUpper().Trim() + _api.Site.Trim().Substring(1, 1) + _api.Site.Substring(3, 1).Trim(); db.TED_PO_MSTR.Add(_po); foreach (var detail in _poList) { TED_PO_DET _entity = new TED_PO_DET(); - _entity.GUID= Guid.NewGuid(); + _entity.GUID = Guid.NewGuid(); _entity.PurchaseOrder = detail.BillNum; _entity.Line = detail.ErpLineNum; _entity.PartCode = detail.PartCode; @@ -1114,7 +1075,7 @@ namespace CK.SCP.Controller _entity.EndDate = detail.ValidDate; _entity.CreateUser = detail.VendBatch; _entity.CreateTime = DateTime.Now; - _entity.DataID= Guid.NewGuid(); + _entity.DataID = Guid.NewGuid(); _entity.TaskID = _po.TaskID; _entity.CommandType = "A"; _entity.Domain = _po.Domain; @@ -1262,7 +1223,7 @@ namespace CK.SCP.Controller scpRcvDetail.Site = detail.Domain; scpRcvDetail.Currency = detail.Currency; scpRcvDetail.Currencyamount = detail.Currencyamount; - + scpRcvDetail.ExchangeRateType = detail.Exchangeratetype; scpRcvDetail.WorkOrderID = detail.WorkOrderID; scpRcvDetail.POSite = detail.Posite; @@ -1365,9 +1326,9 @@ namespace CK.SCP.Controller p => p.RecvBillNum == detail.ReceiveNbr && p.PoBillNum == detail.PurchaseOrder && p.PoLine == detail.Line && - p.PartCode == detail.PartCode - - && p.SubSite==detail.Site + p.PartCode == detail.PartCode + + && p.SubSite == detail.Site ); if (scpRcvDetail == null) { @@ -1390,7 +1351,7 @@ namespace CK.SCP.Controller scpRcvDetail.VendBatch = detail.SupplierLot;//供应商批号 scpRcvDetail.PoUnit = detail.Um;//采购单位 scpRcvDetail.LocUnit = detail.logisticsUm;//物流单位 - //收货总量 //DockCode = ?,//收货口 + //收货总量 //DockCode = ?,//收货口 scpRcvDetail.State = 1;// (int)FormState.关闭, scpRcvDetail.Remark = detail.Remark; scpRcvDetail.CreateTime = detail.CreateTime == null ? DateTime.Now : (DateTime)detail.CreateTime;//创建日期 @@ -1402,7 +1363,7 @@ namespace CK.SCP.Controller scpRcvDetail.Site = detail.Domain; scpRcvDetail.Currency = detail.Currency; scpRcvDetail.Currencyamount = detail.Currencyamount; - scpRcvDetail.ExchangeRate = detail.Exchangerate==null?"1":detail.Exchangerate.Value.ToString(); + scpRcvDetail.ExchangeRate = detail.Exchangerate == null ? "1" : detail.Exchangerate.Value.ToString(); scpRcvDetail.ExchangeRate1 = detail.Exchangerate2 == null ? "1" : detail.Exchangerate2.Value.ToString(); scpRcvDetail.ExchangeRateType = detail.Exchangeratetype; scpRcvDetail.WorkOrderID = detail.WorkOrderID; @@ -1422,7 +1383,7 @@ namespace CK.SCP.Controller } scpRcvDetail.Qty = detail.ReceiveQuantity; } - // var _str=JsonHelper.GetJson>(scpRcveDetailList); + // var _str=JsonHelper.GetJson>(scpRcveDetailList); scpdb.TB_RECEIVE_DETAIL.AddOrUpdate(scpRcveDetailList.ToArray()); _ret.State = ReturnStatus.Succeed; _ret.MessageList.Add(string.Format("QAD收货单更新{0}任务编号{1}", _reciveDetailList.Count().ToString(), p_entity.TaskID)); @@ -1500,7 +1461,7 @@ namespace CK.SCP.Controller if (!string.IsNullOrEmpty(detail.ASN)) { - var _entity=scpdb.TB_ASN.Where(p => p.AsnBillNum == detail.ASN).FirstOrDefault(); + var _entity = scpdb.TB_ASN.Where(p => p.AsnBillNum == detail.ASN).FirstOrDefault(); if (_entity != null) { _entity.State = 4; @@ -1525,7 +1486,7 @@ namespace CK.SCP.Controller p.PoLine == detail.Line && p.PartCode == detail.PartCode && p.Batch == detail.Lot - &&p.SubSite==detail.Site + && p.SubSite == detail.Site ); if (scpRcvDetail == null) { @@ -1608,7 +1569,7 @@ namespace CK.SCP.Controller ResultObject _ret = new ResultObject(); List _mstList = new List(); List _detList = new List(); - // List _addList = new List(); + // List _addList = new List(); try { if (p_invoiceList.FirstOrDefault() != null) @@ -1623,13 +1584,13 @@ namespace CK.SCP.Controller _invMast.InvoiceReference = _vinvoice.InvoiceNum; _invMast.CreateInvoice = true; _invMast.Supplier = _vinvoice.VendId.Trim(); - _invMast.SupplierName = _vinvoice.VendName.Trim(); + _invMast.SupplierName = _vinvoice.VendName.Trim(); _invMast.Rowid = Guid.NewGuid().ToString(); _invMast.InvoiceIsTaxable = true; _invMast.InvoiceHoldAmountTC = _vinvoice.Amount.Value; _invMast.InvoiceVoucher = 0; _invMast.InvoiceRegistrationNbr = 1000; - _invMast.PostingDate = _vinvoice.PostingDate==null?DateTime.Now:_vinvoice.PostingDate.Value; + _invMast.PostingDate = _vinvoice.PostingDate == null ? DateTime.Now : _vinvoice.PostingDate.Value; _invMast.Currency = "CNY"; _invMast.InvoiceDate = _vinvoice.UpdateTime == null ? DateTime.Now : _vinvoice.UpdateTime.Value; _invMast.GUID = Guid.NewGuid(); @@ -1638,7 +1599,7 @@ namespace CK.SCP.Controller _invMast.PaymentCondCode = "90"; _invMast.InvoiceDueDate = _invMast.InvoiceDate.AddDays(int.Parse(_invMast.PaymentCondCode)); _invMast.InvoiceIsStatusFinal = true; - _invMast.InvoicePostingYear = _vinvoice.PostingDate==null?DateTime.Now.Year: _vinvoice.PostingDate.Value.Year; + _invMast.InvoicePostingYear = _vinvoice.PostingDate == null ? DateTime.Now.Year : _vinvoice.PostingDate.Value.Year; _invMast.APMatchingIsStatusFinal = true; _invMast.InvoiceRemark = _vinvoice.InvcBillNum;//发票编号 _invMast.CreateWithAmountIsTax = true; @@ -1661,14 +1622,14 @@ namespace CK.SCP.Controller _mstList.Add(_invMast); #endregion #region 发票差异 - if ((_vinvoice.ContractPrice != null && _vinvoice.ContractPrice.Value != 0) ) + if ((_vinvoice.ContractPrice != null && _vinvoice.ContractPrice.Value != 0)) { _invMast.InvoiceHoldAmountTC = _vinvoice.Amount.Value + _vinvoice.ContractPrice.Value; - + //_add.VatDebitCC = _vinvoice.ContractPrice.Value;//折扣 //_add.VatDebitLC = _vinvoice.BlancePrice.Value;//税额调整 //_add.VatDebitTC = _vinvoice.ContractPrice.Value; - // _addList.Add(_add); + // _addList.Add(_add); } if ((_vinvoice.BlancePrice != null && _vinvoice.BlancePrice.Value != 0)) { @@ -1682,12 +1643,12 @@ namespace CK.SCP.Controller var _invDetail = JsonConvert.DeserializeObject(detail.Extend2); _entity.CommandType = "A"; _entity.GUID = _invDetail.GUID; - _entity.Status =_invMast.Status; + _entity.Status = _invMast.Status; _entity.PurchaseOrder = _invDetail.PoBillNum; _entity.Line = _invDetail.PoLineNum; _entity.ReceiveNbr = _invDetail.RecvBillNum; _entity.MatchQuantity = _invDetail.Qty; - _entity.MatchPrice = _invDetail.Price + ((_invDetail.BlancePrice==null)?0: _invDetail.BlancePrice.Value); + _entity.MatchPrice = _invDetail.Price + ((_invDetail.BlancePrice == null) ? 0 : _invDetail.BlancePrice.Value); _entity.IsPvodFinished = true; _entity.UsageDate = DateTime.Now; _entity.IsRecalculateTaxes = true; @@ -1698,8 +1659,8 @@ namespace CK.SCP.Controller _entity.TaskID = p_taskId; _entity.CommandType = "A"; _entity.DataID = Guid.NewGuid(); - _entity.Domain = _invDetail.Site.Trim(); - _entity.Site = _invDetail.SubSite.Trim(); + _entity.Domain = _invDetail.Site.Trim(); + _entity.Site = _invDetail.SubSite.Trim(); _entity.PartCode = _invDetail.PartCode; _entity.Tax = _invDetail.Tax.ToString(); _detList.Add(_entity); @@ -1724,11 +1685,11 @@ namespace CK.SCP.Controller db.TED_INVOICE_DET.AddOrUpdate(_detList.ToArray()); //db.TED_INVOICE_ADD.AddOrUpdate(_addList.ToArray()); - var str=JsonHelper.GetJson(_mstList.ToArray()); - var str1=JsonHelper.GetJson(_detList.ToArray()); + var str = JsonHelper.GetJson(_mstList.ToArray()); + var str1 = JsonHelper.GetJson(_detList.ToArray()); _ret.State = ReturnStatus.Succeed; - _ret.Result = new LogModel() { LogMessage = string.Format("成功发布发票信息{0}条",_detList.Count), LogTime = DateTime.Now.ToString(), TaskId = p_taskId.ToString(), TableName = "TED_INVOICE_MSTR" }; + _ret.Result = new LogModel() { LogMessage = string.Format("成功发布发票信息{0}条", _detList.Count), LogTime = DateTime.Now.ToString(), TaskId = p_taskId.ToString(), TableName = "TED_INVOICE_MSTR" }; } catch (Exception e) @@ -1737,7 +1698,7 @@ namespace CK.SCP.Controller LogHelper.Writlog(LogHelper.LogType.Error, typeof(TEA_TASK_SUB), "UpdateInvoice", e.Message); _ret.Result = new LogModel() { LogMessage = "发布发票信息失败", LogTime = DateTime.Now.ToString(), TaskId = p_taskId.ToString(), TableName = "TED_INVOICE_MSTR" }; ; _ret.ErrorList.Add(e); - + throw e; } return _ret; @@ -1809,7 +1770,7 @@ namespace CK.SCP.Controller public static ResultObject UpdateReturn(ExchangeCenterContext db, ScpEntities scpdb, TEA_TASK_SUB p_entity) { - ResultObject _ret = new ResultObject(); + ResultObject _ret = new ResultObject(); try { var _reciveList = db.TED_RETURN_MSTR.Where(p => p.TaskID == p_entity.TaskID && !string.IsNullOrEmpty(p.ReturnNbr)).ToList(); @@ -1865,7 +1826,7 @@ namespace CK.SCP.Controller if (!string.IsNullOrEmpty(detail.ASN)) { - var _entity=scpdb.TB_ASN.Where(p => p.AsnBillNum == detail.ASN).FirstOrDefault(); + var _entity = scpdb.TB_ASN.Where(p => p.AsnBillNum == detail.ASN).FirstOrDefault(); if (_entity != null) { _entity.State = 4; @@ -1879,7 +1840,7 @@ namespace CK.SCP.Controller } var scpRcveDetailList = new List(); - var _reciveDetailList = db.TED_RETURN_DET.Where(p => p.TaskID == p_entity.TaskID ).ToList(); + var _reciveDetailList = db.TED_RETURN_DET.Where(p => p.TaskID == p_entity.TaskID).ToList(); var _recive = db.TED_RETURN_MSTR.Where(p => p.TaskID == p_entity.TaskID && !string.IsNullOrEmpty(p.ReturnNbr)).FirstOrDefault(); if (_recive != null) { @@ -1981,7 +1942,7 @@ namespace CK.SCP.Controller PoDetail.PlanQty = detail.Qty;//订货数量-采购量 PoDetail.PoUnit = detail.PoUm;//采购单位 PoDetail.LocUnit = detail.LocUm;//存储单位 - PoDetail.Price = ScpCache.Config.项目名称 == ProjectName.重庆北汽模塑.ToString()? 0 : detail.Price; + PoDetail.Price = ScpCache.Config.项目名称 == ProjectName.重庆北汽模塑.ToString() ? 0 : detail.Price; PoDetail.Currency = detail.Currency;//币种 PoDetail.PackQty = detail.PackQty;//标包数量 PoDetail.UnConv = detail.Conv;//转换率 @@ -2032,7 +1993,7 @@ namespace CK.SCP.Controller CreateTime = po.CreateTime == null ? DateTime.Now : (DateTime)po.CreateTime,//创建日期 CreateUser = po.CreateUser,//创建用户 IsDeleted = false, - GUID =po.TaskID, + GUID = po.TaskID, BeginTime = po.OrderDate == null ? DateTime.Now : po.OrderDate,//创建日期 EndTime = po.DueDate//收货结束时间 }; @@ -2061,7 +2022,7 @@ namespace CK.SCP.Controller return _ret; } - + @@ -2079,12 +2040,13 @@ namespace CK.SCP.Controller _dic.Add("CQBMPT", "CQ01"); _dic.Add("ZZBMPT", "ZZ01"); _dic.Add("HFBMPT", "HF01"); + _dic.Add("CDBMPT", "CD01"); ResultObject _ret = new ResultObject(); try - { + { var _venderlist = new List(); foreach (var supplier in p_list) - { + { foreach (var item in _dic) { var _supplier = scpdb.TA_VENDER.FirstOrDefault(p => p.VendId == supplier.SupplierCode && p.Site == item.Key); @@ -2098,7 +2060,7 @@ namespace CK.SCP.Controller }; } _supplier.VendName = string.IsNullOrEmpty(supplier.SupplierName) ? supplier.SupplierName : supplier.SupplierName; - + _supplier.SubSite = item.Value;//地点 _supplier.Site = item.Key;//域 _supplier.Remark = supplier.TaskID.ToString();//任务ID @@ -2139,7 +2101,7 @@ namespace CK.SCP.Controller _venderlist.Add(_supplier); } } - scpdb.TA_VENDER.AddOrUpdate(_venderlist.ToArray()); + scpdb.TA_VENDER.AddOrUpdate(q => q.UID, _venderlist.ToArray()); _ret.State = ReturnStatus.Succeed; _ret.MessageList.Add(string.Format("更新表{0}任务ID{1}成功!", "TES_SUPPLIER", p_entity.TaskID)); } @@ -2157,7 +2119,7 @@ namespace CK.SCP.Controller - private static void UpdateSupplierExtend(List p_vendList ) + private static void UpdateSupplierExtend(List p_vendList) { var _ls = new List(); using (var db = EntitiesFactory.CreateAppBoxInstance()) @@ -2166,26 +2128,43 @@ namespace CK.SCP.Controller { try { - var vendname = string.Format("{0}@{1}", qadData.SupplierCode.ToUpper(), qadData.Domain.ToUpper()); - var _first = db.Users.Where(p => p.Name == vendname).FirstOrDefault(); + //var vendname = string.Format("{0}@{1}", qadData.SupplierCode.ToUpper(), qadData.Domain.ToUpper()); + string vendtoup = qadData.SupplierCode.ToUpper(); + var _first = db.Users.Where(p => p.Name.Contains(vendtoup)).ToList(); if (_first != null) - { - var _ef = db.VenderUsers.FirstOrDefault(p => p.VenderId == qadData.SupplierCode && p.UserId == _first.ID) ?? new VenderUsers() +{ + foreach (var item in _first) { - UserId = _first.ID, - VenderId = qadData.SupplierCode.ToUpper() - }; - _ls.Add(_ef); + var count = db.VenderUsers.Count(p => p.VenderId == qadData.SupplierCode && p.UserId == item.ID); + if (count == 0) + { + var _ef = new VenderUsers() + { + UserId = item.ID, + VenderId = qadData.SupplierCode.ToUpper() + }; + _ls.Add(_ef); + } + else + { + var _ef = db.VenderUsers.FirstOrDefault(p => p.VenderId == qadData.SupplierCode && p.UserId == item.ID); + _ef.UserId = item.ID; + _ef.VenderId = qadData.SupplierCode.ToUpper(); + _ls.Add(_ef); + } + } + } } - catch + catch(Exception EX) { + throw EX; } - db.VenderUsers.AddOrUpdate(_ls.ToArray()); + db.VenderUsers.AddOrUpdate(q=>q.Id,_ls.ToArray()); + db.BulkSaveChanges(); } } } - /// /// 更新供应商零件 /// @@ -2204,7 +2183,7 @@ namespace CK.SCP.Controller decimal _packqty = 1; foreach (var supplierpart in _supplierpartlist) { - var _supplierpart = scpdb.TA_VEND_PART.SingleOrDefault(p => p.VendId == supplierpart.Supplier && p.PartCode == supplierpart.PartCode && p.VendPartCode == supplierpart.SupplierPart && p.Site == supplierpart.Domain ); + var _supplierpart = scpdb.TA_VEND_PART.SingleOrDefault(p => p.VendId == supplierpart.Supplier && p.PartCode == supplierpart.PartCode && p.VendPartCode == supplierpart.SupplierPart && p.Site == supplierpart.Domain); if (_supplierpart == null) { var _pack = dc.TS_PACK.SingleOrDefault(p => p.PartCode == supplierpart.PartCode && p.Site == supplierpart.Domain && p.Site == supplierpart.Site); @@ -2262,14 +2241,14 @@ namespace CK.SCP.Controller ResultObject _ret = new ResultObject(); try { - var _partmstrlist = db.TES_PART_MSTR.Where(p => p.TaskID == p_entity.TaskID&&p.CommandType!="D").ToList(); - var _partmstrlistD = db.TES_PART_MSTR.Where(p => p.TaskID == p_entity.TaskID&&p.CommandType=="D").ToList(); + var _partmstrlist = db.TES_PART_MSTR.Where(p => p.TaskID == p_entity.TaskID && p.CommandType != "D").ToList(); + var _partmstrlistD = db.TES_PART_MSTR.Where(p => p.TaskID == p_entity.TaskID && p.CommandType == "D").ToList(); var _partlist = new List(); var _partlistD = new List(); foreach (var part in _partmstrlist) - { - var _part = scpdb.TA_PART.SingleOrDefault(p => p.PartCode == part.PartCode && p.Site == part.Domain ); - + { + var _part = scpdb.TA_PART.SingleOrDefault(p => p.PartCode == part.PartCode && p.Site == part.Domain); + if (_part == null) { _part = new TA_PART @@ -2279,14 +2258,14 @@ namespace CK.SCP.Controller }; } _part.PartDesc1 = part.Desc1; - _part.PartDesc2 = string.IsNullOrEmpty(part.Desc2)?string.Empty: part.Desc2; + _part.PartDesc2 = string.IsNullOrEmpty(part.Desc2) ? string.Empty : part.Desc2; if (!string.IsNullOrEmpty(part.Group)) { _part.ProjectId = part.Group; } else { - _part.ProjectId ="public"; + _part.ProjectId = "public"; } _part.Unit = !string.IsNullOrEmpty(part.Um) ? part.Um.ToUpper() : "EA"; @@ -2308,10 +2287,10 @@ namespace CK.SCP.Controller _part.PartGroup = "其他"; } } - _part.Qlevel = string.IsNullOrEmpty(part.Qgrade)?string.Empty: part.Qgrade; + _part.Qlevel = string.IsNullOrEmpty(part.Qgrade) ? string.Empty : part.Qgrade; _part.State = part.Status; - _part.Site = part.Domain; - // _part.SubSite = part.Site; + _part.Site = part.Domain; + // _part.SubSite = part.Site; _part.Remark = part.TaskID.ToString(); _partlist.Add(_part); } @@ -2326,15 +2305,15 @@ namespace CK.SCP.Controller } } } - - var str= JsonHelper.GetJson>(_partlist); + + var str = JsonHelper.GetJson>(_partlist); scpdb.TA_PART.AddOrUpdate(_partlist.ToArray()); if (_partlistD.Count() > 0) { scpdb.TA_PART.DeleteRangeByKey(_partlistD.ToArray()); } - + _ret.State = ReturnStatus.Succeed; _ret.MessageList.Add(string.Format("更新表{0}任务ID{1}成功!", "TES_PART_MSTR", p_entity.TaskID)); } @@ -2357,7 +2336,7 @@ namespace CK.SCP.Controller var _factorylist = db.TES_SITE.Where(p => p.TaskID == p_entity.TaskID).ToList(); var _appboxfactorylist = new List(); var _scpfactorylist = new List(); - foreach(var factory in _factorylist) + foreach (var factory in _factorylist) { var item1 = appscpdb.TA_FACTORY.SingleOrDefault(p => p.ErpDomain == factory.Domain && p.ErpSite == factory.Site); if (item1 == null) @@ -2369,7 +2348,7 @@ namespace CK.SCP.Controller GUID = Guid.NewGuid(), State = 1, CreateTime = DateTime.Now, - CreateUser= factory.CreateUser + CreateUser = factory.CreateUser }; } item1.FactoryId = factory.Domain; @@ -2424,14 +2403,14 @@ namespace CK.SCP.Controller return _ret; } - - public static ResultObject UpdateTES_PURCHASE_PRICE(List p_list, string domain, string site, string name, bool flag,int ConfirmState) + + public static ResultObject UpdateTES_PURCHASE_PRICE(List p_list, string domain, string site, string name, bool flag, int ConfirmState) { - + ResultObject _ret = new ResultObject(); - if (ConfirmState!=(int)PriceState.FConfirm) + if (ConfirmState != (int)PriceState.FConfirm) { _ret.State = ReturnStatus.Succeed; _ret.Result = true; @@ -2443,7 +2422,7 @@ namespace CK.SCP.Controller ExchangeCenterContext db = EntitiesFactory.CreateExchangeCenterInstance(); List _teslist = new List(); var _ls = scpdb.V_TB_PRICE.Where(p => p_list.Contains(p.UID)).ToList(); - + foreach (var _price in _ls) { Guid _taskguid = Guid.NewGuid(); @@ -2453,8 +2432,8 @@ namespace CK.SCP.Controller var _vend = _price.VendId.Trim(); var _partCode = _price.PartCode.Trim(); var _domain = _price.Site.Trim(); - var _site = _price.SubSite.Trim(); - _item.BillNum = (_vend + _site.Substring(1, 1) + _site.Substring(3, 1)).Trim(); + var _site = _price.SubSite.Trim(); + _item.BillNum = (_vend + _site.Substring(1, 1) + _site.Substring(3, 1)).Trim(); _item.InterfaceType = "Price"; if (_price.Extend2 == "是") { @@ -2463,19 +2442,19 @@ namespace CK.SCP.Controller else if (_price.Extend2 == "否") { _item.Batch = "No"; - } - _item.Qty = _price.Amt+_price.SharingPrice; + } + _item.Qty = _price.Amt + _price.SharingPrice; _item.Price = _price.Amt; _item.State = 1; - _item.ValidDate = DateTime.Now; - _item.ErpLineNum = 1; - _item.PartCode =_partCode;//零件编号 - _item.Domain = _domain;//域 - _item.Site = _site;//地点 - _item.Extend1 = _price.Remarks; - _item.CreateTime = Convert.ToDateTime(_price.StartTime);//开始时间 - _item.PutTime = Convert.ToDateTime(_price.EndTime);//结束时间 - _item.CreateOper = _price.Creator; + _item.ValidDate = DateTime.Now; + _item.ErpLineNum = 1; + _item.PartCode = _partCode;//零件编号 + _item.Domain = _domain;//域 + _item.Site = _site;//地点 + _item.Extend1 = _price.Remarks; + _item.CreateTime = Convert.ToDateTime(_price.StartTime);//开始时间 + _item.PutTime = Convert.ToDateTime(_price.EndTime);//结束时间 + _item.CreateOper = _price.Creator; _item.Currency = _price.Curr;//货币 var _first = scpdb.TA_PART.Where(itm => itm.PartCode == _partCode).FirstOrDefault(); if (_first != null) @@ -2487,23 +2466,23 @@ namespace CK.SCP.Controller _item.PoUnit = _price.Unit;//单位 } - if(_domain == "BJBMPT") + if (_domain == "BJBMPT") { - var po = scpdb.V_TB_PO_DETAIL.Count(p => p.PartCode == _partCode&&p.Site== "BJBMPT"&&p.VendId== _vend.Trim()); + var po = scpdb.V_TB_PO_DETAIL.Count(p => p.PartCode == _partCode && p.Site == "BJBMPT" && p.VendId == _vend.Trim()); if (po > 0) { var _list = scpdb.V_TB_PO_DETAIL.Where(p => p.PartCode == _partCode && p.Site == "BJBMPT" && p.VendId == _vend.Trim()).ToList(); - foreach(var b in _list) + foreach (var b in _list) { var PP = scpdb.TB_PO_DETAIL.FirstOrDefault(p => p.PartCode == b.PartCode && p.Site == "BJBMPT" && p.PoBillNum == b.PoBillNum); PP.Price = _item.Price; scpdb.TB_PO_DETAIL.AddOrUpdate(PP); } - - + + } - + } _teslist.Add(_item); @@ -2527,8 +2506,8 @@ namespace CK.SCP.Controller { _ret.State = ReturnStatus.Failed; _ret.Result = false; - _ret.Message =e.InnerException.Message; - } + _ret.Message = e.InnerException.Message; + } return _ret; } @@ -2536,14 +2515,14 @@ namespace CK.SCP.Controller { ResultObject _ret = new ResultObject(); - + try { ScpEntities scpdb = EntitiesFactory.CreateScpInstance(); ExchangeCenterContext db = EntitiesFactory.CreateExchangeCenterInstance(); List _teslist = new List(); var _ls = scpdb.V_TB_PRICE_TemporaryPrice.Where(p => p_list.Contains(p.UID)).ToList(); - + foreach (var _price in _ls) { Guid _taskguid = Guid.NewGuid(); @@ -2556,9 +2535,9 @@ namespace CK.SCP.Controller var _site = _price.SubSite.Trim(); _item.BillNum = (_vend + _site.Substring(1, 1) + _site.Substring(3, 1)).Trim(); _item.InterfaceType = "Price"; - - _item.Batch = "No"; - + + _item.Batch = "No"; + _item.Qty = _price.Amt + _price.SharingPrice; _item.Price = _price.Amt; _item.State = 1; @@ -2582,7 +2561,7 @@ namespace CK.SCP.Controller _item.PoUnit = _price.Unit;//单位 } - + _teslist.Add(_item); } @@ -2624,7 +2603,7 @@ namespace CK.SCP.Controller ScpEntities scpdb = EntitiesFactory.CreateScpInstance(); ExchangeCenterContext db = EntitiesFactory.CreateExchangeCenterInstance(); var OrderList = p_order_list.GroupBy(p => p.订单编号).ToList(); - string _polist = ""; + string _polist = ""; int _num = 1; OrderList.ForEach((p) => { @@ -2635,12 +2614,12 @@ namespace CK.SCP.Controller if (p_modtype == BillModType.Contract) { var _entity = list.FirstOrDefault(); - var _po = scpdb.TB_PO.SingleOrDefault(t => t.PoBillNum == _entity.订单编号/* && t.State == state*/ && t.Site == site && t.SubSite == subsite && t.VendId == _entity.供应商编号.ToUpper()); + var _po = scpdb.TB_PO.SingleOrDefault(t => t.PoBillNum == _entity.订单编号/* && t.State == state*/ && t.Site == site && t.SubSite == subsite && t.VendId == _entity.供应商编号.ToUpper()); if (_po == null) { _po = new TB_PO { GUID = Guid.NewGuid(), PoBillNum = _entity.订单编号.ToUpper(), State = (int)PoState.Open, Site = site, SubSite = subsite, VendId = _entity.供应商编号.Trim().ToUpper() }; } - _po.ErpBillNum = _entity.订单编号.Trim().ToUpper();; + _po.ErpBillNum = _entity.订单编号.Trim().ToUpper(); ; _po.ModType = (int)p_modtype; _po.Contacter = p_chineseName;// _entity.联系人; _po.Buyer = p_chineseName;// _entity.联系人; @@ -2655,17 +2634,17 @@ namespace CK.SCP.Controller _po.EndTime = string.IsNullOrEmpty(_entity.要求到货日期) ? DateTime.Now.AddYears(10) : DateTime.Parse(_entity.要求到货日期); _po.Pricelist = _entity.供应商编号.Trim().ToUpper() + subsite.Substring(1, 1) + subsite.Substring(3, 1); _po.Taxclass = _entity.税率; - _po.SubSite= subsite.Trim().ToUpper(); + _po.SubSite = subsite.Trim().ToUpper(); scpdb.TB_PO.AddOrUpdate(_po); list.ForEach((itm) => { - TB_PO_DETAIL _PO_Detail = new TB_PO_DETAIL(); + TB_PO_DETAIL _PO_Detail = new TB_PO_DETAIL(); _PO_Detail.Currency = "CNY"; _PO_Detail.PoBillNum = _po.PoBillNum; _PO_Detail.PartCode = itm.零件号.Trim(); var part = scpdb.TA_PART.FirstOrDefault(t => t.PartCode == itm.零件号.Trim() && t.Site == _po.Site); - _PO_Detail.PoLine =int.Parse(itm.行号); + _PO_Detail.PoLine = int.Parse(itm.行号); _PO_Detail.PoUnit = part.Unit; _PO_Detail.CreateTime = DateTime.Now; _PO_Detail.CreateUser = p_creator; @@ -2673,9 +2652,9 @@ namespace CK.SCP.Controller _PO_Detail.EndTime = string.IsNullOrEmpty(itm.要求到货日期) ? DateTime.Now.AddYears(10) : DateTime.Parse(itm.要求到货日期); _PO_Detail.PlanQty = decimal.Parse(itm.数量); _PO_Detail.IsDeleted = false; - _PO_Detail.LocUnit = part.Unit; + _PO_Detail.LocUnit = part.Unit; _PO_Detail.UnConv = 1; - _PO_Detail.State= (int)PoState.Open; + _PO_Detail.State = (int)PoState.Open; _PO_Detail.Remark = itm.备注; _PO_Detail.Price = string.IsNullOrEmpty(itm.单价) ? 0 : decimal.Parse(itm.单价); _PO_Detail.Workorderlot = string.IsNullOrEmpty(itm.加工单号) ? 0 : int.Parse(itm.加工单号); @@ -2690,8 +2669,8 @@ namespace CK.SCP.Controller _PO_Detail.Dliverypatterncode = itm.发货样式; _PO_Detail.Deliverytimecode = itm.发货时间样式; _PO_Detail.Transportdays = string.IsNullOrEmpty(itm.运输周期) ? 0 : int.Parse(itm.运输周期); - _PO_Detail.Site= site.Trim().ToUpper(); - _PO_Detail.SubSite = subsite.Trim().ToUpper(); + _PO_Detail.Site = site.Trim().ToUpper(); + _PO_Detail.SubSite = subsite.Trim().ToUpper(); TS_UNI_API Ts = new TS_UNI_API(); Ts.InterfaceType = "PO"; Ts.TableName = "TS_UNI_API"; @@ -2717,13 +2696,13 @@ namespace CK.SCP.Controller Ts.Domain = site.Trim().ToUpper(); Ts.Extend1 = _entity.税率; Ts.Extend2 = _entity.备注; - Ts.CreateOper= _entity.采购员; - Ts.VendBatch= p_creator; + Ts.CreateOper = _entity.采购员; + Ts.VendBatch = p_creator; Ts.ErpLineNum = _PO_Detail.PoLine; if (_entity.订单类型.ToUpper() == "S") { Ts.ModType = _entity.订单类型.ToUpper(); - } + } scpdb.TB_PO_DETAIL.AddOrUpdate(_PO_Detail); scpdb.TS_UNI_API.Add(Ts); }); @@ -2780,12 +2759,12 @@ namespace CK.SCP.Controller int _number = 1; list.ForEach((itm) => { - + TB_PO_DETAIL _PO_Detail = new TB_PO_DETAIL(); _PO_Detail.GUID = Guid.NewGuid(); _PO_Detail.PartCode = itm.零件号.Trim().ToUpper(); var part = scpdb.TA_PART.FirstOrDefault(t => t.PartCode == itm.零件号.Trim() && t.Site == _po.Site); - _PO_Detail.PoLine = _number; + _PO_Detail.PoLine = _number; _PO_Detail.PoBillNum = _po.PoBillNum; _PO_Detail.State = (int)PoState.Open; _PO_Detail.Site = site.Trim().ToUpper(); @@ -2820,7 +2799,7 @@ namespace CK.SCP.Controller _tDetail.Remark = itm.备注; _tDetail.PoBillNum = _po.PoBillNum; _tDetail.AskBillNum = _ask.AskBillNum; - _tDetail.PoLine = _number; + _tDetail.PoLine = _number; _tDetail.PoUnit = part.Unit; _tDetail.CreateTime = DateTime.Now; _tDetail.CreateUser = p_creator; @@ -2839,7 +2818,7 @@ namespace CK.SCP.Controller _tDetail.Price = Decimal.Parse(itm.单价); _tDetail.GUID = Guid.NewGuid(); _tDetail.Currency = itm.币种; - + TS_UNI_API Ts = new TS_UNI_API(); Ts.InterfaceType = "PO"; Ts.TableName = "TS_UNI_API"; @@ -2856,7 +2835,7 @@ namespace CK.SCP.Controller Ts.VendId = _entity.供应商编号.Trim().ToUpper(); Ts.PoUnit = part.Unit; Ts.LocUnit = part.Unit; - Ts.ValidDate = string.IsNullOrEmpty(_entity.订单截至日期) ? DateTime.Now.AddYears(10) : DateTime.Parse(_entity.订单截至日期); + Ts.ValidDate = string.IsNullOrEmpty(_entity.订单截至日期) ? DateTime.Now.AddYears(10) : DateTime.Parse(_entity.订单截至日期); Ts.Buyer = _entity.采购员; Ts.BuyerPhone = _entity.采购员电话; Ts.Price = _tDetail.Price; @@ -2866,7 +2845,7 @@ namespace CK.SCP.Controller Ts.Extend2 = _entity.备注; Ts.CreateOper = _entity.采购员; Ts.VendBatch = p_creator; - Ts.ErpBillNum= _po.PoBillNum; + Ts.ErpBillNum = _po.PoBillNum; Ts.ErpLineNum = _PO_Detail.PoLine; if (!string.IsNullOrEmpty(_entity.订单类型)) { @@ -2875,7 +2854,7 @@ namespace CK.SCP.Controller Ts.ModType = _entity.订单类型.ToUpper(); } } - + scpdb.TB_ASK_DETAIL.Add(_tDetail); scpdb.TB_PO_DETAIL.AddOrUpdate(_PO_Detail); scpdb.TS_UNI_API.Add(Ts); @@ -2905,7 +2884,7 @@ namespace CK.SCP.Controller scope.Complete(); _ret.State = ReturnStatus.Succeed; _ret.Result = true; - _ret.Message= _polist; + _ret.Message = _polist; } catch (Exception e) @@ -2913,7 +2892,7 @@ namespace CK.SCP.Controller _ret.State = ReturnStatus.Failed; LogHelper.Writlog(LogHelper.LogType.Error, typeof(TEA_TASK_SUB), "InsterPo", e.Message); _ret.Result = false; - _ret.Message = e.InnerException != null? e.Message+ e.InnerException.Message:e.Message; + _ret.Message = e.InnerException != null ? e.Message + e.InnerException.Message : e.Message; scope.Dispose(); } @@ -2956,7 +2935,7 @@ namespace CK.SCP.Controller _po.Contacter = p_chineseName;// _entity.联系人; _po.Buyer = p_chineseName;// _entity.联系人; _po.Site = site.Trim().ToUpper(); - _po.State= (int)PoState.Open; + _po.State = (int)PoState.Open; _po.BuyerPhone = p_buyerPhone; _po.Remark = _entity.备注; _po.IsDeleted = false; @@ -2975,7 +2954,7 @@ namespace CK.SCP.Controller _PO_Detail.Currency = "CNY"; _PO_Detail.PoBillNum = _po.PoBillNum; _PO_Detail.PartCode = itm.零件号.Trim(); - var part = scpdb.TA_PART.FirstOrDefault(t=>t.PartCode== itm.零件号.Trim()&&t.Site==_po.Site); + var part = scpdb.TA_PART.FirstOrDefault(t => t.PartCode == itm.零件号.Trim() && t.Site == _po.Site); _PO_Detail.PoLine = int.Parse(itm.行号); _PO_Detail.PoUnit = part.Unit; _PO_Detail.CreateTime = DateTime.Now; @@ -2984,7 +2963,7 @@ namespace CK.SCP.Controller _PO_Detail.EndTime = string.IsNullOrEmpty(itm.要求到货日期) ? DateTime.Now.AddYears(10) : DateTime.Parse(itm.要求到货日期); _PO_Detail.PlanQty = decimal.Parse(itm.数量); _PO_Detail.IsDeleted = false; - _PO_Detail.LocUnit = part.Unit; + _PO_Detail.LocUnit = part.Unit; _PO_Detail.UnConv = 1; _PO_Detail.Remark = itm.备注; _PO_Detail.Price = string.IsNullOrEmpty(itm.单价) ? 0 : decimal.Parse(itm.单价); @@ -3000,7 +2979,7 @@ namespace CK.SCP.Controller _PO_Detail.Dliverypatterncode = itm.发货样式; _PO_Detail.Deliverytimecode = itm.发货时间样式; _PO_Detail.Transportdays = string.IsNullOrEmpty(itm.运输周期) ? 0 : int.Parse(itm.运输周期); - _PO_Detail.Site = site.Trim().ToUpper(); + _PO_Detail.Site = site.Trim().ToUpper(); _PO_Detail.State = (int)PoState.Open; _PO_Detail.SubSite = subsite.Trim().ToUpper(); TS_UNI_API Ts = new TS_UNI_API(); @@ -3010,7 +2989,7 @@ namespace CK.SCP.Controller Ts.BillType = 702; Ts.SubBillType = 1; Ts.BillNum = _entity.订单编号.Trim().ToUpper(); - Ts.PartCode = _PO_Detail.PartCode.Trim(); + Ts.PartCode = _PO_Detail.PartCode.Trim(); Ts.Qty = decimal.Parse(_entity.数量); Ts.State = 1; Ts.CreateOper = _entity.联系人; @@ -3039,11 +3018,11 @@ namespace CK.SCP.Controller #endregion #region 离散单 (离散单只增加不修改) if (p_modtype == BillModType.Non_Contract) - { + { var _entity = list.FirstOrDefault(); TB_PO _po = new TB_PO(); - _po.GUID = Guid.NewGuid(); - _po.PoBillNum = SCP_BILLCODE_CONTROLLER.MakePoNum(_num); + _po.GUID = Guid.NewGuid(); + _po.PoBillNum = SCP_BILLCODE_CONTROLLER.MakePoNum(_num); _po.State = (int)PoState.Open; _po.Site = site.Trim().ToUpper(); _po.SubSite = subsite.Trim().ToUpper(); @@ -3062,7 +3041,7 @@ namespace CK.SCP.Controller _po.EndTime = string.IsNullOrEmpty(_entity.要求到货日期) ? DateTime.Now.AddYears(10) : DateTime.Parse(_entity.要求到货日期); _po.Pricelist = _entity.供应商编号.ToUpper() + subsite.Substring(1, 1) + subsite.Substring(3, 1); _po.Taxclass = _entity.税率; - scpdb.TB_PO.AddOrUpdate(_po); + scpdb.TB_PO.AddOrUpdate(_po); int _number = 1; list.ForEach((itm) => @@ -3131,7 +3110,7 @@ namespace CK.SCP.Controller Ts.CreateOper = _entity.采购员; Ts.VendBatch = p_creator; Ts.ErpBillNum = _po.PoBillNum.Trim(); - Ts.ErpLineNum = _number; + Ts.ErpLineNum = _number; scpdb.TB_PO_DETAIL.AddOrUpdate(_PO_Detail); scpdb.TS_UNI_API.Add(Ts); _number++; @@ -3544,7 +3523,7 @@ namespace CK.SCP.Controller }); } - var ret = CREATE_TEA_TASK_SUB(db, true ,new TEA_TASK_SUB() + var ret = CREATE_TEA_TASK_SUB(db, true, new TEA_TASK_SUB() { DataCount = 1, TaskID = taskid, @@ -3580,25 +3559,25 @@ namespace CK.SCP.Controller return _ret; } - public static ResultObject UpdatePo(List p_po_list, string site, string p_creator, DateTime p_time, string subsite) + public static ResultObject UpdatePo(List p_po_list, string site, string p_creator, DateTime p_time, string subsite) { ScpEntities scpdb = EntitiesFactory.CreateScpInstance(); ExchangeCenterContext db = EntitiesFactory.CreateExchangeCenterInstance(); ResultObject _ret = new ResultObject(); try { - foreach(var _num in p_po_list) + foreach (var _num in p_po_list) { Guid taskid = Guid.NewGuid(); TED_PO_MSTR item = new TED_PO_MSTR(); - + var _mstr = scpdb.TB_PO.FirstOrDefault(t => t.PoBillNum == _num && t.State == (int)PoState.Open); - if (_mstr!= null) + if (_mstr != null) { - // var uid = oldpolist.Select(p => p.UID).Max(); - // var _mstr = db.TED_PO_MSTR.FirstOrDefault(t => t.UID == uid); + // var uid = oldpolist.Select(p => p.UID).Max(); + // var _mstr = db.TED_PO_MSTR.FirstOrDefault(t => t.UID == uid); - var oldpodetaillist = scpdb.TB_PO_DETAIL.Where(q => q.PoBillNum == _num && q.State == (int)PoState.Open).ToList() ; + var oldpodetaillist = scpdb.TB_PO_DETAIL.Where(q => q.PoBillNum == _num && q.State == (int)PoState.Open).ToList(); item.CommandType = "U"; item.GUID = Guid.NewGuid(); item.DataID = _mstr.GUID; @@ -3612,15 +3591,15 @@ namespace CK.SCP.Controller item.OrderDate = _mstr.CreateTime;//订单日期 item.DueDate = Convert.ToDateTime(_mstr.EndTime); item.StartDate = _mstr.CreateTime;//订单日期 - item.EndDate =Convert.ToDateTime( _mstr.EndTime); + item.EndDate = Convert.ToDateTime(_mstr.EndTime); item.MadeIn = ""; item.Confirm = true; item.Buyer = _mstr.Buyer; item.BuyerPhone = _mstr.BuyerPhone; - item.ScheduledOrder = _mstr.ModType==1?true:false; + item.ScheduledOrder = _mstr.ModType == 1 ? true : false; item.CreateUser = _mstr.CreateUser; item.CreateTime = _mstr.CreateTime; - item.Remark = "订单关闭" ; + item.Remark = "订单关闭"; item.Domain = _mstr.Site; item.ModeType = _mstr.ModType.ToString(); item.Site = _mstr.SubSite; @@ -3684,7 +3663,7 @@ namespace CK.SCP.Controller }); } - } + } } catch (Exception e) { @@ -3730,10 +3709,11 @@ namespace CK.SCP.Controller b_ASN.Reason = asn.Reason; b_ASN.State = (int)AskState.Reject; b_ASN.IsDeleted = true; - List asn_details = scpdb.TB_ASN_DETAIL.Where(q => q.AsnBillNum == asn.BillNum).ToList(); + List asn_details = scpdb.TB_ASN_DETAIL.Where(q => q.AsnBillNum == asn.BillNum).ToList(); if (asn_details != null) { - asn_details.ForEach(itm => { + asn_details.ForEach(itm => + { itm.IsDeleted = true; itm.State = (int)AskState.Reject; }); diff --git a/北京北汽/Controller/SCP_PO_CONTROLLER.cs b/北京北汽/Controller/SCP_PO_CONTROLLER.cs index febbc68..5cbce98 100644 --- a/北京北汽/Controller/SCP_PO_CONTROLLER.cs +++ b/北京北汽/Controller/SCP_PO_CONTROLLER.cs @@ -4120,7 +4120,7 @@ namespace CK.SCP.Controller _PO_Detail.Scheduledays = string.IsNullOrEmpty(itm.日程天数) ? 7 : int.Parse(itm.日程天数); _PO_Detail.Scheduleweeks = string.IsNullOrEmpty(itm.日程周数) ? 2 : int.Parse(itm.日程周数); _PO_Detail.Schedulemonth = string.IsNullOrEmpty(itm.日程月数) ? 1 : int.Parse(itm.日程月数); - _PO_Detail.Supplieritem = itm.供应商零件.ToUpper(); + _PO_Detail.Supplieritem =string.IsNullOrEmpty(itm.供应商零件)? itm.供应商零件 :itm.供应商零件.ToUpper(); _PO_Detail.Dliverypatterncode = itm.发货样式; _PO_Detail.Deliverytimecode = itm.发货时间样式; _PO_Detail.Transportdays = string.IsNullOrEmpty(itm.运输周期) ? 0 : int.Parse(itm.运输周期); @@ -4180,7 +4180,7 @@ namespace CK.SCP.Controller { TB_PO_DETAIL _PO_Detail = new TB_PO_DETAIL(); _PO_Detail.GUID = Guid.NewGuid(); - _PO_Detail.PartCode = itm.零件号.Trim().ToUpper(); + _PO_Detail.PartCode = string.IsNullOrEmpty(itm.零件号) ? itm.零件号 : itm.零件号.Trim().ToUpper(); _PO_Detail.PoLine = _number; _PO_Detail.PoBillNum = _po.PoBillNum; _PO_Detail.State = (int)PoState.Open; @@ -4219,7 +4219,7 @@ namespace CK.SCP.Controller _tDetail.PoUnit = itm.单位; _tDetail.CreateTime = DateTime.Now; _tDetail.CreateUser = p_creator; - _tDetail.PartCode = itm.零件号.Trim().ToUpper(); + _tDetail.PartCode = string.IsNullOrEmpty(itm.零件号) ? itm.零件号 : itm.零件号.Trim().ToUpper(); _tDetail.ReceivedPort = ""; _tDetail.BeginTime = p_time; _tDetail.EndTime = Convert.ToDateTime(itm.要求到货日期); diff --git a/北京北汽/Controller/SCP_TA_LANGUAGE_CONTROLLER.cs b/北京北汽/Controller/SCP_TA_LANGUAGE_CONTROLLER.cs index 5bea1a4..c5d9f51 100644 --- a/北京北汽/Controller/SCP_TA_LANGUAGE_CONTROLLER.cs +++ b/北京北汽/Controller/SCP_TA_LANGUAGE_CONTROLLER.cs @@ -124,6 +124,13 @@ namespace CK.SCP.Controller return _ret; } + /// + /// 导入收货信息管理(重庆专用) + /// + /// 导入信息 + /// 当前登录地点 + /// 创建人 + /// public static ResultObject EXCEL_ADRESS_LIST_CQ(List p_order_list, string site, string p_creator) { ResultObject _ret = new ResultObject(); @@ -131,7 +138,6 @@ namespace CK.SCP.Controller { using (ScpEntities db = EntitiesFactory.CreateScpInstance()) { - int number = 1; List lineError = new List(); List ErrorList = new List(); var _lst = p_order_list; @@ -157,20 +163,20 @@ namespace CK.SCP.Controller _lst.ForEach(p => { - var _Sitelist = db.TB_ADDRESS.Count(t => t.Address == p.收货地址); + var _Sitelist = db.TB_ADDRESS.Count(t => t.Address == p.收货地址 && t.SubSite == site); if (_Sitelist == 0) { - TB_ADDRESS Price = new TB_ADDRESS(); - Price.Address = p.收货地址; - Price.NamePone = p.收货人信息; - - db.TB_ADDRESS.AddOrUpdate(Price); + TB_ADDRESS address = new TB_ADDRESS(); + address.Address = p.收货地址; + address.NamePone = p.收货人信息; + address.SubSite = site; + db.TB_ADDRESS.AddOrUpdate(address); } else if (_Sitelist == 1) { - var _PAlist = db.TB_ADDRESS.SingleOrDefault(t => t.Address == p.收货地址); - _PAlist.NamePone = p.收货人信息; - db.TB_ADDRESS.AddOrUpdate(_PAlist); + TB_ADDRESS tB_address = db.TB_ADDRESS.SingleOrDefault(t => t.Address == p.收货地址 && t.SubSite == site); + tB_address.NamePone = p.收货人信息; + db.TB_ADDRESS.AddOrUpdate(tB_address); } }); diff --git a/北京北汽/Controller/SCP_TB_ADDRESS_BUYER_CONTROLLER.cs b/北京北汽/Controller/SCP_TB_ADDRESS_BUYER_CONTROLLER.cs index e9e56d2..bf6c06f 100644 --- a/北京北汽/Controller/SCP_TB_ADDRESS_BUYER_CONTROLLER.cs +++ b/北京北汽/Controller/SCP_TB_ADDRESS_BUYER_CONTROLLER.cs @@ -26,7 +26,7 @@ namespace CK.SCP.Controller /// /// 采购 /// - public static void GetTbAddressBuyerList(string Buyer, Action>> p_action) + public static void GetTbAddressBuyerList(string Buyer,string SubSite, Action>> p_action) { ResultObject> _ret = new ResultObject>(); try @@ -38,6 +38,10 @@ namespace CK.SCP.Controller { q = q.Where(p => p.Buyer.Contains(Buyer)); } + if (!string.IsNullOrEmpty(SubSite)) + { + q = q.Where(p => p.SubSite == SubSite); + } _ret.State = ReturnStatus.Succeed; _ret.Result = q; p_action(_ret); @@ -63,7 +67,7 @@ namespace CK.SCP.Controller /// /// /// - public static ResultObject EXCEL_ADRESS_BUYER_LIST(List p_order_list, string p_creator) + public static ResultObject EXCEL_ADRESS_BUYER_LIST(List p_order_list,string SubSite, string p_creator) { ResultObject _ret = new ResultObject(); try @@ -88,7 +92,7 @@ namespace CK.SCP.Controller DateTime time = DateTime.Now; _lst.ForEach(p => { - var _Sitelist = db.TB_ADDRESS_BUYER.Count(t => t.Buyer == p.采购人); + var _Sitelist = db.TB_ADDRESS_BUYER.Count(t => t.Buyer == p.采购人 && t.SubSite == SubSite); if (_Sitelist == 0) { TB_ADDRESS_BUYER buyer = new TB_ADDRESS_BUYER(); @@ -96,11 +100,12 @@ namespace CK.SCP.Controller buyer.Buyer = p.采购人; buyer.Creator = p_creator; buyer.CreateTime = time; + buyer.SubSite = SubSite; db.TB_ADDRESS_BUYER.Add(buyer); } else if (_Sitelist == 1) { - var buyer = db.TB_ADDRESS_BUYER.SingleOrDefault(t => t.Buyer == p.采购人); + var buyer = db.TB_ADDRESS_BUYER.SingleOrDefault(t => t.Buyer == p.采购人 && t.SubSite == SubSite); buyer.AddressUID = long.Parse(p.收货地址ID); buyer.UpdateTime = time; buyer.UpdateUser = p_creator; @@ -157,7 +162,6 @@ namespace CK.SCP.Controller using (AppBoxContext db = EntitiesFactory.CreateAppBoxInstance()) { List users = db.Users.ToList(); - //users = users.Where(q => q.Roles.Select(itm => itm.ID).Contains(8)).ToList(); userName = users.Select(q => q.Name).ToList(); } long ID; diff --git a/北京北汽/Controller/SCP_TB_PRICE_CONTROLLER.cs b/北京北汽/Controller/SCP_TB_PRICE_CONTROLLER.cs index 59838db..7101465 100644 --- a/北京北汽/Controller/SCP_TB_PRICE_CONTROLLER.cs +++ b/北京北汽/Controller/SCP_TB_PRICE_CONTROLLER.cs @@ -8,7 +8,6 @@ using System.Data.Entity.Core; using System.Data.Entity.Migrations; using System.Linq; using System.Text; -using System.Threading.Tasks; namespace CK.SCP.Controller { @@ -442,10 +441,10 @@ namespace CK.SCP.Controller //{ // q = q.Where(p => p_entity.UserInAddress.Contains(p.Site)); //} - if (p_entity.UserInSubSite != null && p_entity.UserInSubSite.Count > 0) - { - q = q.Where(p => p_entity.UserInSubSite.Contains(p.SubSite)); - } + //if (p_entity.UserInSubSite != null && p_entity.UserInSubSite.Count > 0) + //{ + // q = q.Where(p => p_entity.UserInSubSite.Contains(p.SubSite)); + //} if (p_entity.UserInVendIds != null && p_entity.UserInVendIds.Count > 0) { q = q.Where(p => p_entity.UserInVendIds.Contains(p.VendId)); diff --git a/北京北汽/Models/ScpEntity/TB_ADDRESS.cs b/北京北汽/Models/ScpEntity/TB_ADDRESS.cs index 3dce978..9b7d025 100644 --- a/北京北汽/Models/ScpEntity/TB_ADDRESS.cs +++ b/北京北汽/Models/ScpEntity/TB_ADDRESS.cs @@ -13,5 +13,9 @@ namespace CK.SCP.Models.ScpEntity public long UID { get; set; } public string Address { get; set; } public string NamePone { get; set; } + /// + /// 地点 + /// + public string SubSite { get; set; } } } diff --git a/北京北汽/Models/ScpEntity/TB_ADDRESS_BUYER.cs b/北京北汽/Models/ScpEntity/TB_ADDRESS_BUYER.cs index 374784f..b08e244 100644 --- a/北京北汽/Models/ScpEntity/TB_ADDRESS_BUYER.cs +++ b/北京北汽/Models/ScpEntity/TB_ADDRESS_BUYER.cs @@ -25,5 +25,6 @@ namespace CK.SCP.Models.ScpEntity public string UpdateUser { get; set; } public DateTime? UpdateTime { get; set; } + public string SubSite { get; set; } } } diff --git a/北京北汽/SCP/Views/BasicData/SCP_PRICE_TemporaryPrice.aspx.cs b/北京北汽/SCP/Views/BasicData/SCP_PRICE_TemporaryPrice.aspx.cs index 8cd4d7b..2625fbc 100644 --- a/北京北汽/SCP/Views/BasicData/SCP_PRICE_TemporaryPrice.aspx.cs +++ b/北京北汽/SCP/Views/BasicData/SCP_PRICE_TemporaryPrice.aspx.cs @@ -57,7 +57,7 @@ namespace SCP.Views.BasicData SearchV_TB_PRICEData((result) => { Grid1.RecordCount = result.Count(); - var list = SortAndPage(result, Grid1); + var list = SortAndPage(result, Grid1); Grid1.DataSource = list; Grid1.DataBind(); @@ -129,6 +129,10 @@ namespace SCP.Views.BasicData { _entity.SubSite = factoryList.SelectedValue; } + else + { + _entity.SubSite = CurrentUser.UserdSite; + } _entity.UserInAddress = CurrentUser.FactoryList; _entity.UserInVendIds = CurrentUser.VenderList; _entity.UserInSubSite = CurrentUser.SubSiteList; diff --git a/北京北汽/SCP/Views/BasicData/SCP_TB_Address.aspx.cs b/北京北汽/SCP/Views/BasicData/SCP_TB_Address.aspx.cs index 7e0d18f..8a5b413 100644 --- a/北京北汽/SCP/Views/BasicData/SCP_TB_Address.aspx.cs +++ b/北京北汽/SCP/Views/BasicData/SCP_TB_Address.aspx.cs @@ -54,38 +54,20 @@ namespace SCP.Views.BasicData { q = q.Where(p => p.Address.Contains(txtPartCode.Text)); } + if (!string.IsNullOrEmpty( CurrentUser.UserdSite)) + { + q = q.Where(p => p.SubSite == CurrentUser.UserdSite); + } // 排列和数据库分页 Grid1.RecordCount = q.Count(); - q = SortAndPage(q, Grid1); + q = SortAndPage(q, Grid1); var _list = q.ToList(); Grid1.DataSource = _list; Grid1.DataBind(); } - - //导出 - public void BtnOutPut_OnClick(object sender, EventArgs e) - { - - } - - protected void Button2_Click(object sender, EventArgs e) - { - PageContext.RegisterStartupScript(Window2.GetShowReference(string.Format("../BasicData/SCP_TB_Address_DETAIL.aspx?"))); - - } - - - //查询 - protected void btnSearch_OnClick(object sender, EventArgs e) - { - BindData(); - } - - - protected void Grid1_OnPageIndexChange(object sender, GridPageEventArgs e) { BindData(); @@ -126,8 +108,8 @@ namespace SCP.Views.BasicData Alert.Show("文件内容为空!"); return; } - var ret = SCP_TA_LANGUAGE_CONTROLLER.EXCEL_ADRESS_LIST_CQ(list, CurrentUser.FactoryList[0], CurrentUser.Name); - if (ret.State == ReturnStatus.Succeed && ret.Result == true) + var ret = SCP_TA_LANGUAGE_CONTROLLER.EXCEL_ADRESS_LIST_CQ(list, CurrentUser.UserdSite, CurrentUser.Name); + if (ret.State == ReturnStatus.Succeed && ret.Result) { Alert.Show("导入成功"); BindData(); diff --git a/北京北汽/SCP/Views/BasicData/SCP_TB_Address_Buyer.aspx.cs b/北京北汽/SCP/Views/BasicData/SCP_TB_Address_Buyer.aspx.cs index a565adf..c2dd029 100644 --- a/北京北汽/SCP/Views/BasicData/SCP_TB_Address_Buyer.aspx.cs +++ b/北京北汽/SCP/Views/BasicData/SCP_TB_Address_Buyer.aspx.cs @@ -51,14 +51,14 @@ namespace SCP.Views.BasicData { SearchADDRESS_BUYER(txtBuyer.Text, (rs) => { - var list1 = SortAndPage(rs, Grid1); + var list1 = SortAndPage(rs, Grid1); var count1 = list1.ToList().Count; if (count1 > 0) { var _ls1 = list1.ToList(); _ls1.ForEach(p => { - var address = SCPDB.TB_ADDRESS.Where(itm => itm.UID == p.AddressUID).FirstOrDefault(); + var address = SCPDB.TB_ADDRESS.Where(itm => itm.UID == p.AddressUID && itm.SubSite == CurrentUser.UserdSite ).FirstOrDefault(); if (address != null) { @@ -80,7 +80,7 @@ namespace SCP.Views.BasicData public void SearchADDRESS_BUYER(string Buyer, Action> p_action) { - SCP_TB_ADDRESS_BUYER_CONTROLLER.GetTbAddressBuyerList(Buyer, (_ret) => + SCP_TB_ADDRESS_BUYER_CONTROLLER.GetTbAddressBuyerList(Buyer,CurrentUser.UserdSite, (_ret) => { if (_ret.State == ReturnStatus.Succeed) { @@ -138,7 +138,7 @@ namespace SCP.Views.BasicData Alert.Show("文件内容为空!"); return; } - var ret = SCP_TB_ADDRESS_BUYER_CONTROLLER.EXCEL_ADRESS_BUYER_LIST(list, CurrentUser.Name); + var ret = SCP_TB_ADDRESS_BUYER_CONTROLLER.EXCEL_ADRESS_BUYER_LIST(list,CurrentUser.UserdSite ,CurrentUser.Name); if (ret.State == ReturnStatus.Succeed && ret.Result == true) { Alert.Show("导入成功"); diff --git a/北京北汽/SCP/Views/PlanData/SCP_ASK.aspx b/北京北汽/SCP/Views/PlanData/SCP_ASK.aspx index e145c30..857cc41 100644 --- a/北京北汽/SCP/Views/PlanData/SCP_ASK.aspx +++ b/北京北汽/SCP/Views/PlanData/SCP_ASK.aspx @@ -12,7 +12,7 @@
- + diff --git a/北京北汽/SCP/Views/PlanData/SCP_ASK.aspx.cs b/北京北汽/SCP/Views/PlanData/SCP_ASK.aspx.cs index 1b6fb9b..cb8e5be 100644 --- a/北京北汽/SCP/Views/PlanData/SCP_ASK.aspx.cs +++ b/北京北汽/SCP/Views/PlanData/SCP_ASK.aspx.cs @@ -42,7 +42,7 @@ namespace SCP.PlanData } private void BindDDL_Site() { - var _ls = ScpCache.ADRESSList; + var _ls = ScpCache.ADRESSList.Where(q=>q.SubSite == CurrentUser.UserdSite).ToList(); DDL_Site.DataSource = _ls; DDL_Site.DataBind(); var name = CurrentUser.Name.ToString(); @@ -102,10 +102,9 @@ namespace SCP.PlanData BtnPublish.Hidden = false; BtnCanclePublish.Hidden = false; } - if (CurrentUser.RoleList.Contains("采购人员") && CurrentUser.FactoryList.Contains("CQBMPT")) + if (CurrentUser.RoleList.Contains("采购人员") && ( CurrentUser.UserdSite =="CQ01" || (CurrentUser.UserdSite == "CD01") )) { DDL_Site.Hidden = false; - } } private void SetRoleRule() @@ -377,7 +376,7 @@ namespace SCP.PlanData _dt = ExcelHelper.GetDataTableOfXlsx(_stream); } var list = ConvertHelper.ToList(ExcelHelper.RemoveEmpty(_dt)).ToList(); - if (CurrentUser.FactoryList.Contains("CQBMPT")) + if (CurrentUser.UserdSite == "CQ01" || (CurrentUser.UserdSite == "CD01")) { Ssite = DDL_Site.SelectedValue; } diff --git a/北京北汽/SCP/Views/PlanData/SCP_PO_CQ.aspx.cs b/北京北汽/SCP/Views/PlanData/SCP_PO_CQ.aspx.cs index cf7680c..5905f71 100644 --- a/北京北汽/SCP/Views/PlanData/SCP_PO_CQ.aspx.cs +++ b/北京北汽/SCP/Views/PlanData/SCP_PO_CQ.aspx.cs @@ -57,6 +57,14 @@ namespace SCP.Views.PlanData linkbutton.Hidden = false; } + if (CurrentUser.RoleList.Contains("采购人员") && CurrentUser.SubSiteList.Contains("CD01")) + { + FileUp.Hidden = false; + btnInput_Contract.Hidden = false; + btnInput_Non_Contract.Hidden = false; + linkbutton.Hidden = false; + + } } public void BindOrder() @@ -267,11 +275,11 @@ namespace SCP.Views.PlanData } if (CurrentUser.ConfigList.ContainsKey("数据中心接口")) { - saveret = SCP_DC_UNI_CONTROLLER.WritePo_PO(list, CurrentUser.FactoryList[0], CurrentUser.Name, DateTime.Now, p_modtype, CurrentUser.SubSiteList[0], CurrentUser.ChineseName, CurrentUser.CellPhone); + saveret = SCP_DC_UNI_CONTROLLER.WritePo_PO(list, CurrentUser.FactoryList[0], CurrentUser.Name, DateTime.Now, p_modtype, CurrentUser.UserdSite, CurrentUser.ChineseName, CurrentUser.CellPhone); } else { - saveret = SCP_PO_CONTROLLER.Save_EXCEL_PO_MOD(list, CurrentUser.FactoryList[0], CurrentUser.Name, DateTime.Now, p_modtype, CurrentUser.SubSiteList[0], CurrentUser.ChineseName, CurrentUser.CellPhone); + saveret = SCP_PO_CONTROLLER.Save_EXCEL_PO_MOD(list, CurrentUser.FactoryList[0], CurrentUser.Name, DateTime.Now, p_modtype, CurrentUser.UserdSite, CurrentUser.ChineseName, CurrentUser.CellPhone); } //if (CurrentUser.ConfigList.ContainsKey("数据中心接口")) //{ diff --git a/北京北汽/SCP/Views/PlanData/SCP_PO_CREATE_ASK.aspx.cs b/北京北汽/SCP/Views/PlanData/SCP_PO_CREATE_ASK.aspx.cs index 885b2a4..ade9074 100644 --- a/北京北汽/SCP/Views/PlanData/SCP_PO_CREATE_ASK.aspx.cs +++ b/北京北汽/SCP/Views/PlanData/SCP_PO_CREATE_ASK.aspx.cs @@ -32,7 +32,7 @@ namespace SCP.PlanData } private void BindDDL_Site() { - var _ls = ScpCache.ADRESSList; + var _ls = ScpCache.ADRESSList.Where(p =>p.SubSite == CurrentUser.UserdSite).ToList(); DDL_Site.DataSource = _ls; DDL_Site.DataBind(); var name = CurrentUser.Name.ToString(); @@ -41,23 +41,6 @@ namespace SCP.PlanData { DDL_Site.SelectedIndex = _ls.IndexOf(_ls.FirstOrDefault(q => q.UID == buyer.AddressUID)); } - //List stinglist = new List(); - //var list = _ls.Select(q => q.NamePone).ToList(); - //if (list != null) - //{ - // list.ForEach(q => - // { - // if (q.Contains(' ')) - // { - // stinglist.Add(q.Substring(0, q.IndexOf(' '))); - // } - - // }); - //} - //if (stinglist != null) - //{ - // DDL_Site.SelectedIndex = stinglist.IndexOf(CurrentUser.ChineseName) == -1?0: stinglist.IndexOf(CurrentUser.ChineseName); - //} } private void SetRoleRule() @@ -69,7 +52,7 @@ namespace SCP.PlanData } private void CheckRolesMenu() { - if (CurrentUser.RoleList.Contains("采购人员") && CurrentUser.FactoryList.Contains("CQBMPT")) + if (CurrentUser.RoleList.Contains("采购人员") && ((CurrentUser.UserdSite == "CQ01") || (CurrentUser.UserdSite == "CD01"))) { DDL_Site.Hidden = false; @@ -460,7 +443,7 @@ namespace SCP.PlanData } } string Ssite = ""; - if (CurrentUser.FactoryList.Contains("CQBMPT")) + if ((CurrentUser.UserdSite == "CQ01") || (CurrentUser.UserdSite == "CD01")) { Ssite = DDL_Site.SelectedValue; } diff --git a/北京北汽/SCP/Views/SupplierData/SCP_ASN_DETAIL.aspx.cs b/北京北汽/SCP/Views/SupplierData/SCP_ASN_DETAIL.aspx.cs index 4422eb8..f621bb3 100644 --- a/北京北汽/SCP/Views/SupplierData/SCP_ASN_DETAIL.aspx.cs +++ b/北京北汽/SCP/Views/SupplierData/SCP_ASN_DETAIL.aspx.cs @@ -418,7 +418,7 @@ namespace SCP.SupplierData BindDetail(); var SubSite = SCP_BARCODE_CONTROLLER.GetBillNum(_asn.AsnBillNum); - if (SubSite.Site == "CQBMPT") + if (SubSite.Site == "CQBMPT" || SubSite.Site == "CDBMPT") { var str = string.Format("window.open(\"../../Handlers/GenerateReport.ashx?report=SendBill_CQ&data=102&type=pdf&filename=SendBill.pdf&AsnBillNum={0}&open=\")", _asn.AsnBillNum); PageContext.RegisterStartupScript(str); @@ -536,7 +536,7 @@ namespace SCP.SupplierData Alert.Show(AsnBillNum + GetResourceKey("请先点击确认发货再打印发货单!")); return; } - if (SubSite.Site == "CQBMPT") + if (SubSite.Site == "CQBMPT" || SubSite.Site == "CDBMPT") { var str = string.Format("window.open(\"../../Handlers/GenerateReport.ashx?report=SendBill_CQ&data=102&type=pdf&filename=SendBill.pdf&AsnBillNum={0}&open=\")", AsnBillNum); PageContext.RegisterStartupScript(str); @@ -560,7 +560,7 @@ namespace SCP.SupplierData return; } var SubSite = SCP_BARCODE_CONTROLLER.GetBillNum(AsnBillNum); - if (!string.IsNullOrEmpty(AsnBillNum) && SubSite.Site == "CQBMPT") + if (!string.IsNullOrEmpty(AsnBillNum) && (SubSite.Site == "CQBMPT"|| SubSite.Site == "CDBMPT")) { var str = string.Format("window.open(\"../../Handlers/GenerateReport.ashx?report=Material_CQ&data=101&type=pdf&filename=标签.pdf&AsnBillNum={0}&open=\")", AsnBillNum); PageContext.RegisterStartupScript(str); diff --git a/北京北汽/SCP/grf/Material.grf b/北京北汽/SCP/grf/Material.grf index e967578..8916cd4 100644 --- a/北京北汽/SCP/grf/Material.grf +++ b/北京北汽/SCP/grf/Material.grf @@ -1 +1 @@ -BASE64+z4AAHic7Vtbb+PGFX52gfwHQn4rXIUX8WZBD5Zk7TqxtLrZXnRjBDQ1tllTHGZIrVdt/bgtgrYwgnZbFFugSIuiKFBs81CgSIMkfyZ2dp/6FzozvIqkLFqyNht718CKnHPmzMx3LnPmkPzfF1//7J0frBR2AXIMaBXWC1JRKvJFtrBGmrvgyHBcgFoQU7YV6b7Y3t1sCtudew2h1/xxTaq+9/C+sKsKDfVea6sqvlcTm1JdaLVKSkPalB5uSDsltaM0VHq7KUnNUmOvVRU23t/YlHh556G60ZYlxRusAS23sE6ms1JoaUOAh7x48atvvvwtJa8UesZPcRvHiizLei17wDg6xn1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ObOiQlpJoj35RwRhESyIXlm2Q+v+UK0392cv2jET+H7wsL8bax7YDBroaucLgISSLA5rAOHkuSVW7tlKzw4kKsow7RQCP6H+N/7zbe7cdFEcgpeGbnxJ7TpjGet0E0rUPk9XZvq35IlfpNHkXOPrn8998v/vC3iz/9mal1p/vdHA5WWoSD5Qq64gxuJRRZ6SoF37Wg23bGyz3myTJ5fLvIgjyhi7tZkF+8+Oz1L8+YdvDE16OexZfEpC/lL1RThHBnSlTpntjSx59f/PNTJvoKRxr9HAEyIUgvQKa2Q4OqVFYUVZoq5MQRYY4OiCgvKP25PQ6ysi6sG05qP4NoYd00DsnT/obR75uAPkRPiCxskGI9LbB2TQkHQu5wkHluTTab3oyg4LdI0+3Yw17vEVSQ6QUlifQNWSiKqiLEY4k3n7e29nY1ZWlVjb7b24K24b3D3YTJ9kqyr77mJeO18IGRd+lZFr4L3p1Z7hX9O9KhocjwJcpVt5jG1TRhEp/aXfYGQhC5bz1FbTCfzU6At+HJNVswUtKU37ZgQrx8P/Lb5au/nP/mBX0Ogs2YacLiYrJcQpxXP9jLSnBSvJZ+A6v/mTv8YTNmItJMizoLS3by2wgRxccjhHI/IkT7R9HXctNI5wgLCRn6RUNcPhnh4jYCRYrF3qykce1hElFf5dJz+C7/nXoLx94Xd4m80Z1GOc9bXgkZ5nl3JrVbFrRSVaUkKFOFr8qKKsbRswufZxfcS8UuRMSfOykGZXPupKgkHYv7Th0r8dj3bvrV608///blK8b7TmYx/pUQ5Y1lnbCk87/zyRnkg8sA6IM8wLQvN7qGY4LEtxaeGqI06d9Y4NJ1NPR4hJ8Xh0PTvr5INmuqgH6BPUERGZncwTv+l9AtDWHV0M+36dK8fYRfqblYlwcZhsef/h+j35pR \ No newline at end of file diff --git a/北京北汽/SCP/grf/Material_CQ.grf b/北京北汽/SCP/grf/Material_CQ.grf index 1804484..a652b95 100644 --- a/北京北汽/SCP/grf/Material_CQ.grf +++ b/北京北汽/SCP/grf/Material_CQ.grf @@ -1 +1 @@ -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7I6r2kEV0CUGkiRF81ZQBMjKUiakt3A5ABQJsi8ahryHCbo5mYYIKqEBZvmQHKYIKvpw5YXz5wqCH+2fe80sNreYOADetPCtKaYeSSXxT3ZIhepa3jPKbfEMhfypsJfRq7lf2sX0vwBQ4LTFpHtxq9nsjJhlI3ZllQYWXKaTkKXst+1Z1diO/RFrz0YefQdrQ4MAFMA8kxSLRWG2iTHmT6mHheX8nvSrSM+K5ELVto4eZnmZxf482G7/eGADFKEIVlrEyGI6I23Jb2DxJFrwOWHMO19P4TpdzWoefP6r5e/f0mzeVgSuQ7kb8ATzaA3P/JWeN0wzHk3HBuKvBmpv9vMV+XnrYIlmGcVNutN9NtJrt68krO2Jm36mFnuGlW4q6Zh/6dTLxQxO657QyqU9euJpWCkpEsc1E3dMFVjMyhLgnQDEWgeQfrEja+g65nPXqjrRlHXb00hzLuqD28///L7V6+59J3LG9ALk6kWZfOTChtcbU62L3tztLzYzXkNZ/KYP7Ff/iu8rdf3Yj8Jp7OV0sL0W3q0C/MdPextxyFtTv59pTL3tb3ZY5wNsv/aybEoUjCXTr/p138BGt+peg== \ No newline at end of file diff --git a/北京北汽/SCP/grf/SendBill_CQ.grf b/北京北汽/SCP/grf/SendBill_CQ.grf index 5722ba1..24ad090 100644 --- a/北京北汽/SCP/grf/SendBill_CQ.grf +++ b/北京北汽/SCP/grf/SendBill_CQ.grf @@ -1 +1 @@ -BASE64D0QAAHiczVtbUxtHFn5mq/IfVMrLpiqZjDQa3d5ALM7WBkIQGz8kVGqC2mgqYkY1GsWQFFXxlh3sBAxeY+P4srET2/FWrQUps8QGX/5LSjMST/4L6Z5rz/RcGpFdDQ8Cuk93n+/06a9Pdx+9Pnz11Rt/Gkl/BJSWKEvpcjrP5Jksw6bfRsUTsqSmy0hiJD0lLAJYr3W+6764alSPpKvil7Asw/Isy5olp4G4UIdtcnZBpS4oLQBLMlwOFqwY/U4roqQCxe76fXBGnRSUBREqwDK82XAGdYSVOo3HgSqIjVOKWLPbz4B5WakZ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