Exemplo n.º 1
0
 private void ShowInfo(int _id)
 {
     BLL.app_oauth   bll   = new BLL.app_oauth();
     Model.app_oauth model = bll.GetModel(_id);
     txtTitle.Text           = model.title;
     rblIsLock.SelectedValue = model.is_lock.ToString();
     txtSortId.Text          = model.sort_id.ToString();
     txtApiPath.Text         = model.api_path;
     txtAppId.Text           = model.app_id;
     txtAppKey.Text          = model.app_key;
     txtImgUrl.Text          = model.img_url;
     txtRemark.Text          = model.remark;
 }
Exemplo n.º 2
0
        private bool DoEdit(int _id)
        {
            bool result = true;

            BLL.app_oauth   bll   = new BLL.app_oauth();
            Model.app_oauth model = bll.GetModel(_id);

            model.title    = txtTitle.Text.Trim();
            model.is_lock  = int.Parse(rblIsLock.SelectedValue);
            model.sort_id  = int.Parse(txtSortId.Text.Trim());
            model.api_path = txtApiPath.Text.Trim();
            model.app_id   = txtAppId.Text.Trim();
            model.app_key  = txtAppKey.Text.Trim();
            model.img_url  = txtImgUrl.Text.Trim();
            model.remark   = txtRemark.Text;
            if (!bll.Update(model))
            {
                result = false;
            }

            return(result);
        }
Exemplo n.º 3
0
        private bool DoEdit(int _id)
        {
            bool result = true;
            BLL.app_oauth bll = new BLL.app_oauth();
            Model.app_oauth model = bll.GetModel(_id);

            model.title = txtTitle.Text.Trim();
            model.is_lock = int.Parse(rblIsLock.SelectedValue);
            model.sort_id = int.Parse(txtSortId.Text.Trim());
            model.api_path = txtApiPath.Text.Trim();
            model.app_id = txtAppId.Text.Trim();
            model.app_key = txtAppKey.Text.Trim();
            model.img_url = txtImgUrl.Text.Trim();
            model.remark = txtRemark.Text;
            if (!bll.Update(model))
            {
                result = false;
            }

            return result;
        }
Exemplo n.º 4
0
 private void ShowInfo(int _id)
 {
     BLL.app_oauth bll = new BLL.app_oauth();
     Model.app_oauth model = bll.GetModel(_id);
     txtTitle.Text = model.title;
     rblIsLock.SelectedValue = model.is_lock.ToString();
     txtSortId.Text = model.sort_id.ToString();
     txtApiPath.Text = model.api_path;
     txtAppId.Text = model.app_id;
     txtAppKey.Text = model.app_key;
     txtImgUrl.Text = model.img_url;
     txtRemark.Text = model.remark;
 }