Ejemplo n.º 1
0
        protected void lnkParameterName_Click(object sender, EventArgs e)
        {
            int rowIndex = ((sender as LinkButton).NamingContainer as GridViewRow).RowIndex;
            int id       = Convert.ToInt32(GrdParameterList.DataKeys[rowIndex].Values[0]);

            SqlParameter[] param = new SqlParameter[]
            {
                new SqlParameter("@OPR", 30),
                new SqlParameter("ParameterId", id)
            };

            DataTable Dt = new DataTable();

            Dt = DBClass.GetDatatable_WithParam(param, "DM_SP_GET_DATA");
            if (Dt != null && Dt.Rows.Count > 0)
            {
                GetParameterType();
                MPStartAddParam.Show();
                txtPName.Text          = Dt.Rows[0]["ParameterName"].ToString().Trim();
                drpPType.SelectedIndex = Int16.Parse(Dt.Rows[0]["ParameterTypeId"].ToString());
                txtTool.Text           = Dt.Rows[0]["ToolsRequired"].ToString().Trim();
                hdnParameterId.Value   = Dt.Rows[0]["Id"].ToString();
            }
        }
Ejemplo n.º 2
0
 protected void btnCreateParameter_Click(object sender, EventArgs e)
 {
     GetParameterType();
     MPStartAddParam.Show();
     ClearFields();
 }