|
|
|
|
@ -14,6 +14,7 @@ using System.Windows.Input;
|
|
|
|
|
using System.Windows.Media;
|
|
|
|
|
using System.Windows.Media.Imaging;
|
|
|
|
|
using System.Windows.Shapes;
|
|
|
|
|
using Xceed.Wpf.DataGrid;
|
|
|
|
|
using XGL.Data;
|
|
|
|
|
using XGL.Dats.DBServiceFinishProd;
|
|
|
|
|
|
|
|
|
|
@ -30,14 +31,16 @@ namespace XGLFinishPro.Views
|
|
|
|
|
public string _useMan = "";
|
|
|
|
|
public string _costCenter = "";
|
|
|
|
|
public string _workQuntity = "";
|
|
|
|
|
public string workOrdercode = "";
|
|
|
|
|
public ExecReportWorkWin()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ExecReportWorkWin(string workOrder, string quantity)
|
|
|
|
|
public ExecReportWorkWin(string workOrder, string quantity,string workOrdercode)
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
this.workOrdercode = workOrdercode;
|
|
|
|
|
this.lbCurrOrderNo.Content = workOrder;
|
|
|
|
|
this.txtQuantity.Text = quantity;
|
|
|
|
|
}
|
|
|
|
|
@ -117,6 +120,7 @@ namespace XGLFinishPro.Views
|
|
|
|
|
private void Window_Loaded(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
InitComBoboxData();
|
|
|
|
|
piciInitComBoboxData();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void txtQuantity_TextChanged(object sender, TextChangedEventArgs e)
|
|
|
|
|
@ -183,6 +187,32 @@ namespace XGLFinishPro.Views
|
|
|
|
|
comboBoxCostCenter.DisplayMemberPath = "factory_name";
|
|
|
|
|
comboBoxCostCenter.SelectedIndex = 0;
|
|
|
|
|
}
|
|
|
|
|
private void piciInitComBoboxData()
|
|
|
|
|
{
|
|
|
|
|
DataTable dt = userDbWareHouse.piciGetCostCenter(this.workOrdercode);
|
|
|
|
|
if (dt == null)
|
|
|
|
|
{
|
|
|
|
|
CustomMessageBox.Show("没有找到批次号,请联系管理员!", CustomMessageBoxIcon.Warning);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
List<string> strings =new List<string>();
|
|
|
|
|
foreach (System.Data.DataRow row in dt.Rows)
|
|
|
|
|
{
|
|
|
|
|
strings.Add(row[0].ToString());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<CostCenter> listCostCenter = Utils.ToDataList<CostCenter>(dt);
|
|
|
|
|
//comboDryRoomInfo.SelectedValuePath = "quipName";
|
|
|
|
|
//comboDryRoomInfo.DisplayMemberPath = "quipCode";
|
|
|
|
|
//comboDryRoomInfo.ItemsSource = listEquip;
|
|
|
|
|
//绑定
|
|
|
|
|
pici.ItemsSource = strings;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void comboBoxCostCenter_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public class CostCenter
|
|
|
|
|
{
|
|
|
|
|
|