Esempio n. 1
0
        protected void btnXLineDel_Click(object sender, EventArgs e)
        {
            int xlinetype = int.Parse(ddl_CurveType.SelectedValue);

            tbxXLineXYZ.Text = "0.00";

            dtXLine = ECTagDal.GetInitXYZ(xlinetype);

            BindXLine(false);
        }
Esempio n. 2
0
        protected void ddl_CurveType_SelectedIndexChanged(object sender, EventArgs e)
        {
            int xlinetype = int.Parse(ddl_CurveType.SelectedValue);

            if (xlinetype == 0)
            {
                spanX.Visible   = false;
                spanXX.Visible  = false;
                spanY.Visible   = false;
                spanYY.Visible  = false;
                btnAddX.Visible = false;
                btnAddY.Visible = false;

                //
                tbxXLineXYZ.Visible = true;
                //tbxXLineXYZ.Text = dout.ToString("0.000");

                gvXLine.Visible = false;

                //初始化表格
                dtXLine = null;
            }
            else if (xlinetype == 1)
            {
                spanX.Visible   = true;
                spanXX.Visible  = true;
                spanY.Visible   = false;
                spanYY.Visible  = false;
                btnAddX.Visible = true;
                btnAddY.Visible = true;

                //ddl_CurveXRealTag.SelectedValue = mEntity.CurveXRealTag;

                tbxXLineXYZ.Visible = false;
                //tbxXLineXYZ.Text = dout.ToString("0.000");

                gvXLine.Visible = true;

                //初始化表格
                dtXLine = ECTagDal.GetInitXYZ(xlinetype);

                //gvXLine.DataSource = dtXLine;
                //gvXLine.DataBind();
            }
            else if (xlinetype == 2)
            {
                spanX.Visible   = true;
                spanXX.Visible  = true;
                spanY.Visible   = true;
                spanYY.Visible  = true;
                btnAddX.Visible = true;
                btnAddY.Visible = true;

                //ddl_CurveXRealTag.SelectedValue = mEntity.CurveXRealTag;
                //ddl_CurveYRealTag.SelectedValue = mEntity.CurveYRealTag;

                tbxXLineXYZ.Visible = false;
                //tbxXLineXYZ.Text = dout.ToString("0.000");

                gvXLine.Visible = true;

                dtXLine = ECTagDal.GetInitXYZ(xlinetype);

                // gvXLine.DataSource = dtXLine;
                // gvXLine.DataBind();
            }


            BindXLine(false);
        }