Ejemplo n.º 1
0
        protected void repDoktor_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            switch (e.CommandName)
            {
            case "Click":
            {
                doktorID = Convert.ToInt32(e.CommandArgument.ToString());

                hastaneAdi = doktorListesi.Where(w => w.doktorID == doktorID).FirstOrDefault().hastaneAd;
                klinikAdi  = doktorListesi.Where(w => w.doktorID == doktorID).FirstOrDefault().klinikAd;
                doktorAdi  = doktorListesi.Where(w => w.doktorID == doktorID).FirstOrDefault().doktorAd;

                pnlKlavuz.Visible  = false;
                pnlRandevu.Visible = true;
                pnlList.Visible    = true;

                //repDoktor.DataSource = doktorListesi;
                //repDoktor.DataBind();

                repRandevu.DataSource = mesai.Getir(Convert.ToInt32(doktorID));
                repRandevu.DataBind();
                UpdatePanel7.Update();

                break;
            }
            }
        }
Ejemplo n.º 2
0
        private void limpiarFormularioSalida()
        {
            LbMensajeSalida.Text = string.Empty;
            TxBusqueda.Text      = string.Empty;
            LbAprobacion.Text    = string.Empty;

            LbIdEntrada.Text         = string.Empty;
            LbNombreEntrada.Text     = string.Empty;
            LbArticuloEntrada.Text   = string.Empty;
            LbSerieEntrada.Text      = string.Empty;
            LbInventarioEntrada.Text = string.Empty;
            LbFechaEntrada.Text      = string.Empty;
            DivEntradas.Visible      = false;

            TxNombreSalida.Text             = string.Empty;
            DDLArticuloSalida.SelectedIndex = -1;
            TxSerieSalida.Text            = string.Empty;
            TxInventarioSalida.Text       = string.Empty;
            DDLMotivoSalida.SelectedIndex = -1;
            TxObservacionesSalida.Text    = string.Empty;
            //DDLAutorizado.SelectedIndex = -1;

            UpdatePanel6.Update();
            UpdatePanel7.Update();
            UpdatePanel8.Update();
            UpdatePanel10.Update();
        }
Ejemplo n.º 3
0
 protected void CloseReturnNG_Click(object sender, EventArgs e)
 {
     Panel7.Visible = false;
     Panel8.Visible = false;
     UpdatePanel7.Update();
     UpdatePanel8.Update();
 }
Ejemplo n.º 4
0
 protected void ChooseDefectType_Click(object sender, EventArgs e)
 {
     Panel7.Visible       = true;
     GridView7.DataSource = dp.Query_DefectType("%");
     GridView7.DataBind();
     UpdatePanel7.Update();
 }
Ejemplo n.º 5
0
 protected void Button1_Click1(object sender, EventArgs e)
 {
     if (RadioButtonList1.SelectedIndex < 0)
     {
         errorDiv1.InnerText = "Please select an answer";
     }
     else if (RadioButtonList1.SelectedIndex == 1)
     {
         score++;
         questionsAnswered++;
         Button1.Enabled = false;
         RadioButtonList1.Items.FindByValue("correct").Attributes.Add("class", "right");
         brave.Visible = true;
         braveA.Text   = "That's right! Who could forget Mel Gibson's performance as William Wallace in this classic from 1995.";
         UpdatePanel2.Update();
         UpdatePanel3.Update();
         UpdatePanel7.Update();
     }
     else
     {
         questionsAnswered++;
         Button1.Enabled = false;
         RadioButtonList1.SelectedItem.Attributes.Add("class", "wrong");
         RadioButtonList1.Items.FindByValue("correct").Attributes.Add("class", "right");
         brave.Visible = true;
         braveA.Text   = "Oh No. It was Mel Gibson in Braveheart of course. I suppose it was made in 1995, perhaps it is before your time?";
         UpdatePanel2.Update();
         UpdatePanel3.Update();
         UpdatePanel7.Update();
     }
 }
