private void DisplayOperationData() { if (c.qsAct == ConfigFormAction.edit) { OperationForBackend op = empAuth.GetOperationData(c.qsId); if (op != null) { txtSortNo.Text = op.SortNo.Value.ToString(); txtOpSubject.Text = op.OpSubject; txtEnglishSubject.Text = op.EnglishSubject; txtIconImageFile.Text = op.IconImageFile; txtLinkUrl.Text = op.LinkUrl; chkIsNewWindow.Checked = op.IsNewWindow; chkIsHideSelf.Checked = op.IsHideSelf; txtCommonClass.Text = op.CommonClass; if (txtCommonClass.Text != "") { ddlCommonClasses.SelectedValue = txtCommonClass.Text; } //modification info ltrPostAccount.Text = op.PostAccount; ltrPostDate.Text = string.Format("{0:yyyy-MM-dd HH:mm:ss}", op.PostDate); if (op.MdfDate.HasValue) { ltrMdfAccount.Text = op.MdfAccount; ltrMdfDate.Text = string.Format("{0:yyyy-MM-dd HH:mm:ss}", op.MdfDate.Value); } btnSave.Visible = true; } } else if (c.qsAct == ConfigFormAction.add) { int newSortNo = empAuth.GetOperationMaxSortNo(c.qsId) + 10; txtSortNo.Text = newSortNo.ToString(); btnSave.Visible = true; } }