private void frmMenuST_Load(object sender, EventArgs e) { try { Cursor.Current = Cursors.WaitCursor; this.Location = Point.Empty; //销售出库红字 pbSellOut.Enabled = Common.s_Competence.XSCK; //采购入库 pbPurIn.Enabled = Common.s_Competence.CGRK; //采购退货 pbPurRefund.Enabled = Common.s_Competence.CGRK; //材料出库 pbStuffOut.Enabled = Common.s_Competence.CLCK; //产成品入库 pbProIn.Enabled = Common.s_Competence.CCPRK; //盘点 pbCheck.Enabled = Common.s_Competence.PD; //其它出库 pbAllotOut.Enabled = pbPackOut.Enabled = pbApartOut.Enabled = Common.s_Competence.QTCK; //其它入库 pbAlloIn.Enabled = pbPackIn.Enabled = pbApartIn.Enabled = Common.s_Competence.QTRK; foreach (Control con in this.Controls) { menu.SetEnabled(con); } } catch { return; } finally { Cursor.Current = Cursors.Default; } }
private void frmMenuPU_Load(object sender, EventArgs e) { try { Cursor.Current = Cursors.WaitCursor; this.Location = Point.Empty; //采购到货 pbPUArrival.Enabled = Common.s_Competence.CGDH; foreach (Control con in this.Controls) { menu.SetEnabled(con); } } catch { return; } finally { Cursor.Current = Cursors.Default; } }
private void frmMenuSO_Load(object sender, EventArgs e) { try { Cursor.Current = Cursors.WaitCursor; this.Location = Point.Empty; //销售出库拣货 pbSellOut.Enabled = Common.s_Competence.XSFH; //货位管理 pbOutPos.Enabled = Common.s_Competence.HWGL; foreach (Control con in this.Controls) { menu.SetEnabled(con); } } catch { return; } finally { Cursor.Current = Cursors.Default; } }
private void frmMenuGSP_Load(object sender, EventArgs e) { try { Cursor.Current = Cursors.WaitCursor; this.Location = Point.Empty; //销售出库GSP pbSellOut.Enabled = Common.s_Competence.XSCKGSP; //销售退货GSP pbSellRefund.Enabled = Common.s_Competence.XSTHGSP; //采购退货GSP pbPURefund.Enabled = Common.s_Competence.CGTHGSP; foreach (Control con in this.Controls) { menu.SetEnabled(con); } } catch { return; } finally { Cursor.Current = Cursors.Default; } }