Ejemplo n.º 6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Panel4.Visible       = false;
         Panel3.Visible       = false;
         Panel5.Visible       = false;
         Panel6.Visible       = false;
         Panel7.Visible       = false;
         Panel8.Visible       = false;
         Panel9.Visible       = false;
         Panel10.Visible      = false;
         GridView1.DataSource = pmc.Query_Copper();
         GridView1.DataBind();
         UpdatePanel2.Update();
         UpdatePanel3.Update();
         UpdatePanel4.Update();
         UpdatePanel5.Update();
         UpdatePanel6.Update();
         UpdatePanel7.Update();
         UpdatePanel8.Update();
         UpdatePanel9.Update();
         UpdatePanel10.Update();
     }
 }
Ejemplo n.º 7
0
    protected void SearchCra_Click(object sender, EventArgs e)
    {
        string name = TextBox24.Text;

        GridView7.DataSource = dp.Query_DefectType(name);
        GridView7.DataBind();
        UpdatePanel7.Update();
    }
Ejemplo n.º 8
0
    protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        GridViewRow row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow;

        if (e.CommandName == "Return")
        {
            Panel5.Visible       = true;
            CopperID.Text        = e.CommandArgument.ToString();
            GridView3.DataSource = pmc.Query_CopperReturn(new Guid(CopperID.Text));
            GridView3.DataBind();

            Debug.Assert(row != null, "Oh My LadyGaga!");
            Label16.Text = row.Cells[2].Text;

            Label20.Text = row.Cells[10].Text;

            UpdatePanel5.Update();
        }
        if (e.CommandName == "NG")
        {
            Panel7.Visible = true;

            CopperID.Text        = e.CommandArgument.ToString();
            GridView4.DataSource = pmc.Query_CopperNG(new Guid(CopperID.Text));
            GridView4.DataBind();
            Label15.Text = row.Cells[2].Text;
            Label17.Text = row.Cells[10].Text;
            UpdatePanel7.Update();
        }
        if (e.CommandName == "Modi")
        {
            CopperID.Text = e.CommandArgument.ToString();

            Label4.Text        = "修改";
            LabelUsage.Visible = true;
            TextBox47.Visible  = true;
            TextBox47.Text     = row.Cells[12].Text;
            Panel3.Visible     = true;
            UpdatePanel3.Update();
            Type.Text         = row.Cells[3].Text;
            Mid.Text          = row.Cells[11].Text;
            TextBox3.Text     = row.Cells[5].Text;
            TextBox6.Text     = row.Cells[4].Text;
            TextBox46.Text    = row.Cells[9].Text;
            ProviderName.Text = row.Cells[2].Text;
            ProviderID.Text   = row.Cells[10].Text;
            CopperRate.Text   = row.Cells[12].Text;
        }
        if (e.CommandName == "OEM")
        {
            Panel10.Visible = true;

            CopperID.Text        = e.CommandArgument.ToString();
            GridView6.DataSource = pmc.Query_CopperOEM(new Guid(CopperID.Text));
            GridView6.DataBind();
            UpdatePanel10.Update();
        }
    }
Ejemplo n.º 9
0
    protected void AddDefectTypeSummit_Click(object sender, EventArgs e)
    {
        string po = TextBox31.Text;

        dp.Insert_Defecttype(po);
        Panel8.Visible       = false;
        GridView7.DataSource = dp.Query_DefectType("%");
        GridView7.DataBind();
        UpdatePanel7.Update();
    }
