コード例 #1
0
        private void MemberSettings_GetById()
        {
            DataTable dtSettings;

            Model.MemberSettings memberSettings = new Model.MemberSettings()
            {
                MemberId = this.MemberId
            };
            using (var scope = Startup.Container.BeginLifetimeScope())
            {
                var MemberSettings = scope.Resolve <IMemberSettings>();
                dtSettings = MemberSettings.MemberSettings_GetById(memberSettings);
            }
            if (dtSettings != null && dtSettings.Rows.Count > 0)
            {
                rbtnIsActive.SelectedValue          = (dtSettings.Rows[0]["IsActive"] == DBNull.Value) ? "False" : dtSettings.Rows[0]["IsActive"].ToString();
                rbtnIsAppLoginEnabled.SelectedValue = (dtSettings.Rows[0]["IsAppLoginEnabled"] == DBNull.Value) ? "False" : dtSettings.Rows[0]["IsAppLoginEnabled"].ToString();
                txtUserName.Text = dtSettings.Rows[0]["UserName"].ToString();
            }
        }
コード例 #2
0
 public DataTable MemberSettings_GetById(Model.MemberSettings memberSettings)
 {
     return(_MemberSettings.MemberSettings_GetById(memberSettings));
 }
コード例 #3
0
 public int MemberSettings_Save(Model.MemberSettings memberSettings)
 {
     return(_MemberSettings.MemberSettings_Save(memberSettings));
 }