| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- using Core.Mes.Client.Comm.Tool;
- using CoreFS.CA06;
- using Pur.Entity;
- namespace Pur.Pop_upWindow
- {
- public partial class frmPop_selectDate : FrmPmsBase
- {
- public string tips = "0";
- public string type = "0";//0计算月充值 1:复制月定额
- public string computerType = "0";
- public string limitCount = "";
- public DateTime date;
- public frmPop_selectDate()
- {
- InitializeComponent();
- }
- public frmPop_selectDate(OpeBase OB,String str)
- {
- InitializeComponent();
- this.ob = OB;
- this.type = str;
- }
- private void frmPop_selectDate_Load(object sender, EventArgs e)
- {
- Qmouth.Value = DateTime.Now;
- Qmouth.Format = "yyyy/MM";
- txt_computer_type.SelectedIndex =0;
- this.Text = "选择月份";
- LimitCount.SelectedIndex = 2;
- }
- private void btn_sure_Click(object sender, EventArgs e)
- {
- if (String.IsNullOrEmpty(Qmouth.Text.Trim()))
- {
- MessageUtil.ShowTips("请选择日期");
- tips = "0";
- return;
- }
- date = Convert.ToDateTime(Qmouth.Value);
- if (date.Month != DateTime.Now.Month)
- {
- if (MessageUtil.ShowYesNoAndQuestion("非当前年月,确定选择?") != DialogResult.Yes)
- {
- tips = "0";
- return;
- }
- }
- if (txt_computer_type.SelectedIndex == -1)
- {
- MessageUtil.ShowTips("请选择计算模式");
- tips = "0";
- return;
- }
- if(LimitCount.SelectedIndex == -1)
- {
- MessageUtil.ShowTips("请选择限额倍数");
- tips = "0";
- return;
- }
- computerType = txt_computer_type.Value.ToString().Trim();
- limitCount = LimitCount.Value.ToString().Trim();
- tips = "1";
- this.Close();
- }
- }
- }
|