private void LoadData() { try { if (codeProjectInfo.ID > 0) { List <CodeProjectInfo> lists = codeProjectInfoBLL.SelectList(codeProjectInfo, null, "ID", Common.enums.WhereType.Columns); if (lists != null && lists.Count > 0) { codeProjectInfo = lists[0]; } } else { string templatePath = Path.Combine(@System.AppDomain.CurrentDomain.BaseDirectory, autoTemPath); codeProjectInfo.TEMPLATE_FOLDER = templatePath; //this.TEMPLATE_FOLDER.Text = templatePath; } this.BtnCreate.Visible = codeProjectInfo.ID > 0; FormHelp.SetControlsByEntity(codeProjectInfo, this.panel1); } catch (Exception ex) { MessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void LoadData() { if (osZbPurchaseProjectInfo != null) { FormHelp.SetControlsByEntity(osZbPurchaseProjectInfo, this.groupBox2); } }
private void LoadData() { try { List <CodeProjectTemplateConfigInfo> lists = codeProjectTemplateConfigInfoBLL.SelectList(codeProjectTemplateConfigInfo, null, "ID", WhereType.Columns); if (lists != null && lists.Count > 0) { codeProjectTemplateConfigInfo = lists[0]; } else { codeProjectTemplateConfigInfo.TemplateContent = this.templateContent.Text ?? ""; } FormHelp.SetControlsByEntity(codeProjectTemplateConfigInfo, this.panel1); } catch (Exception ex) { MessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public void LoadData() { try { AppAccountMgn selectItem = new AppAccountMgn(); selectItem.ID = appAccountMgn.ID; List <AppAccountMgn> lists = appAccountMgnBLL.SelectList(selectItem, null, "ID", WhereType.Columns); if (lists != null && lists.Count > 0) { appAccountMgn = lists[0]; //加密码和管理密码不对外展示 ObjectUtil.CopyPop(appAccountMgn, ref selectItem, "ENCPWD", "MGNPWD"); FormHelp.SetControlsByEntity(selectItem, this.panel1); } } catch (Exception ex) { MessageHelper.ShowError(ex); } }
private void LoadData() { try { codeProjectDbConfigInfo.ProjectId = codeProjectInfo.ID; List <CodeProjectDbConfigInfo> lists = codeProjectDbConfigInfoBLL.SelectList(codeProjectDbConfigInfo, null, "ProjectId", WhereType.Columns); if (lists != null && lists.Count > 0) { codeProjectDbConfigInfo = lists[0]; } //CacheHelper.RemoveCacheByKey(CacheConstant.DBCONFIG); //缓存7天 CacheHelper.SetCache(CacheConstant.DBCONFIG, codeProjectDbConfigInfo, 60 * 60 * 24 * 7); FormHelp.SetControlsByEntity(codeProjectDbConfigInfo, this.panel1); } catch (Exception ex) { MessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } }