// =============================================================================== // Query Update // ============ public int QueryUpdate(Kbn職位区分 kbn職位区分, Kbn職位区分CB cb) { AssertObjectNotNull("kbn職位区分", kbn職位区分); AssertConditionBeanNotNull(cb); SetupCommonColumnOfUpdateIfNeeds(kbn職位区分); FilterEntityOfUpdate(kbn職位区分); AssertEntityOfUpdate(kbn職位区分); return(this.Dao.UpdateByQuery(cb, kbn職位区分)); }
protected int DelegateDelete(Kbn職位区分 e) { if (!ProcessBeforeDelete(e)) { return(1); } return(this.Dao.DeleteNonstrict(e)); }
protected int DelegateUpdate(Kbn職位区分 e) { if (!ProcessBeforeUpdate(e)) { return(1); } return(this.Dao.UpdateNonstrictModifiedOnly(e)); }
protected int DelegateInsert(Kbn職位区分 e) { if (!ProcessBeforeInsert(e)) { return(1); } return(this.Dao.Insert(e)); }
public virtual Kbn職位区分 SelectEntityWithDeletedCheck(Kbn職位区分CB cb) { AssertConditionBeanNotNull(cb); Kbn職位区分 entity = SelectEntity(cb); AssertEntityNotDeleted(entity, cb); return(entity); }
public virtual void Update(Kbn職位区分 entity) { AssertEntityNotNull(entity); AssertEntityHasVersionNoValue(entity); AssertEntityHasUpdateDateValue(entity); int updatedCount = this.DelegateUpdate(entity); AssertUpdatedEntity(entity, updatedCount); }
/// <summary> /// 権限区分に紐づいた画面マスタのリストを返します。 /// </summary> /// <param name="職位区分">職位区分</param> /// <returns>画面マスタのリスト</returns> public List <Mst画面マスタ> Get画面マスタList(Kbn職位区分 職位区分) { var 権限マスタcb = new Mst権限マスタCB(); 権限マスタcb.SetupSelect_Mst画面マスタ().WithKbnメニュー区分(); 権限マスタcb.Query().ConditionQueryKbn職位区分.Set職位コード_Equal(職位区分.職位コード); 権限マスタcb.Query().ConditionQueryMst画面マスタ.AddOrderBy_優先順位_Asc(); var 権限マスタList = 権限マスタBhv.SelectList(権限マスタcb); var 画面マスタList = 権限マスタList.Select(x => x.Mst画面マスタ).ToList(); return(画面マスタList.Any() ? 画面マスタList : new List <Mst画面マスタ>()); }
public virtual void Delete(Kbn職位区分 entity) { HelpDeleteInternally <Kbn職位区分>(entity, new MyInternalDeleteCallback(this)); }
public void InsertOrUpdate(Kbn職位区分 entity) { HelpInsertOrUpdateInternally <Kbn職位区分, Kbn職位区分CB>(entity, new MyInternalInsertOrUpdateCallback(this)); }
// =============================================================================== // Pull out Foreign // ================ #region Pullout Foreign #endregion // =============================================================================== // Entity Update // ============= #region Basic Entity Update public virtual void Insert(Kbn職位区分 entity) { AssertEntityNotNull(entity); this.DelegateInsert(entity); }
public virtual void LoadMst権限マスタList(Kbn職位区分 kbn職位区分, LoadReferrerOption <Mst権限マスタCB, Mst権限マスタ> loadReferrerOption) { AssertObjectNotNull("kbn職位区分", kbn職位区分); AssertObjectNotNull("loadReferrerOption", loadReferrerOption); LoadMst権限マスタList(xnewLRLs <Kbn職位区分>(kbn職位区分), loadReferrerOption); }
public virtual void LoadMst権限マスタList(Kbn職位区分 kbn職位区分, ConditionBeanSetupper <Mst権限マスタCB> conditionBeanSetupper) { AssertObjectNotNull("kbn職位区分", kbn職位区分); AssertObjectNotNull("conditionBeanSetupper", conditionBeanSetupper); LoadMst権限マスタList(xnewLRLs <Kbn職位区分>(kbn職位区分), conditionBeanSetupper); }
public virtual void LoadDch従業員職位履歴台帳List(Kbn職位区分 kbn職位区分, LoadReferrerOption <Dch従業員職位履歴台帳CB, Dch従業員職位履歴台帳> loadReferrerOption) { AssertObjectNotNull("kbn職位区分", kbn職位区分); AssertObjectNotNull("loadReferrerOption", loadReferrerOption); LoadDch従業員職位履歴台帳List(xnewLRLs <Kbn職位区分>(kbn職位区分), loadReferrerOption); }
// =============================================================================== // Load Referrer // ============= #region Load Referrer public virtual void LoadDch従業員職位履歴台帳List(Kbn職位区分 kbn職位区分, ConditionBeanSetupper <Dch従業員職位履歴台帳CB> conditionBeanSetupper) { AssertObjectNotNull("kbn職位区分", kbn職位区分); AssertObjectNotNull("conditionBeanSetupper", conditionBeanSetupper); LoadDch従業員職位履歴台帳List(xnewLRLs <Kbn職位区分>(kbn職位区分), conditionBeanSetupper); }