Exemple #1
0
        private void btnBatch_Click(object sender, RoutedEventArgs e)
        {
            Button btn           = sender as Button;
            int    corpProductId = Convert.ToInt32(btn.Tag);

            BatchOper win = new BatchOper(this);

            win.id = corpProductId;
            win.Show();
        }
Exemple #2
0
        private void productionEdit_Click(object sender, RoutedEventArgs e)
        {
            Button btn = sender as Button;

            //BatchService ser = new BatchService();
            int productionId = Convert.ToInt32(btn.Tag);
            int corpId       = Convert.ToInt32(btn.Uid);

            //  pm.id = Convert.ToInt32(btn.Tag.ToString());
            BatchService serv = new BatchService();
            dynamic      dy   = serv.queryProductionById(productionId);

            BatchOper oper = new BatchOper(this);

            oper.id    = corpId;
            oper.batch = dy;
            oper.Show();
        }