zendao工作分解

private void btnFromAdd_Click(object sender, EventArgs e) { if (String.IsNullOrEmpty(cmbJobType.Text)) { ExceptionMsgBox.This.ShowMessageBox(MessageType.Warning, "Select JobType", this.Text); return; } //if (String.IsNullOrEmpty(cmbFromPort.Text) || String.IsNullOrEmpty(cmbFromCST.Text)) if (String.IsNullOrEmpty(cmbFromPort.Text)) { ExceptionMsgBox.This.ShowMessageBox(MessageType.Warning, "Select Port", this.Text); return; } if( String.IsNullOrEmpty(txtFromCST.Text)) { ExceptionMsgBox.This.ShowMessageBox(MessageType.Warning, "Check Carrier", this.Text); return; } if (this.duplicateCheckCST(txtFromCST.Text)) { return; } //Split or Scrap or SlotChange ,only select one CST if ( (string.Equals(cmbJobType.Text,SortJobType.Split) || string.Equals(cmbJobType.Text,SortJobType.Scrap)|| string.Equals(cmbJobType.Text,SortJobType.SlotChange)) && tabControl1.TabCount >= 1) { ExceptionMsgBox.This.ShowMessageBox(MessageType.Warning, "SortJobType is " + cmbJobType.Text + ", Source CST only choice One!", this.Text); return; } //string grdtitle = "grdFrom" + cmbFromCST.Text; string grdtitle = "grdFrom" + txtFromCST.Text; TabPage tab = new TabPage(); //tab.Text = this.cmbFromPort.Text + "_" + this.cmbFromCST.Text; tab.Text = cmbFromPort.Text; //tab.Name = "tp" + cmbFromCST.Text; tab.Name = "tp" + txtFromCST.Text; //this.createDesignInstance(tab, grdtitle, cmbFromCST.Text); this.createDesignInstance(tab, grdtitle, txtFromCST.Text); this.tabControl1.TabPages.Add(tab); try { UGrid grdFrom = new UGrid(); Control[] ctrl = this.tabControl1.TabPages[tabControl1.TabCount - 1].Controls.Find(grdtitle, true); if (ctrl.Length > 0) { grdFrom = ctrl[0] as UGrid; } this.tabControl1.SelectTab(tabControl1.TabCount - 1); // zendao 490 setDummyGlassRowHighLight 20210830 foreach (TabPage page in tabControl1.TabPages) { foreach (Control tabPanel in page.Controls) { foreach (Control grid in tabPanel.Controls) { if (grid is UGrid) { UGrid grdProductList = new UGrid(); grdProductList = (UGrid)grid; setDummyGlassRowHighLight(grdProductList); setEmptyGlassActivation(grdProductList); grdProductList.SetPerformAutoResize(); } } } } } catch (Exception err) { UILogger.This.Trace(err); } }
06-09

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值