Ejemplo n.º 10
0
        protected void GVHallazgosView_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            try{
                String vIdHallazgo = e.CommandArgument.ToString();
                if (e.CommandName == "EntrarHallazgo")
                {
                    Response.Redirect("/pages/findings.aspx?id=" + vIdHallazgo + "&i=" + LbNumeroInformeHallazgos.Text);
                }

                if (e.CommandName == "EditarHallazgo")
                {
                    LbModificarHallazgoLabel.Text = vIdHallazgo;
                    String vQuery   = "[ACSP_ObtenerHallazgos] 3," + vIdHallazgo;
                    int?   vInforme = vConexion.ejecutarSQLGetValue(vQuery);
                    if (vInforme != null)
                    {
                        getResponsables(vInforme.ToString());
                    }

                    vQuery = "[ACSP_ObtenerHallazgos] 1," + vIdHallazgo;
                    DataTable vDatosHallazgo = vConexion.obtenerDataTable(vQuery);

                    foreach (DataRow item in vDatosHallazgo.Rows)
                    {
                        DDLModificarHallazgosResponsable.SelectedIndex = GetDDLIndex(DDLModificarHallazgosResponsable, item["usuarioResponsable"].ToString());
                        DDLModificarHallazgosArea.SelectedIndex        = GetDDLIndex(DDLModificarHallazgosArea, item["idArea"].ToString());
                        DDLModificarHallazgosNivelRiesgo.SelectedIndex = GetDDLIndex(DDLModificarHallazgosNivelRiesgo, item["tipoRiesgo"].ToString());
                        TxModificarHallazgosHallazgo.Text        = item["detalle"].ToString();
                        TxModificarHallazgosRiesgo.Text          = item["riesgo"].ToString();
                        TxModificarHallazgosRecomendaciones.Text = item["recomendaciones"].ToString();
                        TxModificarHallazgosFuente.Text          = item["fuente"].ToString();
                        TxModificarHallazgosFechaRespuesta.Text  = Convert.ToDateTime(item["fechaPrevistaResolucion"].ToString()).ToString("yyyy-MM-dd");
                        TxFileName.Text = item["archivo"].ToString();
                    }
                    UpdatePanel7.Update();
                    ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", "openHallazgosModificacionCreacionModal();", true);
                }

                if (e.CommandName == "BorrarHallazgo")
                {
                    String vQuery     = "[ACSP_ObtenerHallazgos] 14," + vIdHallazgo;
                    int    vResultado = vConexion.ejecutarSql(vQuery);

                    if (vResultado > 0)
                    {
                        ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", "closeModalHallazgos();", true);
                        Mensaje("Hallazgo eliminado con éxito.", WarningType.Success);
                    }
                }
            }catch (Exception Ex) {
                Mensaje(Ex.Message, WarningType.Danger);
            }
        }
Ejemplo n.º 11
0
 protected void txtintamt_TextChanged(object sender, EventArgs e)
 {
     try
     {
         txtfinpay.Text = Convert.ToString(Convert.ToDouble(Txtlnamt.Text) + Convert.ToDouble(txtdocchr.Text) + Convert.ToDouble(txtintamt.Text));
         UpdatePanel7.Update();
     }
     catch (Exception ex)
     {
         TroyLiteExceptionManager.HandleException(ex);
     }
 }
Ejemplo n.º 12
0
    protected void GridView7_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName == "Choose")
        {
            GridViewRow row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow;

            Label5.Text    = row.Cells[1].Text;
            poid.Text      = e.CommandArgument.ToString();
            Panel7.Visible = false;
            UpdatePanel3.Update();
            UpdatePanel7.Update();
        }
    }
Ejemplo n.º 13
0
        protected void BtnCrearTarea_Click(object sender, EventArgs e)
        {
            try
            {
                validacionesCrearSubTarea();
                Lb1.Text = "Tipo Trabajo: <b>" + DDLTrabajos.SelectedItem.Text + "</b><br /><br />" +
                           "Tarea: <b>" + TxTarea.Text + "</b><br /><br />";
                Lb2.Text = "<b>¿Está seguro que desea desea crear la subtarea del trabajo seleccionado?</b>";
                UpdatePanel7.Update();

                ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", "openModalTarea();", true);
            }
            catch (Exception Ex) { Mensaje(Ex.Message, WarningType.Danger); }
        }
