| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- /*******************************************************************************
- * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
- * 类的信息:
- * 1.程序名称:F_PC_0106.cs
- * 2.功能描述:操作时间及备注录入
- * 编辑履历:
- * 作者 日期 版本 修改内容
- * 庄天威 2014/10/18 1.00 新建
- *******************************************************************************/
- using System;
- using System.Windows.Forms;
- using Dongke.IBOSS.PRD.Basics.BaseControls;
- using Dongke.IBOSS.PRD.Basics.BaseResources;
- namespace Dongke.IBOSS.PRD.Client.PCModule
- {
- /// <summary>
- /// 操作时间及备注录入
- /// </summary>
- public partial class F_PC_0106 : FormBase
- {
- #region 成员变量
- // 窗体标题
- private string _titleStr = "";
- // 实例窗体
- private F_PC_0101 _fpc0101;
- #endregion
- #region 构造函数
- public F_PC_0106(F_PC_0101 fpc0101, string titleStr)
- {
- InitializeComponent();
- this._titleStr = titleStr;
- this._fpc0101 = fpc0101;
- this._fpc0101.SetTimeOrRemarks(null, "");
- this.Text = _titleStr;
- this.btnSave.Text = ButtonText.BTN_SAVE;
- }
- #endregion
- #region 事件
- /// <summary>
- /// 保存按钮事件
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void btnSave_Click(object sender, EventArgs e)
- {
- if (Convert.ToDateTime(this.txtDateStart.Text) > DateTime.Now)
- {
- MessageBox.Show("不可设置今天以后的时间!", this.Text,
- MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
- if (string.IsNullOrEmpty(this.txtRemarks.Text))
- {
- MessageBox.Show("说明/备注必须填写", this.Text,
- MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
- this._fpc0101.SetTimeOrRemarks(Convert.ToDateTime(this.txtDateStart.Text), this.txtRemarks.Text);
- this.DialogResult = DialogResult.OK;
- }
- #endregion
- }
- }
|