using Newtonsoft.Json;
|
using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Data;
|
using System.Drawing;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using System.Windows.Forms;
|
using wcftest.BussinessExtension.Handle;
|
using wcftest.orm;
|
using wcftest.sendToSap;
|
|
namespace WMS_TestForm
|
{
|
public partial class TestForm : Form
|
{
|
public TestForm()
|
{
|
InitializeComponent();
|
}
|
|
private void button1_Click(object sender, EventArgs e)
|
{
|
string _retResult = "aaa";
|
string _retMsg = "bbb";
|
GRMaterialEntity[] results = new GRMaterialEntity[1];
|
GRMaterialEntity zz = new GRMaterialEntity()
|
{
|
MaterialCode = "A7EQD-5141154321",
|
PoNumber = "11",
|
PoItem = "233232",
|
StorageLocation = "23232"
|
};
|
results[0] = zz;
|
SapSendFailRecodInfoHandler.AddForSH(results, _retResult, _retMsg);//记录失败表
|
}
|
|
private void button2_Click(object sender, EventArgs e)
|
{
|
int continerType = this.comboBox_DiePanJi.SelectedIndex + 1;
|
|
using (dbModel mod = new dbModel())
|
{
|
Base_Equipment fpMachine = null;
|
var isFull = Base_EquipmentHandler.FoldingPlateMachine_IsFull(mod, continerType, ref fpMachine);
|
this.tb_log.Text = "已满:" + isFull + ",对象:" + JsonConvert.SerializeObject(fpMachine);
|
}
|
}
|
|
private void button3_Click(object sender, EventArgs e)
|
{
|
int continerType = this.comboBox_DiePanJi.SelectedIndex + 1;
|
|
using (dbModel mod = new dbModel())
|
{
|
Base_EquipmentHandler.FoldingPlateMachine_UpdateCurQuantityZero(mod, continerType);
|
mod.SaveChanges();
|
button2_Click(null, null);
|
}
|
}
|
|
private void button4_Click(object sender, EventArgs e)
|
{
|
int continerType = this.comboBox_DiePanJi.SelectedIndex + 1;
|
|
using (dbModel mod = new dbModel())
|
{
|
Base_Equipment fpMachine = null;
|
var isFull = Base_EquipmentHandler.FoldingPlateMachine_IsFull(mod, continerType, ref fpMachine);
|
Base_EquipmentHandler.FoldingPlateMachine_UpdateCurQuantityAddOne(mod, fpMachine);
|
mod.SaveChanges();
|
button2_Click(null, null);
|
}
|
}
|
}
|
}
|