Ejemplo n.º 14
0
 protected void ibtnListarrDireccionDeudor_Click(object sender, ImageClickEventArgs e)
 {
     try
     {
         buscarDireccion();
         ScriptManager.RegisterStartupScript(UpdatePanel7, UpdatePanel7.GetType(), "show", "$(function () { $('#" + Panel6.ClientID + "').modal('show'); });", true);
         UpdatePanel7.Update();
     }
     catch (Exception ex)
     {
         divAlerta.Visible = true;
         lblInfo.Text = ex.Message;
     }
 }
        protected void BtnGuardar_Click(object sender, EventArgs e)
        {
            try{
                String vQuery = "";
                if (Convert.ToBoolean(Session["ACTIVOS_PI_PERSONAL"]))
                {
                    validarPersonal();
                    vQuery = "[RSP_ActivosPI] 11" +
                             "," + DDLCategoria.SelectedValue +
                             "," + DDLTipo.SelectedValue +
                             ",'" + TxMarca.Text + "'" +
                             ",'" + TxSerie.Text + "'" +
                             ",'" + TxModelo.Text + "'" +
                             "," + Session["USUARIO"].ToString() +
                             "," + DDLEmpleado.SelectedValue +
                             ",1";
                }
                else
                {
                    vQuery = "[RSP_ActivosPI] 6" +
                             "," + LbIdEquipoEnt.Text +
                             ",1," + Session["USUARIO"].ToString() + "";
                }

                int vInfo = vConexion.ejecutarSql(vQuery);
                if (vInfo > 0)
                {
                    cargarDatos();
                    UpdateDivBusquedas.Update();
                    Mensaje("Entrada guardada con éxito", WarningType.Success);
                }
                else
                {
                    Mensaje("Hubo un error al guardar la entrada.", WarningType.Danger);
                }

                limpiarFormulario();
                LbMensaje.Text            = "";
                DivResultado.Visible      = false;
                DivRegistrar.Visible      = false;
                DivEquipoPersonal.Visible = false;
                UpdatePanel7.Update();
                TxBusqueda.Focus();
            }catch (Exception ex) {
                Mensaje(ex.Message, WarningType.Danger);
            }
        }
Ejemplo n.º 16
0
    protected void Bind(int a)
    {
        switch (a)
        {
        case 3:
            GridView3.DataSource = pmc.Query_CopperReturn(new Guid(CopperID.Text));
            GridView3.DataBind();
            UpdatePanel5.Update();
            break;

        case 4:
            GridView4.DataSource = pmc.Query_CopperNG(new Guid(CopperID.Text));
            GridView4.DataBind();
            UpdatePanel7.Update();
            break;
        }
    }
        private void limpiarFormularioOut()
        {
            TxBuscarSalida.Text       = string.Empty;
            DivInfoOUT.Visible        = false;
            DivRegistroSalida.Visible = false;

            LbIdEquipoOut.Text   = string.Empty;
            LbNombreOut.Text     = string.Empty;
            LbMarcaOut.Text      = string.Empty;
            LbSerieOut.Text      = string.Empty;
            LbInventarioOut.Text = string.Empty;
            LbMensajeOut.Text    = "";

            UpdatePanel2.Update();
            UpdatePanel7.Update();
            UpdatePanel4.Update();
            TxBuscarSalida.Focus();
        }
Ejemplo n.º 18
0
    protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName == "History")
        {
            var row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow;
            GridView1.SelectedIndex = row.RowIndex;
            HSFID.Text           = e.CommandArgument.ToString();
            GridView2.DataSource = hd.QueryVersion(new Guid(e.CommandArgument.ToString()));
            GridView2.DataBind();
            Panel3.Visible = true;

            Panel4.Visible = false;
            Panel5.Visible = false;

            Panel6.Visible = false;

            Panel7.Visible = false;

            Panel8.Visible = false;

            Panel9.Visible = false;
            UpdatePanel2.Update();
            UpdatePanel3.Update();
            UpdatePanel4.Update();
            UpdatePanel5.Update();
            UpdatePanel6.Update();
            UpdatePanel7.Update();
            UpdatePanel8.Update();
            UpdatePanel9.Update();
        }
        if (e.CommandName == "Details")
        {
            var row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow;
            GridView1.SelectedIndex = row.RowIndex;
            HSFID.Text           = e.CommandArgument.ToString();
            GridView5.DataSource = hd.QueryDetailAI(new Guid(HSFID.Text));
            GridView5.DataBind();
            Panel6.Visible = true;
            UpdatePanel2.Update();
            UpdatePanel6.Update();
        }
    }
