public void InitData(string _ggjlid) { InfoID = _ggjlid; using (SinoSZClientBase.MetaDataQueryService.MetaDataQueryServiceClient _rsc = new SinoSZClientBase.MetaDataQueryService.MetaDataQueryServiceClient()) { _infoData = _rsc.GetDataCheckMsg(_ggjlid); } if (_infoData == null) { SetReadOnly(); return; } ShjlID = _infoData.SHJLID; this.te_CDDW.InitRootDWID(SessionClass.RootOrgID); this.te_BH.EditValue = _infoData.BH; this.te_Hide.EditValue = _infoData.SFYC; this.te_FBSJ.EditValue = _infoData.FBSJ; this.te_FBR.EditValue = _infoData.FBR; this.te_FBDW.EditValue = _infoData.FBDWMC; this.te_CDDW.SelectedDWDM(this._infoData.CDDWDM); this.te_Tel.EditValue = _infoData.LXDH; this.te_Email.EditValue = _infoData.YJDZ; this.te_Title.EditValue = _infoData.XXBT; this.te_Context.EditValue = _infoData.XXNR; this.te_FKJG.EditValue = _infoData.FKJG; this.te_FKSJ.EditValue = _infoData.FKSJ; if (SessionClass.CurrentSinoUser.CurrentPost.PostDWDM == _infoData.FBDWDM && _infoData.FKJG == "") { ModifyFBXX(); } else if (SessionClass.CurrentSinoUser.CurrentPost.PostDWDM == _infoData.CDDWDM) { FKXX(); } else { SetReadOnly(); } }
public void InitNew(string _shjlid, string _title, string _msg) { string _shdwid; ShjlID = _shjlid; this.te_BH.Properties.ReadOnly = true; this.te_Hide.ForeColor = Color.Blue; this.te_FBDW.EditValue = SessionClass.CurrentSinoUser.CurrentPost.PostDWMC; this.te_FBDW.Properties.ReadOnly = true; this.te_FBR.EditValue = SessionClass.CurrentSinoUser.UserName; this.te_FBR.Properties.ReadOnly = true; this.te_FBSJ.EditValue = DateTime.Now; this.te_FBSJ.Properties.ReadOnly = true; this.te_FKJG.Properties.ReadOnly = true; this.te_FKSJ.Properties.ReadOnly = true; this.te_CDDW.ForeColor = Color.Blue; this.te_Context.EditValue = _msg; this.te_Context.ForeColor = Color.Blue; this.te_Title.EditValue = _title; this.te_Title.ForeColor = Color.Blue; this.te_Tel.ForeColor = Color.Blue; this.te_Email.ForeColor = Color.Blue; this.te_CDDW.InitRootDWID(SessionClass.CurrentSinoUser.CurrentPost.PostDwID); this.simpleButton2.Text = "发布"; using (SinoSZClientBase.MetaDataQueryService.MetaDataQueryServiceClient _rsc = new SinoSZClientBase.MetaDataQueryService.MetaDataQueryServiceClient()) { _shdwid = _rsc.GetSjshInfo_DWID(this.ShjlID); } if (_shdwid != "") { this.te_CDDW.SelectedCode(decimal.Parse(_shdwid)); } }
private void simpleButton3_Click(object sender, EventArgs e) { //删除 if (_infoData == null) { return; } if (XtraMessageBox.Show("请确认是否要删除此公告记录?", "删除提示", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == System.Windows.Forms.DialogResult.Yes) { using (SinoSZClientBase.MetaDataQueryService.MetaDataQueryServiceClient _rsc = new SinoSZClientBase.MetaDataQueryService.MetaDataQueryServiceClient()) { if (_rsc.DeleteDataCheckMsg(this._infoData.ID)) { XtraMessageBox.Show("删除审核公告成功!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); this.DialogResult = DialogResult.OK; this.Close(); } else { XtraMessageBox.Show("删除审核公告失败!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } } } }