You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.5 KiB
C#

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;
namespace POSV.Stock
{
public partial class StoreStockCheckApplyForm : BusinessForm
{
public int type = 0;
public StoreStockCheckApplyForm(int type)
{
InitializeComponent();
this.type = type;
this.controlBox.Text = "盘点单"+ (type==1?"审核":"作废");
this.controlBox.ShowApplicationVersion = false;
this.labelX9.Text = "提醒:是否"+ (type == 1 ? "审核" : "作废") + "此单据?";
}
private void OnCloseTouchClick(object sender, EventArgs e)
{
//再关闭当前窗体
this.Close();
}
private void BtnCancel(object sender, EventArgs e)
{
//再关闭当前窗体
this.Close();
}
private void BtnOk(object sender, EventArgs e)
{
if (this.type==1) {
OnApplyClick?.Invoke(sender, new NotifyEventArgs(NotifyAction.Notify, "", ""));
} else if (this.type==2) {
OnCancelClick?.Invoke(sender, new NotifyEventArgs(NotifyAction.Notify, "", ""));
}
//再关闭当前窗体
this.Close();
}
public event NofityEventHandler OnApplyClick;
public event NofityEventHandler OnCancelClick;
}
}