Ejemplo n.º 19
0
 protected void SummitVersion_Click(object sender, EventArgs e)
 {
     if (addedit.Text == "新增")
     {
         string name = TextBox4.Text;
         string note = TextBox10.Text;
         int    a    = hd.InsertVersion(new Guid(HSFID.Text), name, Session["UserName"].ToString(), note);
         if (a > 0)
         {
             ScriptManager.RegisterStartupScript(Page, typeof(Page), "alert", "alert('新增成功!');", true);
             g2bind();
             Panel7.Visible = false;
             UpdatePanel7.Update();
         }
         else
         {
             ScriptManager.RegisterStartupScript(Page, typeof(Page), "alert", "alert('已经有名字一样的版本或者该物料/产品系列的项目基础数据为空!');", true);
             Panel7.Visible = false;
             UpdatePanel7.Update();
         }
     }
     else
     {
         string name = TextBox4.Text;
         string note = TextBox10.Text;
         int    a    = hd.UpdateVersion(new Guid(VersionID.Text), name, Session["UserName"].ToString(), note);
         if (a == 1)
         {
             ScriptManager.RegisterStartupScript(Page, typeof(Page), "alert", "alert('更新成功!');", true);
             g2bind();
             Panel7.Visible = false;
             UpdatePanel7.Update();
         }
         else
         {
             ScriptManager.RegisterStartupScript(Page, typeof(Page), "alert", "alert('已经有名字一样的版本了诶...');", true);
             Panel7.Visible = false;
             UpdatePanel7.Update();
         }
     }
 }
Ejemplo n.º 20
0
    protected void img01_Click(object sender, ImageClickEventArgs e)
    {
        ImageButton img = (ImageButton)(sender);

        if (img.CommandName.ToLower() == "p")
        {
            grdconfirm.DataSource = DCDetails.Idv_Get_DCDetails_By_DocNo(Convert.ToInt32(img.CommandArgument.Trim()),
                                                                         "helpdesk", Convert.ToInt32(0)).Tables[1];
            grdconfirm.DataBind();
            ModalPopUpDocNum.Show();
            UpdatePanel7.Update();
        }
        else
        {
            stDS = DCDetails.Get_SubDocId_And_ItsRecords_By_DocNo(Convert.ToInt32(img.CommandArgument.Trim()), "helpdesk",
                                                                  Convert.ToInt32(0));
            RepDetailsApprove.DataSource = stDS.Tables[0];
            RepDetailsApprove.DataBind();
            ModalPopupExtender1.Show();
            UpdatePanel8.Update();
        }
    }
Ejemplo n.º 21
0
 protected void GridView2_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "ED")
     {
         var row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow;
         GridView2.SelectedIndex = row.RowIndex;
         VersionID.Text          = e.CommandArgument.ToString();
         addedit.Text            = "修改";
         TextBox4.Text           = row.Cells[1].Text;
         TextBox10.Text          = row.Cells[3].Text;
         Panel7.Visible          = true;
         UpdatePanel7.Update();
         UpdatePanel2.Update();
         UpdatePanel3.Update();
     }
     if (e.CommandName == "Copy")
     {
         var row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow;
         GridView2.SelectedIndex = row.RowIndex;
         VersionID.Text          = e.CommandArgument.ToString();
         GridView6.DataSource    = hd.QueryReportDue(TextBox60.Text, TextBox61.Text, TextBox62.Text);
         GridView6.DataBind();
         Panel10.Visible = true;
         UpdatePanel10.Update();
     }
     if (e.CommandName == "De")
     {
         int a = hd.DeleteVersion(new Guid(e.CommandArgument.ToString()));
         if (a > 0)
         {
             ScriptManager.RegisterStartupScript(Page, typeof(Page), "alert", "alert('删除成功!');", true);
         }
         else
         {
             ScriptManager.RegisterStartupScript(Page, typeof(Page), "alert", "alert('失败了诶...');", true);
         }
         GridView2.DataSource = hd.QueryVersion(new Guid(e.CommandArgument.ToString()));
         GridView2.DataBind();
         UpdatePanel3.Update();
     }
     if (e.CommandName == "up")
     {
         var row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow;
         GridView2.SelectedIndex = row.RowIndex;
         Console.Write("");
         Label1.Text    = "新增";
         VersionID.Text = e.CommandArgument.ToString();
         Panel8.Visible = true;
         UpdatePanel8.Update();
         UpdatePanel2.Update();
         UpdatePanel3.Update();
     }
     if (e.CommandName == "report")
     {
         var row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow;
         GridView2.SelectedIndex = row.RowIndex;
         VersionID.Text          = e.CommandArgument.ToString();
         GridView3.DataSource    = hd.QueryReport(new Guid(VersionID.Text));
         GridView3.DataBind();
         Panel4.Visible = true;
         UpdatePanel4.Update();
     }
     if (e.CommandName == "detail")
     {
         var row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow;
         GridView2.SelectedIndex = row.RowIndex;
         VersionID.Text          = e.CommandArgument.ToString();
         GridView5.DataSource    = hd.QueryDetail(new Guid(VersionID.Text), Guid.Empty);
         GridView5.DataBind();
         Panel6.Visible = true;
         UpdatePanel6.Update();
     }
 }
