修改质量样板

This commit is contained in:
2023-02-14 17:40:34 +08:00
parent ca484ca4d6
commit fa156db08c
24 changed files with 1224 additions and 8 deletions
@@ -27,12 +27,18 @@ namespace FineUIPro.Web.BaseInfo
{
this.btnSave.Hidden = true;
}
CompanyModelKindService.InitCompanyModelKindDownList(this.drpCompanyModelKindId,true);
this.drpCompanyModelKindId.SelectedValue = BLL.Const._Null;
if (!string.IsNullOrEmpty(id))
{
Model.Base_CompanyModel CompanyModel = BLL.CompanyModelService.GetCompanyModelById(id);
if (CompanyModel != null)
{
this.hdId.Text = id;
if (!string.IsNullOrEmpty(CompanyModel.CompanyModelKindId))
{
this.drpCompanyModelKindId.SelectedValue = CompanyModel.CompanyModelKindId;
}
this.txtModelType.Text = CompanyModel.ModelType;
this.txtRemark.Text = CompanyModel.Remark;
BindGrid();
@@ -73,8 +79,14 @@ namespace FineUIPro.Web.BaseInfo
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
{
if (this.drpCompanyModelKindId.SelectedValue == BLL.Const._Null)
{
ShowNotify("请选择样板类别!", MessageBoxIcon.Warning);
return;
}
string id = Request.Params["CompanyModelId"];
Model.Base_CompanyModel newCompanyModel = new Model.Base_CompanyModel();
newCompanyModel.CompanyModelKindId = this.drpCompanyModelKindId.SelectedValue;
newCompanyModel.ModelType = this.txtModelType.Text.Trim();
newCompanyModel.Remark = this.txtRemark.Text.Trim();
if (!string.IsNullOrEmpty(id))