public void SaveTName() { if (txtTName.Text.Trim() != "") { HBBLL hb = new HBBLL(); if (TID.Value.ToString() == "") { hb.AddYPPT(txtTName.Text.Trim(), rKuangJi.Checked == true?rKuangJi.BoxLabel:rGeRen.BoxLabel, SessionBox.GetUserSession().PersonNumber, SessionBox.GetUserSession().DeptNumber); Ext.Msg.Alert("提示", "新增成功!").Show(); Ext.DoScript("#{placeTemplateStore}.reload();"); } else { hb.UpdateYPPT(txtTName.Text.Trim(), int.Parse(TID.Value.ToString())); Ext.Msg.Alert("提示", "修改成功!").Show(); Ext.DoScript("#{placeTemplateStore}.reload();"); } } }