Ejemplo n.º 22
0
        protected void TxBusquedaSalida_TextChanged(object sender, EventArgs e)
        {
            try{
                if (TxBusquedaSalida.Text != "" || TxBusquedaSalida.Text != string.Empty)
                {
                    String    vQuery        = "[RSP_Seguridad] 16,'" + TxBusquedaSalida.Text + "'";
                    DataTable vVerificacion = vConexion.obtenerDataTable(vQuery);
                    if (vVerificacion.Rows.Count > 0)
                    {
                        TxBusquedaSalida.Focus();
                        limpiarFormularioSalida();
                        Mensaje("El número de serie tiene una entrada pendiente. Favor ingrese otro.", WarningType.Warning);
                    }
                    else
                    {
                        vQuery = "[RSP_Seguridad] 21,'" + TxBusquedaSalida.Text + "'";
                        DataTable vDatos1 = vConexion.obtenerDataTable(vQuery);
                        if (vDatos1.Rows.Count > 0)
                        {
                            LbAprobacion.Text = "Aprobado!";
                            LbAprobacion.Attributes.CssStyle.Value = "color:Green; margin-top:100px; margin-left:20px;";
                            Session["SEC_APROBACION_SALIDA"]       = vDatos1;
                        }
                        else
                        {
                            LbAprobacion.Text = "No Aprobado!";
                            LbAprobacion.Attributes.CssStyle.Value = "color:Tomato; margin-bottom:10px; margin-left:20px;";
                        }
                        LbAprobacion.Visible = true;

                        vQuery = "[RSP_Seguridad] 6,'" + TxBusquedaSalida.Text + "'";
                        DataTable vDatos = vConexion.obtenerDataTable(vQuery);
                        if (vDatos.Rows.Count > 0)
                        {
                            Session["ID_ENTRADA"] = vDatos.Rows[0]["id"].ToString();

                            DivEntradas.Visible      = true;
                            LbIdEntrada.Text         = vDatos.Rows[0]["id"].ToString();
                            LbNombreEntrada.Text     = vDatos.Rows[0]["nombre"].ToString();
                            LbArticuloEntrada.Text   = vDatos.Rows[0]["articulo"].ToString();
                            LbSerieEntrada.Text      = vDatos.Rows[0]["serie"].ToString();
                            LbInventarioEntrada.Text = vDatos.Rows[0]["inventario"].ToString();
                            LbFechaEntrada.Text      = vDatos.Rows[0]["fechaEntrada"].ToString();

                            TxInventarioSalida.Text         = vDatos.Rows[0]["inventario"].ToString();
                            DDLArticuloSalida.SelectedValue = vDatos.Rows[0]["idArticulo"].ToString();

                            DivBodySalida.Visible   = true;
                            LbMensajeSalida.Text    = "";
                            LbMensajeSalida.Visible = false;
                            UpdatePanel7.Update();
                        }
                        else
                        {
                            TxInventarioSalida.Text         = string.Empty;
                            DDLArticuloSalida.SelectedIndex = -1;
                            Session["ID_ENTRADA"]           = null;
                            DivEntradas.Visible             = false;
                            DivBodySalida.Visible           = false;
                            LbMensajeSalida.Visible         = true;
                            LbMensajeSalida.Text            = LbAprobacion.Text == "Aprobado!" ? "Cree un nuevo registro." : string.Empty;
                            UpdatePanel7.Update();
                        }
                        TxNombreSalida.Focus();
                        TxSerieSalida.Text = TxBusquedaSalida.Text;
                    }
                    UpdatePanel8.Update();
                }
                else
                {
                    limpiarFormulario();
                }
            }catch (Exception ex) {
                Mensaje(ex.Message, WarningType.Danger);
            }
        }
