public DataTable M_StoreAuthorizations_Select(M_StoreAuthorizations_Entity msa)
        {
            M_Authorizations_DL madl = new M_Authorizations_DL();
            DataTable           dt   = madl.M_StoreAuthorizations_Select(msa);

            return(dt);
        }
 public MasterTouroku_Staff_BL()
 {
     StaffDL  = new M_Staff_DL();
     MmpDL    = new M_MultiPorpose_DL();
     MauthoDL = new M_Authorizations_DL();
     storeDL  = new M_Store_DL();
 }
        /// <summary>
        /// Access Check
        /// </summary>
        /// <param name="mae">Staff And Program Relation Check</param>
        /// <returns>if no access to open then return null else return all info</returns>
        public M_AuthorizationsDetails_Entity M_Authorizations_AccessCheck(M_Authorizations_Entity mae)
        {
            M_Authorizations_DL madl            = new M_Authorizations_DL();
            DataTable           dtAuthorization = madl.M_Authorizations_AccessCheck(mae);

            if (dtAuthorization.Rows.Count > 0)
            {
                string messageID = dtAuthorization.Rows[0]["MessageID"].ToString();
                if (messageID.Equals("allow"))
                {
                    M_AuthorizationsDetails_Entity made = new M_AuthorizationsDetails_Entity
                    {
                        Insertable                    = dtAuthorization.Rows[0]["Insertable"].ToString(),
                        Updatable                     = dtAuthorization.Rows[0]["Updatable"].ToString(),
                        Deletable                     = dtAuthorization.Rows[0]["Deletable"].ToString(),
                        Inquirable                    = dtAuthorization.Rows[0]["Inquirable"].ToString(),
                        Printable                     = dtAuthorization.Rows[0]["Printable"].ToString(),
                        Outputable                    = dtAuthorization.Rows[0]["Outputable"].ToString(),
                        Runable                       = dtAuthorization.Rows[0]["Runable"].ToString(),
                        StoreAuthorizationsCD         = dtAuthorization.Rows[0]["StoreAuthorizationsCD"].ToString(),
                        StoreAuthorization_ChangeDate = dtAuthorization.Rows[0]["ChangeDate"].ToString(),

                        //KTP 2019-05-29 select ProgramName and Type
                        ProgramID   = dtAuthorization.Rows[0]["ProgramID"].ToString(),
                        ProgramName = dtAuthorization.Rows[0]["ProgramName"].ToString(),
                        ProgramType = dtAuthorization.Rows[0]["Type"].ToString()
                    };
                    return(made);
                }
                else
                {
                    mae.MessageID = messageID;
                    return(null);
                }
            }
            return(null);
        }