private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <FI_BankPayInfo>(); var i = (from p in ctx.DataContext.FI_BankPayInfo.Where(exp) select p).FirstOrDefault(); if (i != null) { this.Client = i.Client; this.ObjType = i.ObjType; this.ItemId = i.ItemId; this.RBankCode = i.RBankCode; this.PayType = i.PayType; this.PesonId = i.PesonId; this.RemType = i.RemType; this.RowId = i.RowId; this.GovPayCode = i.GovPayCode; this.PersonName = i.PersonName; this.Amt = i.Amt; this.IsProxy = i.IsProxy; this.IsConfig = i.IsConfig; this.PBankCode = i.PBankCode; this.PBankId = i.PBankId; this.PUnitedBankId = i.PUnitedBankId; this.PAccCode = i.PAccCode; this.BAccCode = i.BAccCode; this.ProxyId = i.ProxyId; this.ProxyCode = i.ProxyCode; this.AUnitedBankId = i.AUnitedBankId; this.RUnitedBankId = i.RUnitedBankId; this.RBankName = i.RBankName; this.IsPublic = i.IsPublic; this.CanProxy = i.CanProxy; this.IsOffCard = i.IsOffCard; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <FI_BK>(); var i = (from p in ctx.DataContext.FI_BK.Where(exp) select p).FirstOrDefault(); if (i != null) { this.Client = i.Client; this.BKCode = i.BKCode; this.BKName = i.BKName; this.BKSim = i.BKSim; this.IsBankTran = i.IsBankTran; this.CanChk = i.CanChk; this.Active = i.Active; this.IsPassCode = i.IsPassCode; this.Customer = i.Customer; this.BankUserId = i.BankUserId; this.CIS = i.CIS; this.BankParentId = i.BankParentId; this.BankType = i.BankType; this.Version = i.Version; this.GroupCIS = i.GroupCIS; this.IP = i.IP; this.Port = i.Port; this.URL = i.URL; this.URL1 = i.URL1; this.CreatedUser = i.CreatedUser; this.CreatedDate = i.CreatedDate; this.ChangedUser = i.ChangedUser; this.ChangedDate = i.ChangedDate; this.BillCode = i.BillCode; this.BillProName = i.BillProName; this.UseCode = i.UseCode; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <HR_Salary>(); var i = (from p in ctx.DataContext.HR_Salary.Where(exp) select p).FirstOrDefault(); if (i != null) { this.Client = i.Client; this.SalaryCode = i.SalaryCode; this.Period = i.Period; this.PersonId = i.PersonId; this.SalaryItemCode = i.SalaryItemCode; this.SalaryItemName = i.SalaryItemName; this.SalaryAmt = i.SalaryAmt; this.ResouItemCode = i.ResouItemCode; this.TaxTypeCode = i.TaxTypeCode; this.IsIncrease = i.IsIncrease; this.IsFixed = i.IsFixed; this.IsFreeTax = i.IsFreeTax; this.Sort = i.Sort; this.DepCode = i.DepCode; this.CostCtr = i.CostCtr; this.IsFixedTaxRate = i.IsFixedTaxRate; this.TaxRate = i.TaxRate; this.TaxMinIncome = i.TaxMinIncome; this.TaxPeriod = i.TaxPeriod; this.Staff = i.Staff; this.UType = i.UType; this.ProjCode = i.ProjCode; this.TaskCode = i.TaskCode; this.ExpItemId = i.ExpItemId; this.ExpItemCode = i.ExpItemCode; this.Description = i.Description; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <CG_StuSurplusLog>(); var i = (from p in ctx.DataContext.CG_StuSurplusLog.Where(exp) select p).FirstOrDefault(); if (i != null) { this.Client = i.Client; this.Id = i.Id; this.StudentNo = i.StudentNo; this.PayWayCode = i.PayWayCode; this.Amt = i.Amt; this.TranOrderId = i.TranOrderId; this.CreateUser = i.CreateUser; this.CreateDate = i.CreateDate; this.IsHandle = i.IsHandle; this.HandleUser = i.HandleUser; this.HandleDate = i.HandleDate; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <MM_MatBatch>(); var i = (from p in ctx.DataContext.MM_MatBatch.Where(exp) select p).FirstOrDefault(); if (i != null) { this.MaterialCode = i.MaterialCode; this.Plant = i.Plant; this.BatchNo = i.BatchNo; this.IsDel = i.IsDel; this.ZUSCH = i.ZUSCH; this.ZUSTD = i.ZUSTD; this.VendorCode = i.VendorCode; this.LICHA = i.LICHA; this.LastInDate = i.LastInDate; this.FVDT1 = i.FVDT1; this.HSDAT = i.HSDAT; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <PM_PurContFin>(); var i = (from p in ctx.DataContext.PM_PurContFin.Where(exp) select p).FirstOrDefault(); if (i != null) { this.Client = i.Client; this.ContractId = i.ContractId; this.FinalAmt = i.FinalAmt; this.IsAppr = i.IsAppr; this.Memo = i.Memo; this.CreatedUser = i.CreatedUser; this.CreatedDate = i.CreatedDate; this.ChangedUser = i.ChangedUser; this.ChangedDate = i.ChangedDate; this.CheckUser = i.CheckUser; this.CheckDate = i.CheckDate; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <EF_SetHeader>(); var i = (from p in ctx.DataContext.EF_SetHeader.Where(exp) select p).FirstOrDefault(); if (i != null) { this.SetClass = i.SetClass; this.SetUnit = i.SetUnit; this.SetCode = i.SetCode; this.SetName = i.SetName; this.Uniqe = i.Uniqe; this.TableName = i.TableName; this.FieldName = i.FieldName; this.CreatedUser = i.CreatedUser; this.CreatedDate = i.CreatedDate; this.ChangedUser = i.ChangedUser; this.ChangedDate = i.ChangedDate; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <HR_EmpStatusBase>(); var i = (from p in ctx.DataContext.HR_EmpStatusBase.Where(exp) select p).FirstOrDefault(); if (i != null) { this.Client = i.Client; this.Id = i.Id; this.EmpCode = i.EmpCode; this.StatusCode = i.StatusCode; this.StartDate = i.StartDate; this.EndDate = i.EndDate; this.RowStatus = i.RowStatus; this.CreatedUser = i.CreatedUser; this.CreatedDate = i.CreatedDate; this.ChangedUser = i.ChangedUser; this.ChangedDate = i.ChangedDate; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <TM_Course>(); var i = (from p in ctx.DataContext.TM_Course.Where(exp) select p).FirstOrDefault(); if (i != null) { this.Client = i.Client; this.CourseCode = i.CourseCode; this.CourseName = i.CourseName; this.SpecialityCode = i.SpecialityCode; this.Active = i.Active; this.IsDel = i.IsDel; this.Memo = i.Memo; this.CreatedUser = i.CreatedUser; this.CreatedDate = i.CreatedDate; this.ChangedUser = i.ChangedUser; this.ChangedDate = i.ChangedDate; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <EF_SOARec>(); var i = (from p in ctx.DataContext.EF_SOARec.Where(exp) select p).FirstOrDefault(); if (i != null) { this.Client = i.Client; this.Id = i.Id; this.BillCode = i.BillCode; this.BillDate = i.BillDate; this.SuccX = i.SuccX; this.Msg = i.Msg; this.RowStatus = i.RowStatus; this.CreateUser = i.CreateUser; this.CreateDate = i.CreateDate; this.ChangeUser = i.ChangeUser; this.ChangeDate = i.ChangeDate; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <SM_PaymentLog>(); var i = (from p in ctx.DataContext.SM_PaymentLog.Where(exp) select p).FirstOrDefault(); if (i != null) { this.Client = i.Client; this.DealNo = i.DealNo; this.PayWayCode = i.PayWayCode; this.PayDateTime = i.PayDateTime; this.Amount = i.Amount; this.Description = i.Description; this.StudentNo = i.StudentNo; this.IsConf = i.IsConf; this.IsExternal = i.IsExternal; this.BillNo = i.BillNo; this.IsDelete = i.IsDelete; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <EF_TableIndex>(); var i = (from p in ctx.DataContext.EF_TableIndex.Where(exp) select p).FirstOrDefault(); if (i != null) { this.TableName = i.TableName; this.IndexName = i.IndexName; this.RowStatus = i.RowStatus; this.DText = i.DText; this.PKeyX = i.PKeyX; this.UniqueX = i.UniqueX; this.DBIndexX = i.DBIndexX; this.CreatedUser = i.CreatedUser; this.CreatedDate = i.CreatedDate; this.ChangedUser = i.ChangedUser; this.ChangedDate = i.ChangedDate; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <HR_SalaryConfirmDetail>(); var i = (from p in ctx.DataContext.HR_SalaryConfirmDetail.Where(exp) select p).FirstOrDefault(); if (i != null) { this.Client = i.Client; this.Id = i.Id; this.SalaryPeriod = i.SalaryPeriod; this.SalaryRanage = i.SalaryRanage; this.EmpCode = i.EmpCode; this.SalaryItemCode = i.SalaryItemCode; this.SalaryConfirmType = i.SalaryConfirmType; this.Amt = i.Amt; this.Memo = i.Memo; this.BillNo = i.BillNo; this.IsConfirm = i.IsConfirm; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <HR_SalaryAlterSub>(); var i = (from p in ctx.DataContext.HR_SalaryAlterSub.Where(exp) select p).FirstOrDefault(); if (i != null) { this.Client = i.Client; this.Id = i.Id; this.SalaryAlterNo = i.SalaryAlterNo; this.EmpCode = i.EmpCode; this.SalaryItemCode = i.SalaryItemCode; this.Amt = i.Amt; this.StartDate = i.StartDate; this.EndDate = i.EndDate; this.Memo = i.Memo; this.OldId = i.OldId; this.ActionType = i.ActionType; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <FI_BankTransSum>(); var i = (from p in ctx.DataContext.FI_BankTransSum.Where(exp) select p).FirstOrDefault(); if (i != null) { this.Client = i.Client; this.TransBillNo = i.TransBillNo; this.FreeItemCode = i.FreeItemCode; this.SumType = i.SumType; this.SumItemCode = i.SumItemCode; this.ProfitCtr = i.ProfitCtr; this.ItemText = i.ItemText; this.Amt = i.Amt; this.IncDetCode = i.IncDetCode; this.IsInc = i.IsInc; this.RelPartyCode = i.RelPartyCode; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <EF_TSTC>(); var i = (from p in ctx.DataContext.EF_TSTC.Where(exp) select p).FirstOrDefault(); if (i != null) { this.TCode = i.TCode; this.UIType = i.UIType; this.DText = i.DText; this.PgmName = i.PgmName; this.WebURL = i.WebURL; this.Share = i.Share; this.CallParams = i.CallParams; this.CreatedUser = i.CreatedUser; this.CreatedDate = i.CreatedDate; this.ChangedUser = i.ChangedUser; this.ChangedDate = i.ChangedDate; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <FE_User>(); var i = (from p in ctx.DataContext.FE_User.Where(exp) select p).FirstOrDefault(); if (i != null) { this.AppId = i.AppId; this.OpenId = i.OpenId; this.PersonId = i.PersonId; this.Nickname = i.Nickname; this.Remark = i.Remark; this.Sex = i.Sex; this.HeadImgUrl = i.HeadImgUrl; this.SubscribeTime = i.SubscribeTime; this.UnionID = i.UnionID; this.GroupID = i.GroupID; this.UserState = i.UserState; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <FI_RemType>(); var i = (from p in ctx.DataContext.FI_RemType.Where(exp) select p).FirstOrDefault(); if (i != null) { this.RemTypeCode = i.RemTypeCode; this.RemTypeName = i.RemTypeName; this.IsBank = i.IsBank; this.Account = i.Account; this.SortOrder = i.SortOrder; this.IsIn = i.IsIn; this.IsZero = i.IsZero; this.IsBankAcc = i.IsBankAcc; this.IsFundAcc = i.IsFundAcc; this.IsIncAcc = i.IsIncAcc; this.PayType = i.PayType; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <FI_ExpBusSubFund>(); var i = (from p in ctx.DataContext.FI_ExpBusSubFund.Where(exp) select p).FirstOrDefault(); if (i != null) { this.Client = i.Client; this.ExpBusCode = i.ExpBusCode; this.ExpItemId = i.ExpItemId; this.ResId = i.ResId; this.FundCode = i.FundCode; this.ProjCode = i.ProjCode; this.TaskCode = i.TaskCode; this.ExpItemCode = i.ExpItemCode; this.PBudExpEcoCode = i.PBudExpEcoCode; this.ResouItemCode = i.ResouItemCode; this.Amt = i.Amt; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <WF_TransitionRule>(); var i = (from p in ctx.DataContext.WF_TransitionRule.Where(exp) select p).FirstOrDefault(); if (i != null) { this.Client = i.Client; this.WorkflowId = i.WorkflowId; this.FromState = i.FromState; this.ActivityId = i.ActivityId; this.ToState = i.ToState; this.GrpMark = i.GrpMark; this.Position = i.Position; this.PropertyId = i.PropertyId; this.Operator = i.Operator; this.Constants = i.Constants; this.AndOr = i.AndOr; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <PM_ProjMemLedAdj>(); var i = (from p in ctx.DataContext.PM_ProjMemLedAdj.Where(exp) select p).FirstOrDefault(); if (i != null) { this.Client = i.Client; this.AppNo = i.AppNo; this.ProjCode = i.ProjCode; this.PersonId = i.PersonId; this.AdjDate = i.AdjDate; this.CurAmt = i.CurAmt; this.Memo = i.Memo; this.CreatedUser = i.CreatedUser; this.CreatedDate = i.CreatedDate; this.ChangedUser = i.ChangedUser; this.ChangedDate = i.ChangedDate; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <CO_ProfitCtr>(); var i = (from p in ctx.DataContext.CO_ProfitCtr.Where(exp) select p).FirstOrDefault(); if (i != null) { this.CostArea = i.CostArea; this.ProfitCtr = i.ProfitCtr; this.ProfitCtrGroup = i.ProfitCtrGroup; this.SText = i.SText; this.LText = i.LText; this.Active = i.Active; this.IsDel = i.IsDel; this.CreatedUser = i.CreatedUser; this.CreatedDate = i.CreatedDate; this.ChangedUser = i.ChangedUser; this.ChangedDate = i.ChangedDate; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <PM_ProjInvAppT>(); var i = (from p in ctx.DataContext.PM_ProjInvAppT.Where(exp) select p).FirstOrDefault(); if (i != null) { this.Client = i.Client; this.ProjIncAppNo = i.ProjIncAppNo; this.ProjCode = i.ProjCode; this.TaskCode = i.TaskCode; this.FDAmt = i.FDAmt; this.IncAppAmt = i.IncAppAmt; this.DptCode = i.DptCode; this.CreatedUser = i.CreatedUser; this.CreatedDate = i.CreatedDate; this.ChangedUser = i.ChangedUser; this.ChangedDate = i.ChangedDate; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <FI_ExchRate>(); var i = (from p in ctx.DataContext.FI_ExchRate.Where(exp) select p).FirstOrDefault(); if (i != null) { this.FCurr = i.FCurr; this.TCurr = i.TCurr; this.VDate = i.VDate; this.Rate = i.Rate; this.FRatio = i.FRatio; this.TRatio = i.TRatio; this.Active = i.Active; this.CreatedUser = i.CreatedUser; this.CreatedDate = i.CreatedDate; this.ChangedUser = i.ChangedUser; this.ChangedDate = i.ChangedDate; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <EF_AppModule>(); var i = (from p in ctx.DataContext.EF_AppModule.Where(exp) select p).FirstOrDefault(); if (i != null) { this.AppName = i.AppName; this.UIType = i.UIType; this.AGBlock = i.AGBlock; this.DText = i.DText; this.PgmName = i.PgmName; this.CallParams = i.CallParams; this.Memo = i.Memo; this.CreatedUser = i.CreatedUser; this.CreatedDate = i.CreatedDate; this.ChangedUser = i.ChangedUser; this.ChangedDate = i.ChangedDate; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <WF_InsHistory>(); var i = (from p in ctx.DataContext.WF_InsHistory.Where(exp) select p).FirstOrDefault(); if (i != null) { this.iRowId = i.iRowId; this.Client = i.Client; this.WorkflowId = i.WorkflowId; this.ItemId = i.ItemId; this.CurrentState = i.CurrentState; this.FromState = i.FromState; this.ActivityId = i.ActivityId; this.Suggestion = i.Suggestion; this.CheckReason = i.CheckReason; this.Submitter = i.Submitter; this.SubmitDate = i.SubmitDate; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <PM_ModTask>(); var i = (from p in ctx.DataContext.PM_ModTask.Where(exp) select p).FirstOrDefault(); if (i != null) { this.Client = i.Client; this.ProjCode = i.ProjCode; this.TaskCode = i.TaskCode; this.TaskName = i.TaskName; this.Timelimit = i.Timelimit; this.TimeUnit = i.TimeUnit; this.SBudExpFunCode = i.SBudExpFunCode; this.Active = i.Active; this.ExpAcctCode1 = i.ExpAcctCode1; this.ExpAcctCode2 = i.ExpAcctCode2; this.IsEscrow = i.IsEscrow; this.IsBudItem = i.IsBudItem; this.IsFinItem = i.IsFinItem; this.BTaskCode = i.BTaskCode; this.IsBudCtrl = i.IsBudCtrl; this.IsSpecial = i.IsSpecial; this.MaxDeficit = i.MaxDeficit; this.FDAmt = i.FDAmt; this.ParentId = i.ParentId; this.IsGroup = i.IsGroup; this.SortOrder = i.SortOrder; this.CreatedUser = i.CreatedUser; this.CreatedDate = i.CreatedDate; this.ChangedUser = i.ChangedUser; this.ChangedDate = i.ChangedDate; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <CG_Order>(); var i = (from p in ctx.DataContext.CG_Order.Where(exp) select p).FirstOrDefault(); if (i != null) { this.Client = i.Client; this.Id = i.Id; this.OrderNo = i.OrderNo; this.BillNo = i.BillNo; this.IntervalCode = i.IntervalCode; this.FeeItemCode = i.FeeItemCode; this.BillText = i.BillText; this.SText = i.SText; this.Memo = i.Memo; this.UserGroup = i.UserGroup; this.StartDate = i.StartDate; this.EndDate = i.EndDate; this.IsSub = i.IsSub; this.IsSpecAmt = i.IsSpecAmt; this.IsOnce = i.IsOnce; this.CreateUser = i.CreateUser; this.CreateDate = i.CreateDate; this.ChangeUser = i.ChangeUser; this.ChangeDate = i.ChangeDate; this.OrderAmt = i.OrderAmt; this.CAmt = i.CAmt; this.AdjAmt = i.AdjAmt; this.IsClose = i.IsClose; this.DepCode = i.DepCode; this.IsOut = i.IsOut; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <PM_BudFDResList>(); var i = (from p in ctx.DataContext.PM_BudFDResList.Where(exp) select p).FirstOrDefault(); if (i != null) { this.Client = i.Client; this.AppNo = i.AppNo; this.TaskCode = i.TaskCode; this.ExpItemRow = i.ExpItemRow; this.ResRow = i.ResRow; this.Year = i.Year; this.ProjCode = i.ProjCode; this.ResouItemCode = i.ResouItemCode; this.ResName = i.ResName; this.SpecType = i.SpecType; this.UnitCode = i.UnitCode; this.Mfrs = i.Mfrs; this.Memo = i.Memo; this.TechReq = i.TechReq; this.Freeze = i.Freeze; this.FDAmt = i.FDAmt; this.BudAmt = i.BudAmt; this.FDQty = i.FDQty; this.BudQty = i.BudQty; this.IsPbuy = i.IsPbuy; this.MaterialCode = i.MaterialCode; this.CreatedUser = i.CreatedUser; this.CreatedDate = i.CreatedDate; this.ChangedUser = i.ChangedUser; this.ChangedDate = i.ChangedDate; } } }
private void DataPortal_Fetch(Common.Business.LambdaExpression lambda) { using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework)) { var exp = lambda.Resolve <EQ_Equipment>(); var i = (from p in ctx.DataContext.EQ_Equipment.Where(exp) select p).FirstOrDefault(); if (i != null) { this.Client = i.Client; this.EquCode = i.EquCode; this.EquName = i.EquName; this.EquTypeCode = i.EquTypeCode; this.CorrCode1 = i.CorrCode1; this.CorrCode2 = i.CorrCode2; this.LabNo = i.LabNo; this.AssCode = i.AssCode; this.AssTypeCode = i.AssTypeCode; this.MaterialCode = i.MaterialCode; this.Worth = i.Worth; this.Suppor = i.Suppor; this.VendorCode = i.VendorCode; this.ConstructDate = i.ConstructDate; this.StartTime = i.StartTime; this.Depositary = i.Depositary; this.FixAssets = i.FixAssets; this.Active = i.Active; this.IsDel = i.IsDel; this.Memo = i.Memo; this.State = i.State; this.CreatedUser = i.CreatedUser; this.CreatedDate = i.CreatedDate; this.ChangedUser = i.ChangedUser; this.ChangedDate = i.ChangedDate; } } }