Ejemplo n.º 23
0
 protected void Close_PayDetail_Click(object sender, EventArgs e)
 {
     Panel7.Visible = false;
     UpdatePanel7.Update();
 }
Ejemplo n.º 24
0
    protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName == "Details")
        {
            WeekPlanID.Text = e.CommandArgument.ToString();

            GridView2.DataSource = pwp.QueryWeekPlanDetail(new Guid(WeekPlanID.Text));
            GridView2.DataBind();
            Panel3.Visible = true;
            UpdatePanel3.Update();
            Panel4.Visible = false;
            UpdatePanel4.Update();
            Panel5.Visible = false;
            UpdatePanel5.Update();
            Panel6.Visible = false;
            UpdatePanel6.Update();
            Panel7.Visible = false;
            UpdatePanel7.Update();
        }
        if (e.CommandName == "Del")
        {
            WeekPlanID.Text = e.CommandArgument.ToString();
            pwp.DeleteWeekPlan(new Guid(e.CommandArgument.ToString()));
            Bindgrid1();
            Panel3.Visible = true;
            UpdatePanel3.Update();
        }
        if (e.CommandName == "Make")
        {
            var row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow;
            year.Text            = row.Cells[1].Text;
            month.Text           = row.Cells[2].Text;
            week.Text            = row.Cells[3].Text;
            WeekPlanID.Text      = e.CommandArgument.ToString();
            GridView3.DataSource = pwp.QueryMonthPlanInfo(Convert.ToInt32(row.Cells[1].Text),
                                                          Convert.ToInt32(row.Cells[2].Text), Convert.ToInt32(week.Text));
            GridView3.DataBind();
            Panel5.Visible = true;
            UpdatePanel5.Update();
        }
        if (e.CommandName == "Pay")
        {
            var row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow;

            Panel6.Visible  = true;
            WeekPlanID.Text = e.CommandArgument.ToString();
            year.Text       = row.Cells[1].Text;
            month.Text      = row.Cells[2].Text;
            week.Text       = row.Cells[3].Text;
            Bindgrid4();
        }
        if (e.CommandName == "PayDetail")
        {
            var row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow;

            Panel7.Visible  = true;
            WeekPlanID.Text = e.CommandArgument.ToString();
            year.Text       = row.Cells[1].Text;
            month.Text      = row.Cells[2].Text;
            week.Text       = row.Cells[3].Text;
            Bindgrid5();
        }
    }
Ejemplo n.º 25
0
 private void Bindgrid5()
 {
     GridView5.DataSource = pwp.QueryPaymentInfoDetail(Convert.ToInt32(year.Text), Convert.ToInt32(month.Text), Convert.ToInt32(week.Text));
     GridView5.DataBind();
     UpdatePanel7.Update();
 }
Ejemplo n.º 26
0
 protected void CloseAddVersion_Click(object sender, EventArgs e)
 {
     Panel7.Visible = false;
     UpdatePanel7.Update();
 }
Ejemplo n.º 27
0
 protected void AddVersion_Click(object sender, EventArgs e)
 {
     addedit.Text   = "新增";
     Panel7.Visible = true;
     UpdatePanel7.Update();
 }