public EntityObject_MCE_B_ASSETS_WRITE_OFF Load(IDbTransaction transaction, string id, out EntityObject_COM_USER identity_user_id, out EntityObject_COM_TYPE write_off_type_id, out EntityObject_COM_DEPART dept_id, out EntityObject_COM_TYPE write_off_cause_id, out EntityObject_COM_USER audit_user_id, out EntityObject_MCE_B_ASSETS assets_id, out EntityObject_COM_USER user_id) { if (LocalMode) { EntityObject_MCE_B_ASSETS_WRITE_OFF obj = new EntityObject_MCE_B_ASSETS_WRITE_OFF(); //平台自动生成代码 identity_user_id = new EntityObject_COM_USER(); write_off_type_id = new EntityObject_COM_TYPE(); dept_id = new EntityObject_COM_DEPART(); write_off_cause_id = new EntityObject_COM_TYPE(); audit_user_id = new EntityObject_COM_USER(); assets_id = new EntityObject_MCE_B_ASSETS(); user_id = new EntityObject_COM_USER(); obj.ID = id; obj = HelperObject_MCE_B_ASSETS_WRITE_OFF.Get(obj, transaction); if (!string.IsNullOrEmpty(obj.IDENTITY_USER_ID)) { identity_user_id.ID = obj.IDENTITY_USER_ID; identity_user_id = HelperObject_COM_USER.Get(identity_user_id, transaction); } if (!string.IsNullOrEmpty(obj.WRITE_OFF_TYPE_ID)) { write_off_type_id.ID = obj.WRITE_OFF_TYPE_ID; write_off_type_id = HelperObject_COM_TYPE.Get(write_off_type_id, transaction); } if (!string.IsNullOrEmpty(obj.DEPT_ID)) { dept_id.ID = obj.DEPT_ID; dept_id = HelperObject_COM_DEPART.Get(dept_id, transaction); } if (!string.IsNullOrEmpty(obj.WRITE_OFF_CAUSE_ID)) { write_off_cause_id.ID = obj.WRITE_OFF_CAUSE_ID; write_off_cause_id = HelperObject_COM_TYPE.Get(write_off_cause_id, transaction); } if (!string.IsNullOrEmpty(obj.AUDIT_USER_ID)) { audit_user_id.ID = obj.AUDIT_USER_ID; audit_user_id = HelperObject_COM_USER.Get(audit_user_id, transaction); } if (!string.IsNullOrEmpty(obj.ASSETS_ID)) { assets_id.ID = obj.ASSETS_ID; assets_id = HelperObject_MCE_B_ASSETS.Get(assets_id, transaction); } if (!string.IsNullOrEmpty(obj.USER_ID)) { user_id.ID = obj.USER_ID; user_id = HelperObject_COM_USER.Get(user_id, transaction); } return(obj); } else { throw new InvalidConstraintException(); } }
public EntityObject_MCE_D_MCE_TYPE Load(IDbTransaction transaction, string id, out EntityObject_COM_TYPE unit_id, out EntityObject_MCE_D_MCE_TYPE parent_id) { if (LocalMode) { EntityObject_MCE_D_MCE_TYPE obj = new EntityObject_MCE_D_MCE_TYPE(); //平台自动生成代码 unit_id = new EntityObject_COM_TYPE(); parent_id = new EntityObject_MCE_D_MCE_TYPE(); obj.ID = id; obj = HelperObject_MCE_D_MCE_TYPE.Get(obj, transaction); if (!string.IsNullOrEmpty(obj.UNIT_ID)) { unit_id.ID = obj.UNIT_ID; unit_id = HelperObject_COM_TYPE.Get(unit_id, transaction); } if (!string.IsNullOrEmpty(obj.PARENT_ID)) { parent_id.ID = obj.PARENT_ID; parent_id = HelperObject_MCE_D_MCE_TYPE.Get(parent_id, transaction); } return(obj); } else { throw new InvalidConstraintException(); } }
public EntityObject_MCE_B_ASSETS_CAPITAL_ALLOT Load(IDbTransaction transaction, string id, out EntityObject_COM_TYPE capital_source_type_id, out EntityObject_MCE_B_ASSETS assets_id) { if (LocalMode) { EntityObject_MCE_B_ASSETS_CAPITAL_ALLOT obj = new EntityObject_MCE_B_ASSETS_CAPITAL_ALLOT(); //平台自动生成代码 capital_source_type_id = new EntityObject_COM_TYPE(); assets_id = new EntityObject_MCE_B_ASSETS(); obj.ID = id; obj = HelperObject_MCE_B_ASSETS_CAPITAL_ALLOT.Get(obj, transaction); if (!string.IsNullOrEmpty(obj.CAPITAL_SOURCE_TYPE_ID)) { capital_source_type_id.ID = obj.CAPITAL_SOURCE_TYPE_ID; capital_source_type_id = HelperObject_COM_TYPE.Get(capital_source_type_id, transaction); } if (!string.IsNullOrEmpty(obj.ASSETS_ID)) { assets_id.ID = obj.ASSETS_ID; assets_id = HelperObject_MCE_B_ASSETS.Get(assets_id, transaction); } return(obj); } else { throw new InvalidConstraintException(); } }
public EntityObject_MCE_B_ASSETS_METER_CHECK Load(IDbTransaction transaction, string id, out EntityObject_MDM_D_DEPT prd_id, out EntityObject_COM_TYPE unit_id, out EntityObject_MCE_B_ASSETS_METER_TYPE meter_type, out EntityObject_COM_USER head_user_id, out EntityObject_COM_USER audit_user_id, out EntityObject_COM_DEPART using_dept_id, out EntityObject_MCE_B_ASSETS assets_id) { if (LocalMode) { EntityObject_MCE_B_ASSETS_METER_CHECK obj = new EntityObject_MCE_B_ASSETS_METER_CHECK(); //平台自动生成代码 prd_id = new EntityObject_MDM_D_DEPT(); unit_id = new EntityObject_COM_TYPE(); meter_type = new EntityObject_MCE_B_ASSETS_METER_TYPE(); head_user_id = new EntityObject_COM_USER(); audit_user_id = new EntityObject_COM_USER(); using_dept_id = new EntityObject_COM_DEPART(); assets_id = new EntityObject_MCE_B_ASSETS(); obj.ID = id; obj = HelperObject_MCE_B_ASSETS_METER_CHECK.Get(obj, transaction); if (!string.IsNullOrEmpty(obj.PRD_ID)) { prd_id.ID = obj.PRD_ID; prd_id = HelperObject_MDM_D_DEPT.Get(prd_id, transaction); } if (!string.IsNullOrEmpty(obj.UNIT_ID)) { unit_id.ID = obj.UNIT_ID; unit_id = HelperObject_COM_TYPE.Get(unit_id, transaction); } if (!string.IsNullOrEmpty(obj.METER_TYPE)) { meter_type.ID = obj.METER_TYPE; meter_type = HelperObject_MCE_B_ASSETS_METER_TYPE.Get(meter_type, transaction); } if (!string.IsNullOrEmpty(obj.HEAD_USER_ID)) { head_user_id.ID = obj.HEAD_USER_ID; head_user_id = HelperObject_COM_USER.Get(head_user_id, transaction); } if (!string.IsNullOrEmpty(obj.AUDIT_USER_ID)) { audit_user_id.ID = obj.AUDIT_USER_ID; audit_user_id = HelperObject_COM_USER.Get(audit_user_id, transaction); } if (!string.IsNullOrEmpty(obj.USING_DEPT_ID)) { using_dept_id.ID = obj.USING_DEPT_ID; using_dept_id = HelperObject_COM_DEPART.Get(using_dept_id, transaction); } if (!string.IsNullOrEmpty(obj.ASSETS_ID)) { assets_id.ID = obj.ASSETS_ID; assets_id = HelperObject_MCE_B_ASSETS.Get(assets_id, transaction); } return(obj); } else { throw new InvalidConstraintException(); } }
public EntityObject_MCE_B_ASSETS_OUTSTOCK_D Load(IDbTransaction transaction, string id, out EntityObject_COM_TYPE unit_id, out EntityObject_MDM_D_DEPT prd_id, out EntityObject_MCE_D_MCE_TYPE asset_type_id, out EntityObject_COM_TYPE economic_use_type_id, out EntityObject_MCE_B_ASSETS_OUTSTOCK base_id, out EntityObject_COM_TYPE country) { if (LocalMode) { EntityObject_MCE_B_ASSETS_OUTSTOCK_D obj = new EntityObject_MCE_B_ASSETS_OUTSTOCK_D(); //平台自动生成代码 unit_id = new EntityObject_COM_TYPE(); prd_id = new EntityObject_MDM_D_DEPT(); asset_type_id = new EntityObject_MCE_D_MCE_TYPE(); economic_use_type_id = new EntityObject_COM_TYPE(); base_id = new EntityObject_MCE_B_ASSETS_OUTSTOCK(); country = new EntityObject_COM_TYPE(); obj.ID = id; obj = HelperObject_MCE_B_ASSETS_OUTSTOCK_D.Get(obj, transaction); if (!string.IsNullOrEmpty(obj.UNIT_ID)) { unit_id.ID = obj.UNIT_ID; unit_id = HelperObject_COM_TYPE.Get(unit_id, transaction); } if (!string.IsNullOrEmpty(obj.PRD_ID)) { prd_id.ID = obj.PRD_ID; prd_id = HelperObject_MDM_D_DEPT.Get(prd_id, transaction); } if (!string.IsNullOrEmpty(obj.ASSET_TYPE_ID)) { asset_type_id.ID = obj.ASSET_TYPE_ID; asset_type_id = HelperObject_MCE_D_MCE_TYPE.Get(asset_type_id, transaction); } if (!string.IsNullOrEmpty(obj.ECONOMIC_USE_TYPE_ID)) { economic_use_type_id.ID = obj.ECONOMIC_USE_TYPE_ID; economic_use_type_id = HelperObject_COM_TYPE.Get(economic_use_type_id, transaction); } if (!string.IsNullOrEmpty(obj.BASE_ID)) { base_id.ID = obj.BASE_ID; base_id = HelperObject_MCE_B_ASSETS_OUTSTOCK.Get(base_id, transaction); } if (!string.IsNullOrEmpty(obj.COUNTRY)) { country.ID = obj.COUNTRY; country = HelperObject_COM_TYPE.Get(country, transaction); } return(obj); } else { throw new InvalidConstraintException(); } }
public EntityObject_MCE_B_ASSETS_CONTRACT Load(IDbTransaction transaction, string id, out EntityObject_COM_USER input_person, out EntityObject_MCE_B_ASSETS assets_id, out EntityObject_COM_TYPE type_id, out EntityObject_MDM_D_DEPT second_party, out EntityObject_COM_DEPART first_party, out EntityObject_COM_USER archivist) { if (LocalMode) { EntityObject_MCE_B_ASSETS_CONTRACT obj = new EntityObject_MCE_B_ASSETS_CONTRACT(); //平台自动生成代码 input_person = new EntityObject_COM_USER(); assets_id = new EntityObject_MCE_B_ASSETS(); type_id = new EntityObject_COM_TYPE(); second_party = new EntityObject_MDM_D_DEPT(); first_party = new EntityObject_COM_DEPART(); archivist = new EntityObject_COM_USER(); obj.ID = id; obj = HelperObject_MCE_B_ASSETS_CONTRACT.Get(obj, transaction); if (!string.IsNullOrEmpty(obj.INPUT_PERSON)) { input_person.ID = obj.INPUT_PERSON; input_person = HelperObject_COM_USER.Get(input_person, transaction); } if (!string.IsNullOrEmpty(obj.ASSETS_ID)) { assets_id.ID = obj.ASSETS_ID; assets_id = HelperObject_MCE_B_ASSETS.Get(assets_id, transaction); } if (!string.IsNullOrEmpty(obj.TYPE_ID)) { type_id.ID = obj.TYPE_ID; type_id = HelperObject_COM_TYPE.Get(type_id, transaction); } if (!string.IsNullOrEmpty(obj.SECOND_PARTY)) { second_party.ID = obj.SECOND_PARTY; second_party = HelperObject_MDM_D_DEPT.Get(second_party, transaction); } if (!string.IsNullOrEmpty(obj.FIRST_PARTY)) { first_party.ID = obj.FIRST_PARTY; first_party = HelperObject_COM_DEPART.Get(first_party, transaction); } if (!string.IsNullOrEmpty(obj.ARCHIVIST)) { archivist.ID = obj.ARCHIVIST; archivist = HelperObject_COM_USER.Get(archivist, transaction); } return(obj); } else { throw new InvalidConstraintException(); } }
public EntityObject_MCE_B_ASSETS_MT_APPLY Load(string id, out EntityObject_MDM_D_DEPT prd_id, out EntityObject_COM_USER apply_user_id, out EntityObject_COM_TYPE mtn_type_id, out EntityObject_COM_DEPART apply_dept_id, out EntityObject_COM_USER using_user_id, out EntityObject_COM_TYPE repair_result, out EntityObject_MCE_D_MCE_TYPE assets_type_id, out EntityObject_COM_TYPE emergency_degree, out EntityObject_COM_DEPART using_dept_id, out EntityObject_COM_TYPE fault_type, out EntityObject_MCE_B_ASSETS assets_id) { if (LocalMode) { EntityObject_MCE_B_ASSETS_MT_APPLY obj = new EntityObject_MCE_B_ASSETS_MT_APPLY(); //平台自动生成代码 prd_id = new EntityObject_MDM_D_DEPT(); apply_user_id = new EntityObject_COM_USER(); mtn_type_id = new EntityObject_COM_TYPE(); apply_dept_id = new EntityObject_COM_DEPART(); using_user_id = new EntityObject_COM_USER(); repair_result = new EntityObject_COM_TYPE(); assets_type_id = new EntityObject_MCE_D_MCE_TYPE(); emergency_degree = new EntityObject_COM_TYPE(); using_dept_id = new EntityObject_COM_DEPART(); fault_type = new EntityObject_COM_TYPE(); assets_id = new EntityObject_MCE_B_ASSETS(); using (IDbConnection connection = IDALProvider.IDAL.PopConnection()) { using (IDbTransaction transaction = connection.BeginTransaction()) { try { obj = Load(transaction, id, out prd_id, out apply_user_id, out mtn_type_id, out apply_dept_id, out using_user_id, out repair_result, out assets_type_id, out emergency_degree, out using_dept_id, out fault_type, out assets_id); transaction.Commit(); } catch (Exception expt) { transaction.Rollback(); Error(expt); } finally { IDALProvider.IDAL.PushConnection(connection); } } } return(obj); } else { using (ServiceManager <ServiceContract_MCE_B_ASSETS_MT_APPLY> smgr = new ServiceManager <ServiceContract_MCE_B_ASSETS_MT_APPLY>(ServiceUri)) { return(smgr.Service.Load(id, out prd_id, out apply_user_id, out mtn_type_id, out apply_dept_id, out using_user_id, out repair_result, out assets_type_id, out emergency_degree, out using_dept_id, out fault_type, out assets_id)); } } }
public EntityObject_MCE_B_ASSETS_ROLL Load(IDbTransaction transaction, string id, out EntityObject_COM_TYPE roll_property, out EntityObject_COM_USER create_user_id, out EntityObject_COM_TYPE savelimit, out EntityObject_COM_TYPE roll_type, out EntityObject_COM_TYPE plan_type) { if (LocalMode) { EntityObject_MCE_B_ASSETS_ROLL obj = new EntityObject_MCE_B_ASSETS_ROLL(); //平台自动生成代码 roll_property = new EntityObject_COM_TYPE(); create_user_id = new EntityObject_COM_USER(); savelimit = new EntityObject_COM_TYPE(); roll_type = new EntityObject_COM_TYPE(); plan_type = new EntityObject_COM_TYPE(); obj.ID = id; obj = HelperObject_MCE_B_ASSETS_ROLL.Get(obj, transaction); if (!string.IsNullOrEmpty(obj.ROLL_PROPERTY)) { roll_property.ID = obj.ROLL_PROPERTY; roll_property = HelperObject_COM_TYPE.Get(roll_property, transaction); } if (!string.IsNullOrEmpty(obj.CREATE_USER_ID)) { create_user_id.ID = obj.CREATE_USER_ID; create_user_id = HelperObject_COM_USER.Get(create_user_id, transaction); } if (!string.IsNullOrEmpty(obj.SAVELIMIT)) { savelimit.ID = obj.SAVELIMIT; savelimit = HelperObject_COM_TYPE.Get(savelimit, transaction); } if (!string.IsNullOrEmpty(obj.ROLL_TYPE)) { roll_type.ID = obj.ROLL_TYPE; roll_type = HelperObject_COM_TYPE.Get(roll_type, transaction); } if (!string.IsNullOrEmpty(obj.PLAN_TYPE)) { plan_type.ID = obj.PLAN_TYPE; plan_type = HelperObject_COM_TYPE.Get(plan_type, transaction); } return(obj); } else { throw new InvalidConstraintException(); } }
public EntityObject_MCE_B_ASSETS_INSTOCK_D Load(string id, out EntityObject_COM_TYPE currency_id, out EntityObject_COM_TYPE country, out EntityObject_MDM_D_DEPT prd_id, out EntityObject_MCE_B_ASSETS_INSTOCK base_id, out EntityObject_MCE_D_MCE_TYPE asset_type_id, out EntityObject_MCE_D_DEPR_TYPE depr_type_id, out EntityObject_COM_TYPE unit_id, out EntityObject_COM_DEPART using_dept_id) { if (LocalMode) { EntityObject_MCE_B_ASSETS_INSTOCK_D obj = new EntityObject_MCE_B_ASSETS_INSTOCK_D(); //平台自动生成代码 currency_id = new EntityObject_COM_TYPE(); country = new EntityObject_COM_TYPE(); prd_id = new EntityObject_MDM_D_DEPT(); base_id = new EntityObject_MCE_B_ASSETS_INSTOCK(); asset_type_id = new EntityObject_MCE_D_MCE_TYPE(); depr_type_id = new EntityObject_MCE_D_DEPR_TYPE(); unit_id = new EntityObject_COM_TYPE(); using_dept_id = new EntityObject_COM_DEPART(); using (IDbConnection connection = IDALProvider.IDAL.PopConnection()) { using (IDbTransaction transaction = connection.BeginTransaction()) { try { obj = Load(transaction, id, out currency_id, out country, out prd_id, out base_id, out asset_type_id, out depr_type_id, out unit_id, out using_dept_id); transaction.Commit(); } catch (Exception expt) { transaction.Rollback(); Error(expt); } finally { IDALProvider.IDAL.PushConnection(connection); } } } return(obj); } else { using (ServiceManager <ServiceContract_MCE_B_ASSETS_INSTOCK_D> smgr = new ServiceManager <ServiceContract_MCE_B_ASSETS_INSTOCK_D>(ServiceUri)) { return(smgr.Service.Load(id, out currency_id, out country, out prd_id, out base_id, out asset_type_id, out depr_type_id, out unit_id, out using_dept_id)); } } }
public EntityObject_MCE_B_ASSETS_METER_CHECK Load(string id, out EntityObject_MDM_D_DEPT prd_id, out EntityObject_COM_TYPE unit_id, out EntityObject_MCE_B_ASSETS_METER_TYPE meter_type, out EntityObject_COM_USER head_user_id, out EntityObject_COM_USER audit_user_id, out EntityObject_COM_DEPART using_dept_id, out EntityObject_MCE_B_ASSETS assets_id) { if (LocalMode) { EntityObject_MCE_B_ASSETS_METER_CHECK obj = new EntityObject_MCE_B_ASSETS_METER_CHECK(); //平台自动生成代码 prd_id = new EntityObject_MDM_D_DEPT(); unit_id = new EntityObject_COM_TYPE(); meter_type = new EntityObject_MCE_B_ASSETS_METER_TYPE(); head_user_id = new EntityObject_COM_USER(); audit_user_id = new EntityObject_COM_USER(); using_dept_id = new EntityObject_COM_DEPART(); assets_id = new EntityObject_MCE_B_ASSETS(); using (IDbConnection connection = IDALProvider.IDAL.PopConnection()) { using (IDbTransaction transaction = connection.BeginTransaction()) { try { obj = Load(transaction, id, out prd_id, out unit_id, out meter_type, out head_user_id, out audit_user_id, out using_dept_id, out assets_id); transaction.Commit(); } catch (Exception expt) { transaction.Rollback(); Error(expt); } finally { IDALProvider.IDAL.PushConnection(connection); } } } return(obj); } else { using (ServiceManager <ServiceContract_MCE_B_ASSETS_METER_CHECK> smgr = new ServiceManager <ServiceContract_MCE_B_ASSETS_METER_CHECK>(ServiceUri)) { return(smgr.Service.Load(id, out prd_id, out unit_id, out meter_type, out head_user_id, out audit_user_id, out using_dept_id, out assets_id)); } } }
public EntityObject_MCE_B_ASSETS_WRITE_OFF Load(string id, out EntityObject_COM_USER identity_user_id, out EntityObject_COM_TYPE write_off_type_id, out EntityObject_COM_DEPART dept_id, out EntityObject_COM_TYPE write_off_cause_id, out EntityObject_COM_USER audit_user_id, out EntityObject_MCE_B_ASSETS assets_id, out EntityObject_COM_USER user_id) { if (LocalMode) { EntityObject_MCE_B_ASSETS_WRITE_OFF obj = new EntityObject_MCE_B_ASSETS_WRITE_OFF(); //平台自动生成代码 identity_user_id = new EntityObject_COM_USER(); write_off_type_id = new EntityObject_COM_TYPE(); dept_id = new EntityObject_COM_DEPART(); write_off_cause_id = new EntityObject_COM_TYPE(); audit_user_id = new EntityObject_COM_USER(); assets_id = new EntityObject_MCE_B_ASSETS(); user_id = new EntityObject_COM_USER(); using (IDbConnection connection = IDALProvider.IDAL.PopConnection()) { using (IDbTransaction transaction = connection.BeginTransaction()) { try { obj = Load(transaction, id, out identity_user_id, out write_off_type_id, out dept_id, out write_off_cause_id, out audit_user_id, out assets_id, out user_id); transaction.Commit(); } catch (Exception expt) { transaction.Rollback(); Error(expt); } finally { IDALProvider.IDAL.PushConnection(connection); } } } return(obj); } else { using (ServiceManager <ServiceContract_MCE_B_ASSETS_WRITE_OFF> smgr = new ServiceManager <ServiceContract_MCE_B_ASSETS_WRITE_OFF>(ServiceUri)) { return(smgr.Service.Load(id, out identity_user_id, out write_off_type_id, out dept_id, out write_off_cause_id, out audit_user_id, out assets_id, out user_id)); } } }
public EntityObject_MCE_B_ASSETS_CONTRACT Load(string id, out EntityObject_COM_USER input_person, out EntityObject_MCE_B_ASSETS assets_id, out EntityObject_COM_TYPE type_id, out EntityObject_MDM_D_DEPT second_party, out EntityObject_COM_DEPART first_party, out EntityObject_COM_USER archivist) { if (LocalMode) { EntityObject_MCE_B_ASSETS_CONTRACT obj = new EntityObject_MCE_B_ASSETS_CONTRACT(); //平台自动生成代码 input_person = new EntityObject_COM_USER(); assets_id = new EntityObject_MCE_B_ASSETS(); type_id = new EntityObject_COM_TYPE(); second_party = new EntityObject_MDM_D_DEPT(); first_party = new EntityObject_COM_DEPART(); archivist = new EntityObject_COM_USER(); using (IDbConnection connection = IDALProvider.IDAL.PopConnection()) { using (IDbTransaction transaction = connection.BeginTransaction()) { try { obj = Load(transaction, id, out input_person, out assets_id, out type_id, out second_party, out first_party, out archivist); transaction.Commit(); } catch (Exception expt) { transaction.Rollback(); Error(expt); } finally { IDALProvider.IDAL.PushConnection(connection); } } } return(obj); } else { using (ServiceManager <ServiceContract_MCE_B_ASSETS_CONTRACT> smgr = new ServiceManager <ServiceContract_MCE_B_ASSETS_CONTRACT>(ServiceUri)) { return(smgr.Service.Load(id, out input_person, out assets_id, out type_id, out second_party, out first_party, out archivist)); } } }
public EntityObject_MCE_B_ASSETS_ROLL Load(string id, out EntityObject_COM_TYPE roll_property, out EntityObject_COM_USER create_user_id, out EntityObject_COM_TYPE savelimit, out EntityObject_COM_TYPE roll_type, out EntityObject_COM_TYPE plan_type) { if (LocalMode) { EntityObject_MCE_B_ASSETS_ROLL obj = new EntityObject_MCE_B_ASSETS_ROLL(); //平台自动生成代码 roll_property = new EntityObject_COM_TYPE(); create_user_id = new EntityObject_COM_USER(); savelimit = new EntityObject_COM_TYPE(); roll_type = new EntityObject_COM_TYPE(); plan_type = new EntityObject_COM_TYPE(); using (IDbConnection connection = IDALProvider.IDAL.PopConnection()) { using (IDbTransaction transaction = connection.BeginTransaction()) { try { obj = Load(transaction, id, out roll_property, out create_user_id, out savelimit, out roll_type, out plan_type); transaction.Commit(); } catch (Exception expt) { transaction.Rollback(); Error(expt); } finally { IDALProvider.IDAL.PushConnection(connection); } } } return(obj); } else { using (ServiceManager <ServiceContract_MCE_B_ASSETS_ROLL> smgr = new ServiceManager <ServiceContract_MCE_B_ASSETS_ROLL>(ServiceUri)) { return(smgr.Service.Load(id, out roll_property, out create_user_id, out savelimit, out roll_type, out plan_type)); } } }
public EntityObject_MCE_B_ASSETS_IMPORTATION Load(string id, out EntityObject_MCE_B_ASSETS assets_id, out EntityObject_COM_TYPE currency_id, out EntityObject_COM_TYPE foreign_currency_source_id, out EntityObject_COM_TYPE country_id) { if (LocalMode) { EntityObject_MCE_B_ASSETS_IMPORTATION obj = new EntityObject_MCE_B_ASSETS_IMPORTATION(); //平台自动生成代码 assets_id = new EntityObject_MCE_B_ASSETS(); currency_id = new EntityObject_COM_TYPE(); foreign_currency_source_id = new EntityObject_COM_TYPE(); country_id = new EntityObject_COM_TYPE(); using (IDbConnection connection = IDALProvider.IDAL.PopConnection()) { using (IDbTransaction transaction = connection.BeginTransaction()) { try { obj = Load(transaction, id, out assets_id, out currency_id, out foreign_currency_source_id, out country_id); transaction.Commit(); } catch (Exception expt) { transaction.Rollback(); Error(expt); } finally { IDALProvider.IDAL.PushConnection(connection); } } } return(obj); } else { using (ServiceManager <ServiceContract_MCE_B_ASSETS_IMPORTATION> smgr = new ServiceManager <ServiceContract_MCE_B_ASSETS_IMPORTATION>(ServiceUri)) { return(smgr.Service.Load(id, out assets_id, out currency_id, out foreign_currency_source_id, out country_id)); } } }
public EntityObject_MCE_B_ASSETS_PURCHASE_PLAN Load(IDbTransaction transaction, string id, out EntityObject_COM_USER apply_user_id, out EntityObject_COM_DEPART purchase_dept_id, out EntityObject_COM_TYPE currency_id, out EntityObject_COM_DEPART apply_dept_id) { if (LocalMode) { EntityObject_MCE_B_ASSETS_PURCHASE_PLAN obj = new EntityObject_MCE_B_ASSETS_PURCHASE_PLAN(); //平台自动生成代码 apply_user_id = new EntityObject_COM_USER(); purchase_dept_id = new EntityObject_COM_DEPART(); currency_id = new EntityObject_COM_TYPE(); apply_dept_id = new EntityObject_COM_DEPART(); obj.ID = id; obj = HelperObject_MCE_B_ASSETS_PURCHASE_PLAN.Get(obj, transaction); if (!string.IsNullOrEmpty(obj.APPLY_USER_ID)) { apply_user_id.ID = obj.APPLY_USER_ID; apply_user_id = HelperObject_COM_USER.Get(apply_user_id, transaction); } if (!string.IsNullOrEmpty(obj.PURCHASE_DEPT_ID)) { purchase_dept_id.ID = obj.PURCHASE_DEPT_ID; purchase_dept_id = HelperObject_COM_DEPART.Get(purchase_dept_id, transaction); } if (!string.IsNullOrEmpty(obj.CURRENCY_ID)) { currency_id.ID = obj.CURRENCY_ID; currency_id = HelperObject_COM_TYPE.Get(currency_id, transaction); } if (!string.IsNullOrEmpty(obj.APPLY_DEPT_ID)) { apply_dept_id.ID = obj.APPLY_DEPT_ID; apply_dept_id = HelperObject_COM_DEPART.Get(apply_dept_id, transaction); } return(obj); } else { throw new InvalidConstraintException(); } }
public EntityObject_MCE_B_ASSETS_PURCHASE_PLAN Load(string id, out EntityObject_COM_USER apply_user_id, out EntityObject_COM_DEPART purchase_dept_id, out EntityObject_COM_TYPE currency_id, out EntityObject_COM_DEPART apply_dept_id) { if (LocalMode) { EntityObject_MCE_B_ASSETS_PURCHASE_PLAN obj = new EntityObject_MCE_B_ASSETS_PURCHASE_PLAN(); //平台自动生成代码 apply_user_id = new EntityObject_COM_USER(); purchase_dept_id = new EntityObject_COM_DEPART(); currency_id = new EntityObject_COM_TYPE(); apply_dept_id = new EntityObject_COM_DEPART(); using (IDbConnection connection = IDALProvider.IDAL.PopConnection()) { using (IDbTransaction transaction = connection.BeginTransaction()) { try { obj = Load(transaction, id, out apply_user_id, out purchase_dept_id, out currency_id, out apply_dept_id); transaction.Commit(); } catch (Exception expt) { transaction.Rollback(); Error(expt); } finally { IDALProvider.IDAL.PushConnection(connection); } } } return(obj); } else { using (ServiceManager <ServiceContract_MCE_B_ASSETS_PURCHASE_PLAN> smgr = new ServiceManager <ServiceContract_MCE_B_ASSETS_PURCHASE_PLAN>(ServiceUri)) { return(smgr.Service.Load(id, out apply_user_id, out purchase_dept_id, out currency_id, out apply_dept_id)); } } }
public EntityObject_MCE_B_ASSETS_CHECK_D Load(IDbTransaction transaction, string id, out EntityObject_COM_DEPART using_dept_id, out EntityObject_COM_TYPE new_assets_state, out EntityObject_MCE_B_ASSETS assets_id, out EntityObject_COM_TYPE old_assets_state) { if (LocalMode) { EntityObject_MCE_B_ASSETS_CHECK_D obj = new EntityObject_MCE_B_ASSETS_CHECK_D(); //平台自动生成代码 using_dept_id = new EntityObject_COM_DEPART(); new_assets_state = new EntityObject_COM_TYPE(); assets_id = new EntityObject_MCE_B_ASSETS(); old_assets_state = new EntityObject_COM_TYPE(); obj.ID = id; obj = HelperObject_MCE_B_ASSETS_CHECK_D.Get(obj, transaction); if (!string.IsNullOrEmpty(obj.USING_DEPT_ID)) { using_dept_id.ID = obj.USING_DEPT_ID; using_dept_id = HelperObject_COM_DEPART.Get(using_dept_id, transaction); } if (!string.IsNullOrEmpty(obj.NEW_ASSETS_STATE)) { new_assets_state.ID = obj.NEW_ASSETS_STATE; new_assets_state = HelperObject_COM_TYPE.Get(new_assets_state, transaction); } if (!string.IsNullOrEmpty(obj.ASSETS_ID)) { assets_id.ID = obj.ASSETS_ID; assets_id = HelperObject_MCE_B_ASSETS.Get(assets_id, transaction); } if (!string.IsNullOrEmpty(obj.OLD_ASSETS_STATE)) { old_assets_state.ID = obj.OLD_ASSETS_STATE; old_assets_state = HelperObject_COM_TYPE.Get(old_assets_state, transaction); } return(obj); } else { throw new InvalidConstraintException(); } }
public EntityObject_MCE_B_ASSETS_CHECK_D Load(string id, out EntityObject_COM_DEPART using_dept_id, out EntityObject_COM_TYPE new_assets_state, out EntityObject_MCE_B_ASSETS assets_id, out EntityObject_COM_TYPE old_assets_state) { if (LocalMode) { EntityObject_MCE_B_ASSETS_CHECK_D obj = new EntityObject_MCE_B_ASSETS_CHECK_D(); //平台自动生成代码 using_dept_id = new EntityObject_COM_DEPART(); new_assets_state = new EntityObject_COM_TYPE(); assets_id = new EntityObject_MCE_B_ASSETS(); old_assets_state = new EntityObject_COM_TYPE(); using (IDbConnection connection = IDALProvider.IDAL.PopConnection()) { using (IDbTransaction transaction = connection.BeginTransaction()) { try { obj = Load(transaction, id, out using_dept_id, out new_assets_state, out assets_id, out old_assets_state); transaction.Commit(); } catch (Exception expt) { transaction.Rollback(); Error(expt); } finally { IDALProvider.IDAL.PushConnection(connection); } } } return(obj); } else { using (ServiceManager <ServiceContract_MCE_B_ASSETS_CHECK_D> smgr = new ServiceManager <ServiceContract_MCE_B_ASSETS_CHECK_D>(ServiceUri)) { return(smgr.Service.Load(id, out using_dept_id, out new_assets_state, out assets_id, out old_assets_state)); } } }
public EntityObject_MCE_B_ASSETS_PURCHASE_PLAN_D Load(string id, out EntityObject_MCE_D_MCE_TYPE type_id, out EntityObject_COM_TYPE currency_id, out EntityObject_COM_TYPE unit_id, out EntityObject_MCE_B_ASSETS_PURCHASE base_id) { if (LocalMode) { EntityObject_MCE_B_ASSETS_PURCHASE_PLAN_D obj = new EntityObject_MCE_B_ASSETS_PURCHASE_PLAN_D(); //平台自动生成代码 type_id = new EntityObject_MCE_D_MCE_TYPE(); currency_id = new EntityObject_COM_TYPE(); unit_id = new EntityObject_COM_TYPE(); base_id = new EntityObject_MCE_B_ASSETS_PURCHASE(); using (IDbConnection connection = IDALProvider.IDAL.PopConnection()) { using (IDbTransaction transaction = connection.BeginTransaction()) { try { obj = Load(transaction, id, out type_id, out currency_id, out unit_id, out base_id); transaction.Commit(); } catch (Exception expt) { transaction.Rollback(); Error(expt); } finally { IDALProvider.IDAL.PushConnection(connection); } } } return(obj); } else { using (ServiceManager <ServiceContract_MCE_B_ASSETS_PURCHASE_PLAN_D> smgr = new ServiceManager <ServiceContract_MCE_B_ASSETS_PURCHASE_PLAN_D>(ServiceUri)) { return(smgr.Service.Load(id, out type_id, out currency_id, out unit_id, out base_id)); } } }
public EntityObject_MCE_B_ASSETS_IMPORTATION Load(IDbTransaction transaction, string id, out EntityObject_MCE_B_ASSETS assets_id, out EntityObject_COM_TYPE currency_id, out EntityObject_COM_TYPE foreign_currency_source_id, out EntityObject_COM_TYPE country_id) { if (LocalMode) { EntityObject_MCE_B_ASSETS_IMPORTATION obj = new EntityObject_MCE_B_ASSETS_IMPORTATION(); //平台自动生成代码 assets_id = new EntityObject_MCE_B_ASSETS(); currency_id = new EntityObject_COM_TYPE(); foreign_currency_source_id = new EntityObject_COM_TYPE(); country_id = new EntityObject_COM_TYPE(); obj.ID = id; obj = HelperObject_MCE_B_ASSETS_IMPORTATION.Get(obj, transaction); if (!string.IsNullOrEmpty(obj.ASSETS_ID)) { assets_id.ID = obj.ASSETS_ID; assets_id = HelperObject_MCE_B_ASSETS.Get(assets_id, transaction); } if (!string.IsNullOrEmpty(obj.CURRENCY_ID)) { currency_id.ID = obj.CURRENCY_ID; currency_id = HelperObject_COM_TYPE.Get(currency_id, transaction); } if (!string.IsNullOrEmpty(obj.FOREIGN_CURRENCY_SOURCE_ID)) { foreign_currency_source_id.ID = obj.FOREIGN_CURRENCY_SOURCE_ID; foreign_currency_source_id = HelperObject_COM_TYPE.Get(foreign_currency_source_id, transaction); } if (!string.IsNullOrEmpty(obj.COUNTRY_ID)) { country_id.ID = obj.COUNTRY_ID; country_id = HelperObject_COM_TYPE.Get(country_id, transaction); } return(obj); } else { throw new InvalidConstraintException(); } }
public EntityObject_MCE_B_SALES_RETURN_D Load(IDbTransaction transaction, string id, out EntityObject_MDM_D_DEPT prd_id, out EntityObject_COM_TYPE unit_id, out EntityObject_MCE_D_MCE_TYPE asset_type_id, out EntityObject_MCE_B_SALES_RETURN base_id) { if (LocalMode) { EntityObject_MCE_B_SALES_RETURN_D obj = new EntityObject_MCE_B_SALES_RETURN_D(); //平台自动生成代码 prd_id = new EntityObject_MDM_D_DEPT(); unit_id = new EntityObject_COM_TYPE(); asset_type_id = new EntityObject_MCE_D_MCE_TYPE(); base_id = new EntityObject_MCE_B_SALES_RETURN(); obj.ID = id; obj = HelperObject_MCE_B_SALES_RETURN_D.Get(obj, transaction); if (!string.IsNullOrEmpty(obj.PRD_ID)) { prd_id.ID = obj.PRD_ID; prd_id = HelperObject_MDM_D_DEPT.Get(prd_id, transaction); } if (!string.IsNullOrEmpty(obj.UNIT_ID)) { unit_id.ID = obj.UNIT_ID; unit_id = HelperObject_COM_TYPE.Get(unit_id, transaction); } if (!string.IsNullOrEmpty(obj.ASSET_TYPE_ID)) { asset_type_id.ID = obj.ASSET_TYPE_ID; asset_type_id = HelperObject_MCE_D_MCE_TYPE.Get(asset_type_id, transaction); } if (!string.IsNullOrEmpty(obj.BASE_ID)) { base_id.ID = obj.BASE_ID; base_id = HelperObject_MCE_B_SALES_RETURN.Get(base_id, transaction); } return(obj); } else { throw new InvalidConstraintException(); } }
public EntityObject_MCE_B_ASSETS_PURCHASE_PLAN_D Load(IDbTransaction transaction, string id, out EntityObject_MCE_D_MCE_TYPE type_id, out EntityObject_COM_TYPE currency_id, out EntityObject_COM_TYPE unit_id, out EntityObject_MCE_B_ASSETS_PURCHASE base_id) { if (LocalMode) { EntityObject_MCE_B_ASSETS_PURCHASE_PLAN_D obj = new EntityObject_MCE_B_ASSETS_PURCHASE_PLAN_D(); //平台自动生成代码 type_id = new EntityObject_MCE_D_MCE_TYPE(); currency_id = new EntityObject_COM_TYPE(); unit_id = new EntityObject_COM_TYPE(); base_id = new EntityObject_MCE_B_ASSETS_PURCHASE(); obj.ID = id; obj = HelperObject_MCE_B_ASSETS_PURCHASE_PLAN_D.Get(obj, transaction); if (!string.IsNullOrEmpty(obj.TYPE_ID)) { type_id.ID = obj.TYPE_ID; type_id = HelperObject_MCE_D_MCE_TYPE.Get(type_id, transaction); } if (!string.IsNullOrEmpty(obj.CURRENCY_ID)) { currency_id.ID = obj.CURRENCY_ID; currency_id = HelperObject_COM_TYPE.Get(currency_id, transaction); } if (!string.IsNullOrEmpty(obj.UNIT_ID)) { unit_id.ID = obj.UNIT_ID; unit_id = HelperObject_COM_TYPE.Get(unit_id, transaction); } if (!string.IsNullOrEmpty(obj.BASE_ID)) { base_id.ID = obj.BASE_ID; base_id = HelperObject_MCE_B_ASSETS_PURCHASE.Get(base_id, transaction); } return(obj); } else { throw new InvalidConstraintException(); } }
public EntityObject_MCE_B_ASSETS_MT_EXEC Load(string id, out EntityObject_COM_USER apply_user_id, out EntityObject_MDM_D_DEPT mtn_company_id, out EntityObject_COM_TYPE mtn_type_id) { if (LocalMode) { EntityObject_MCE_B_ASSETS_MT_EXEC obj = new EntityObject_MCE_B_ASSETS_MT_EXEC(); //平台自动生成代码 apply_user_id = new EntityObject_COM_USER(); mtn_company_id = new EntityObject_MDM_D_DEPT(); mtn_type_id = new EntityObject_COM_TYPE(); using (IDbConnection connection = IDALProvider.IDAL.PopConnection()) { using (IDbTransaction transaction = connection.BeginTransaction()) { try { obj = Load(transaction, id, out apply_user_id, out mtn_company_id, out mtn_type_id); transaction.Commit(); } catch (Exception expt) { transaction.Rollback(); Error(expt); } finally { IDALProvider.IDAL.PushConnection(connection); } } } return(obj); } else { using (ServiceManager <ServiceContract_MCE_B_ASSETS_MT_EXEC> smgr = new ServiceManager <ServiceContract_MCE_B_ASSETS_MT_EXEC>(ServiceUri)) { return(smgr.Service.Load(id, out apply_user_id, out mtn_company_id, out mtn_type_id)); } } }
public EntityObject_MCE_B_ASSETS_CHECK Load(string id, out EntityObject_COM_DEPART dept_id, out EntityObject_COM_TYPE check_type_id, out EntityObject_COM_USER user_id) { if (LocalMode) { EntityObject_MCE_B_ASSETS_CHECK obj = new EntityObject_MCE_B_ASSETS_CHECK(); //平台自动生成代码 dept_id = new EntityObject_COM_DEPART(); check_type_id = new EntityObject_COM_TYPE(); user_id = new EntityObject_COM_USER(); using (IDbConnection connection = IDALProvider.IDAL.PopConnection()) { using (IDbTransaction transaction = connection.BeginTransaction()) { try { obj = Load(transaction, id, out dept_id, out check_type_id, out user_id); transaction.Commit(); } catch (Exception expt) { transaction.Rollback(); Error(expt); } finally { IDALProvider.IDAL.PushConnection(connection); } } } return(obj); } else { using (ServiceManager <ServiceContract_MCE_B_ASSETS_CHECK> smgr = new ServiceManager <ServiceContract_MCE_B_ASSETS_CHECK>(ServiceUri)) { return(smgr.Service.Load(id, out dept_id, out check_type_id, out user_id)); } } }
public EntityObject_MCE_D_MCE_TYPE Load(string id, out EntityObject_COM_TYPE unit_id, out EntityObject_MCE_D_MCE_TYPE parent_id) { if (LocalMode) { EntityObject_MCE_D_MCE_TYPE obj = new EntityObject_MCE_D_MCE_TYPE(); //平台自动生成代码 unit_id = new EntityObject_COM_TYPE(); parent_id = new EntityObject_MCE_D_MCE_TYPE(); using (IDbConnection connection = IDALProvider.IDAL.PopConnection()) { using (IDbTransaction transaction = connection.BeginTransaction()) { try { obj = Load(transaction, id, out unit_id, out parent_id); transaction.Commit(); } catch (Exception expt) { transaction.Rollback(); Error(expt); } finally { IDALProvider.IDAL.PushConnection(connection); } } } return(obj); } else { using (ServiceManager <ServiceContract_MCE_D_MCE_TYPE> smgr = new ServiceManager <ServiceContract_MCE_D_MCE_TYPE>(ServiceUri)) { return(smgr.Service.Load(id, out unit_id, out parent_id)); } } }
public EntityObject_MCE_B_ASSETS_CAPITAL_ALLOT Load(string id, out EntityObject_COM_TYPE capital_source_type_id, out EntityObject_MCE_B_ASSETS assets_id) { if (LocalMode) { EntityObject_MCE_B_ASSETS_CAPITAL_ALLOT obj = new EntityObject_MCE_B_ASSETS_CAPITAL_ALLOT(); //平台自动生成代码 capital_source_type_id = new EntityObject_COM_TYPE(); assets_id = new EntityObject_MCE_B_ASSETS(); using (IDbConnection connection = IDALProvider.IDAL.PopConnection()) { using (IDbTransaction transaction = connection.BeginTransaction()) { try { obj = Load(transaction, id, out capital_source_type_id, out assets_id); transaction.Commit(); } catch (Exception expt) { transaction.Rollback(); Error(expt); } finally { IDALProvider.IDAL.PushConnection(connection); } } } return(obj); } else { using (ServiceManager <ServiceContract_MCE_B_ASSETS_CAPITAL_ALLOT> smgr = new ServiceManager <ServiceContract_MCE_B_ASSETS_CAPITAL_ALLOT>(ServiceUri)) { return(smgr.Service.Load(id, out capital_source_type_id, out assets_id)); } } }
public EntityObject_MCE_B_ASSETS_MT_EXEC Load(IDbTransaction transaction, string id, out EntityObject_COM_USER apply_user_id, out EntityObject_MDM_D_DEPT mtn_company_id, out EntityObject_COM_TYPE mtn_type_id) { if (LocalMode) { EntityObject_MCE_B_ASSETS_MT_EXEC obj = new EntityObject_MCE_B_ASSETS_MT_EXEC(); //平台自动生成代码 apply_user_id = new EntityObject_COM_USER(); mtn_company_id = new EntityObject_MDM_D_DEPT(); mtn_type_id = new EntityObject_COM_TYPE(); obj.ID = id; obj = HelperObject_MCE_B_ASSETS_MT_EXEC.Get(obj, transaction); if (!string.IsNullOrEmpty(obj.APPLY_USER_ID)) { apply_user_id.ID = obj.APPLY_USER_ID; apply_user_id = HelperObject_COM_USER.Get(apply_user_id, transaction); } if (!string.IsNullOrEmpty(obj.MTN_COMPANY_ID)) { mtn_company_id.ID = obj.MTN_COMPANY_ID; mtn_company_id = HelperObject_MDM_D_DEPT.Get(mtn_company_id, transaction); } if (!string.IsNullOrEmpty(obj.MTN_TYPE_ID)) { mtn_type_id.ID = obj.MTN_TYPE_ID; mtn_type_id = HelperObject_COM_TYPE.Get(mtn_type_id, transaction); } return(obj); } else { throw new InvalidConstraintException(); } }
public EntityObject_MCE_B_ASSETS_DEPR_D Load(IDbTransaction transaction, string id, out EntityObject_MCE_B_ASSETS_DEPR base_id, out EntityObject_COM_TYPE currency_id, out EntityObject_MCE_B_ASSETS assets_id) { if (LocalMode) { EntityObject_MCE_B_ASSETS_DEPR_D obj = new EntityObject_MCE_B_ASSETS_DEPR_D(); //平台自动生成代码 base_id = new EntityObject_MCE_B_ASSETS_DEPR(); currency_id = new EntityObject_COM_TYPE(); assets_id = new EntityObject_MCE_B_ASSETS(); obj.ID = id; obj = HelperObject_MCE_B_ASSETS_DEPR_D.Get(obj, transaction); if (!string.IsNullOrEmpty(obj.BASE_ID)) { base_id.ID = obj.BASE_ID; base_id = HelperObject_MCE_B_ASSETS_DEPR.Get(base_id, transaction); } if (!string.IsNullOrEmpty(obj.CURRENCY_ID)) { currency_id.ID = obj.CURRENCY_ID; currency_id = HelperObject_COM_TYPE.Get(currency_id, transaction); } if (!string.IsNullOrEmpty(obj.ASSETS_ID)) { assets_id.ID = obj.ASSETS_ID; assets_id = HelperObject_MCE_B_ASSETS.Get(assets_id, transaction); } return(obj); } else { throw new InvalidConstraintException(); } }
public EntityObject_MCE_B_ASSETS_CHECK Load(IDbTransaction transaction, string id, out EntityObject_COM_DEPART dept_id, out EntityObject_COM_TYPE check_type_id, out EntityObject_COM_USER user_id) { if (LocalMode) { EntityObject_MCE_B_ASSETS_CHECK obj = new EntityObject_MCE_B_ASSETS_CHECK(); //平台自动生成代码 dept_id = new EntityObject_COM_DEPART(); check_type_id = new EntityObject_COM_TYPE(); user_id = new EntityObject_COM_USER(); obj.ID = id; obj = HelperObject_MCE_B_ASSETS_CHECK.Get(obj, transaction); if (!string.IsNullOrEmpty(obj.DEPT_ID)) { dept_id.ID = obj.DEPT_ID; dept_id = HelperObject_COM_DEPART.Get(dept_id, transaction); } if (!string.IsNullOrEmpty(obj.CHECK_TYPE_ID)) { check_type_id.ID = obj.CHECK_TYPE_ID; check_type_id = HelperObject_COM_TYPE.Get(check_type_id, transaction); } if (!string.IsNullOrEmpty(obj.USER_ID)) { user_id.ID = obj.USER_ID; user_id = HelperObject_COM_USER.Get(user_id, transaction); } return(obj); } else { throw new InvalidConstraintException(); } }
public EntityObject_MCE_B_ASSETS_MT_APPLY Load(IDbTransaction transaction, string id, out EntityObject_MDM_D_DEPT prd_id, out EntityObject_COM_USER apply_user_id, out EntityObject_COM_TYPE mtn_type_id, out EntityObject_COM_DEPART apply_dept_id, out EntityObject_COM_USER using_user_id, out EntityObject_COM_TYPE repair_result, out EntityObject_MCE_D_MCE_TYPE assets_type_id, out EntityObject_COM_TYPE emergency_degree, out EntityObject_COM_DEPART using_dept_id, out EntityObject_COM_TYPE fault_type, out EntityObject_MCE_B_ASSETS assets_id) { if (LocalMode) { EntityObject_MCE_B_ASSETS_MT_APPLY obj = new EntityObject_MCE_B_ASSETS_MT_APPLY(); //平台自动生成代码 prd_id = new EntityObject_MDM_D_DEPT(); apply_user_id = new EntityObject_COM_USER(); mtn_type_id = new EntityObject_COM_TYPE(); apply_dept_id = new EntityObject_COM_DEPART(); using_user_id = new EntityObject_COM_USER(); repair_result = new EntityObject_COM_TYPE(); assets_type_id = new EntityObject_MCE_D_MCE_TYPE(); emergency_degree = new EntityObject_COM_TYPE(); using_dept_id = new EntityObject_COM_DEPART(); fault_type = new EntityObject_COM_TYPE(); assets_id = new EntityObject_MCE_B_ASSETS(); obj.ID = id; obj = HelperObject_MCE_B_ASSETS_MT_APPLY.Get(obj, transaction); if (!string.IsNullOrEmpty(obj.PRD_ID)) { prd_id.ID = obj.PRD_ID; prd_id = HelperObject_MDM_D_DEPT.Get(prd_id, transaction); } if (!string.IsNullOrEmpty(obj.APPLY_USER_ID)) { apply_user_id.ID = obj.APPLY_USER_ID; apply_user_id = HelperObject_COM_USER.Get(apply_user_id, transaction); } if (!string.IsNullOrEmpty(obj.MTN_TYPE_ID)) { mtn_type_id.ID = obj.MTN_TYPE_ID; mtn_type_id = HelperObject_COM_TYPE.Get(mtn_type_id, transaction); } if (!string.IsNullOrEmpty(obj.APPLY_DEPT_ID)) { apply_dept_id.ID = obj.APPLY_DEPT_ID; apply_dept_id = HelperObject_COM_DEPART.Get(apply_dept_id, transaction); } if (!string.IsNullOrEmpty(obj.USING_USER_ID)) { using_user_id.ID = obj.USING_USER_ID; using_user_id = HelperObject_COM_USER.Get(using_user_id, transaction); } if (!string.IsNullOrEmpty(obj.REPAIR_RESULT)) { repair_result.ID = obj.REPAIR_RESULT; repair_result = HelperObject_COM_TYPE.Get(repair_result, transaction); } if (!string.IsNullOrEmpty(obj.ASSETS_TYPE_ID)) { assets_type_id.ID = obj.ASSETS_TYPE_ID; assets_type_id = HelperObject_MCE_D_MCE_TYPE.Get(assets_type_id, transaction); } if (!string.IsNullOrEmpty(obj.EMERGENCY_DEGREE)) { emergency_degree.ID = obj.EMERGENCY_DEGREE; emergency_degree = HelperObject_COM_TYPE.Get(emergency_degree, transaction); } if (!string.IsNullOrEmpty(obj.USING_DEPT_ID)) { using_dept_id.ID = obj.USING_DEPT_ID; using_dept_id = HelperObject_COM_DEPART.Get(using_dept_id, transaction); } if (!string.IsNullOrEmpty(obj.FAULT_TYPE)) { fault_type.ID = obj.FAULT_TYPE; fault_type = HelperObject_COM_TYPE.Get(fault_type, transaction); } if (!string.IsNullOrEmpty(obj.ASSETS_ID)) { assets_id.ID = obj.ASSETS_ID; assets_id = HelperObject_MCE_B_ASSETS.Get(assets_id, transaction); } return(obj); } else { throw new InvalidConstraintException(); } }