Ejemplo n.º 1
0
        public void Clear()
        {
            pPIPELine = new PIPELineClass();
            //TxbID.Clear();
            TxbACQUISITION_DATE.Clear();
            TxbACQUISITION_UNIT.Clear();

            TxbPROCESS_DATE.Clear();
            TxbPROCESS_UNIT.Clear();
            TxbROAD_NAME.Clear();
            TxbSTATE.ResetText();
            //TxbSYSTEM_TYPE.ResetText();
            //LableIsD.Text = "";
            //TxbDS_INVERT_LEVEL.Clear();
            //TxbDS_OBJECT_ID.Clear();
            //TxbDS_POINT_INVERT_LEVEL.Clear();
            TxbDS_SURVEY_ID.Clear();
            TxbMATERIAL.ResetText();
            TxbPipe_Length.Clear();
            TxbPRESSURE.Text = "自流";

            TxbSEDIMENT_DEPTH.Clear();
            //TxbUS_INVERT_LEVEL.Clear();
            //TxbUS_OBJECT_ID.Clear();
            //TxbUS_POINT_INVERT_LEVEL.Clear();
            TxbUS_SURVEY_ID.Clear();
            TxbWidth.Clear();
            TxbRemark.Clear();

            TxbWATER_LEVEL.Clear();
            TxbWATER_QUALITY.ResetText();
            TxbWATER_State.ResetText();
        }
Ejemplo n.º 2
0
        public IPIPELine[] GetConnLines()
        {
            string    sql       = string.Format("select  *  from  ps_pipe t  where  t.US_OBJECT_ID='{0}' or t.DS_OBJECT_ID='{0}'", this.ID);
            IDataBase pDataBase = SysDBUnitiy.OleDataBase;

            System.Data.DataTable ptable = pDataBase.ExecuteQuery(sql).Tables[0];

            IPIPELine[] pLines = new IPIPELine[ptable.Rows.Count];
            for (int i = 0; i < pLines.Length; i++)
            {
                IPIPELine pPIPELine = new PIPELineClass();
                pPIPELine.FillValueByRow(ptable.Rows[i]);
                pLines[i] = pPIPELine;
            }
            return(pLines);
        }
Ejemplo n.º 3
0
        public void SetData(IPipeData pPipeData)
        {
            pPIPELine = pPipeData as IPIPELine;
            //TxbID.Text = pPipeData.ID;
            TxbACQUISITION_DATE.Text = pPIPELine.ACQUISITION_DATE;
            TxbACQUISITION_UNIT.Text = pPIPELine.ACQUISITION_UNIT;

            TxbPROCESS_DATE.Text = pPIPELine.PROCESS_Date;
            TxbPROCESS_UNIT.Text = pPIPELine.PROCESS_Unit;
            TxbROAD_NAME.Text    = pPIPELine.ROAD_NAME;
            TxbSTATE.Text        = pPIPELine.STATE;
            //TxbSYSTEM_TYPE.Text = pPIPELine.SYSTEM_TYPE;

            //TxbDS_INVERT_LEVEL.Text = pPIPELine.DS_INVERT_LEVEL;
            //TxbDS_OBJECT_ID.Text = pPIPELine.DS_OBJECT_ID;
            //TxbDS_POINT_INVERT_LEVEL.Text = pPIPELine.DS_POINT_INVERT_LEVEL;
            TxbDS_SURVEY_ID.Text = pPIPELine.DS_SURVEY_ID;
            TxbMATERIAL.Text     = pPIPELine.MATERIAL;
            TxbPipe_Length.Text  = pPIPELine.Pipe_Length;
            TxbPRESSURE.Text     = pPIPELine.PRESSURE;

            TxbSEDIMENT_DEPTH.Text = pPIPELine.SEDIMENT_DEPTH;
            //TxbUS_INVERT_LEVEL.Text = pPIPELine.US_INVERT_LEVEL;
            //TxbUS_OBJECT_ID.Text = pPIPELine.US_OBJECT_ID;
            //TxbUS_POINT_INVERT_LEVEL.Text = pPIPELine.US_POINT_INVERT_LEVEL;
            TxbUS_SURVEY_ID.Text  = pPIPELine.US_SURVEY_ID;
            TxbWidth.Text         = pPIPELine.Width;
            TxbRemark.Text        = pPIPELine.Remark;
            CmbDirction.Text      = pPIPELine.Dirtcion;
            TxbWATER_LEVEL.Text   = pPIPELine.WATER_LEVEL;
            TxbWATER_QUALITY.Text = pPIPELine.WATER_QUALITY;
            TxbWATER_State.Text   = pPIPELine.WATER_State;
            //if (pPIPELine.IsDelete)
            //    LableIsD.Text = "已删除";
            //else
            //    LableIsD.Text = "";
        }