1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- 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 WCS_Client.UC;
- namespace WCS_Client.Frm
- {
- public partial class FrmCMByWorkShop : Form
- {
- public FrmCMByWorkShop()
- {
- InitializeComponent();
- }
- private void btnSave_Click(object sender, EventArgs e)
- {
- if (cmbWorkShopNO.Text == "" || cmbProLine.Text == "")
- {
- MessageUtil.ShowTips("车间编号和生产线不能为空!");
- return;
- }
- string msg = BaseWorkflow.CMByWorkShop(cmbWorkShopNO.Text, cmbProLine.Text);
- MessageUtil.ShowTips(msg);
- this.Close();
- }
- private void btnCancel_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- private void cmbProLine_DropDown(object sender, EventArgs e)
- {
- cmbWorkShopNO.Items.Clear();
- TryCachHelper.TryExecute((db) =>
- {
- if (cmbWorkShopNO.Text == "1")
- {
- cmbProLine.Items.Add("Mw_1_A");
- cmbProLine.Items.Add("Mw_1_B");
- cmbProLine.Items.Add("Mw_1_C");
- }
-
- });
- }
- }
- }
|