private void BindData() { if (StrCmd == "add") { litInfo.Text = "新增"; } else { litInfo.Text = "更新"; } if (IntParam <= 0) { return; } GamePropertySub property = FacadeManage.aidePlatformFacade.GetGamePropertySubInfo(IntParam, ownerID); if (property == null) { return; } ddlGameProperty.SelectedValue = property.ID.ToString(); CtrlHelper.SetText(txtCount, property.Count.ToString()); CtrlHelper.SetText(txtSortID, property.SortID.ToString()); }
protected void btnSave_Click(object sender, EventArgs e) { //判断权限 GamePropertySub propertySub = new GamePropertySub(); propertySub.ID = Convert.ToInt32(ddlGameProperty.SelectedValue.Trim()); propertySub.OwnerID = ownerID; propertySub.Count = CtrlHelper.GetInt(txtCount, 0); propertySub.SortID = CtrlHelper.GetInt(txtSortID, 0); if (StrCmd == "add") { try { FacadeManage.aidePlatformFacade.InsertGamePropertySub(propertySub); ShowInfo("新增成功"); } catch { ShowInfo("新增失败"); } } else { try { FacadeManage.aidePlatformFacade.UpdateGamePropertySub(propertySub); ShowInfo("更新成功"); } catch { ShowInfo("更新失败"); } } }
public void UpdateGamePropertySub(GamePropertySub property) { this.aidePlatformData.UpdateGamePropertySub(property); }
public void InsertGamePropertySub(GamePropertySub property) { this.aidePlatformData.InsertGamePropertySub(property); }