Пример #1
0
        /// <summary>
        /// 构造函数。
        /// </summary>
        public LotExchangeWoViewContent(ExchangeWoFlag flag)
            : base()
        {
            exchangeType = flag;
            if (exchangeType == ExchangeWoFlag.Exchange)
            {
                this.TitleName = StringParser.Parse("${res:FanHai.Hemera.Addins.WIP.LotExchangeWoViewContent.Title01}");//"转工单作业";  //视图标题。
            }
            else if (exchangeType == ExchangeWoFlag.Repair)
            {
                this.TitleName = StringParser.Parse("${res:FanHai.Hemera.Addins.WIP.LotExchangeWoViewContent.Title02}");//"返工单作业";
            }
            else if (exchangeType == ExchangeWoFlag.MultiExchange)
            {
                this.TitleName = StringParser.Parse("${res:FanHai.Hemera.Addins.WIP.LotExchangeWoViewContent.Title03}");//"批量转工单";
            }
            Panel panel = new Panel();

            panel.Dock        = DockStyle.Fill;
            panel.BorderStyle = BorderStyle.FixedSingle;
            LotExchangeWo commonCtrl = new LotExchangeWo(flag);

            commonCtrl.Dock = DockStyle.Fill;
            panel.Controls.Add(commonCtrl);
            this.control = panel;
        }
Пример #2
0
 /// <summary>
 /// 构造函数。
 /// </summary>
 /// <param name="isrepair"></param>
 public LotExchangeWo(ExchangeWoFlag flag)
 {
     InitializeComponent();
     exchangeType = flag;
     InitializeLanguage();
     GridViewHelper.SetGridView(gvExchangeWo);
 }
Пример #3
0
 /// <summary>
 /// 构造函数。
 /// </summary>
 /// <param name="repair"></param>
 public LotExchgWoMultiForm(ExchangeWoFlag flag)
 {
     InitializeComponent();
     this._flag = flag;
     InitializeLanguage();
     if (flag == ExchangeWoFlag.Exchange)
     {
         this._flagName                = StringParser.Parse("${res:FanHai.Hemera.Addins.WIP.LotExchgWoMultiForm._flagName002}");//"转工单";
         this.chkIsPallet.Checked      = true;
         this.chkIsPallet.Visible      = false;
         this.lciIsPalletNo.Visibility = LayoutVisibility.Never;
     }
     else
     {
         this._flagName = StringParser.Parse("${res:FanHai.Hemera.Addins.WIP.LotExchgWoMultiForm._flagName003}");//"返工单";
     }
     GridViewHelper.SetGridView(gvExchangeWo);
 }
Пример #4
0
 public LotExchgWoNoSingleForm(ExchangeWoFlag repair)
 {
     InitializeComponent();
     this.sRepair = repair;
 }