public void attrAreas() { if (ACSMinCapture.Global.ACSGlobal.ListaAreas != null && ACSMinCapture.Global.ACSGlobal.ListaAreas.Count > 1) { WFSetArea wfSV = new WFSetArea(); wfSV.ShowInTaskbar = false; wfSV.ShowDialog(this); } else { foreach (var item in ACSMinCapture.Global.ACSGlobal.ListaAreas) { ACSMinCapture.Global.ACSGlobal.idAreaSelecionada = (int)item.ARE_IDAREA; } } }
private void WFTipoAcao_Load(object sender, EventArgs e) { try { if (this.btnEscanear.Visible && this.btnImportar.Visible && this.btnAssinar.Visible) { this.tableLayoutPanel2.ColumnCount = 3; this.tableLayoutPanel2.ColumnStyles[0] = new ColumnStyle(SizeType.Percent, 33); this.tableLayoutPanel2.ColumnStyles[1] = new ColumnStyle(SizeType.Percent, 33); this.tableLayoutPanel2.ColumnStyles[2] = new ColumnStyle(SizeType.Percent, 33); } if (this.btnEscanear.Visible && this.btnImportar.Visible && !this.btnAssinar.Visible) { this.tableLayoutPanel2.ColumnCount = 2; this.tableLayoutPanel2.ColumnStyles[0] = new ColumnStyle(SizeType.Percent, 50); this.tableLayoutPanel2.ColumnStyles[1] = new ColumnStyle(SizeType.Percent, 50); } if (this.btnEscanear.Visible && !this.btnImportar.Visible && this.btnAssinar.Visible) { this.tableLayoutPanel2.ColumnCount = 3; this.tableLayoutPanel2.ColumnStyles[2] = new ColumnStyle(SizeType.Percent, 50); this.tableLayoutPanel2.ColumnStyles[1] = new ColumnStyle(SizeType.Percent, 50); } if (!this.btnEscanear.Visible && this.btnImportar.Visible && this.btnAssinar.Visible) { this.tableLayoutPanel2.ColumnCount = 2; this.tableLayoutPanel2.ColumnStyles[0] = new ColumnStyle(SizeType.Percent, 50); this.tableLayoutPanel2.ColumnStyles[2] = new ColumnStyle(SizeType.Percent, 50); } bool istasy = ACSGlobal.isTasy; //if (istasy) // lblTipoUsuario.Text = "Usuário Tasy"; //else // lblTipoUsuario.Text = "Usuário Orion"; //verificar o tipo divisao se tem PF ou PJ e mostrar if (ACSMinCapture.Global.ACSGlobal.ListaAreas != null && ACSMinCapture.Global.ACSGlobal.ListaAreas.Count > 1) { //abrir view para escolha WFSetArea wfSV = new WFSetArea(); wfSV.ShowInTaskbar = false; wfSV.ShowDialog(this); } else { foreach (var item in ACSMinCapture.Global.ACSGlobal.ListaAreas) { ACSMinCapture.Global.ACSGlobal.idAreaSelecionada = (int)item.ARE_IDAREA; } } } catch (Exception ex) { throw ex; } }