Exemplo n.º 1
0
        public IPipeData GetData()
        {
            if (pOUTFALL == null)
            {
                pOUTFALL = new OUTFALL();
            }
            pOUTFALL.ID = TxbID.Text;
            pOUTFALL.ACQUISITION_DATE = TxbACQUISITION_DATE.Text;
            pOUTFALL.ACQUISITION_UNIT = TxbACQUISITION_UNIT.Text;
            pOUTFALL.X            = TxbCo_X.Text;
            pOUTFALL.Y            = TxbCO_Y.Text;
            pOUTFALL.GROUND_LEVEL = TxbGROUND_LEVEL.Text;
            pOUTFALL.INVERT_LEVEL = TxbINVERT_LEVEL.Text;
            pOUTFALL.PROCESS_Date = TxbPROCESS_DATE.Text;
            pOUTFALL.PROCESS_Unit = TxbPROCESS_UNIT.Text;
            pOUTFALL.ROAD_NAME    = TxbROAD_NAME.Text;
            pOUTFALL.STATE        = TxbSTATE.Text;
            pOUTFALL.SURVEY_ID    = TxbSURVEY_ID.Text;
            pOUTFALL.SYSTEM_TYPE  = TxbSYSTEM_TYPE.Text;

            pOUTFALL.WIDTH            = TxbWIDTH.Text;
            pOUTFALL.HEIGHT           = TxbHeight.Text;
            pOUTFALL.EFFLUENT_TYPE    = TxbEFFLUENT_TYPE.Text;
            pOUTFALL.DRYWEATHER_STATE = TxbDRYWEATHER_STATE.Text;
            pOUTFALL.WATER_QUALITY    = TxbWATER_QUALITY.Text;
            pOUTFALL.Remark           = TxbRemark.Text;
            return(pOUTFALL);
        }
Exemplo n.º 2
0
 public OUTFALLCtrl()
 {
     InitializeComponent();
     TxbSURVEY_ID.CharacterCasing = CharacterCasing.Upper;
     pOUTFALL = new OUTFALL();
     TxbSURVEY_ID.TextChanged += new EventHandler(TxbSURVEY_ID_TextChanged);
 }
Exemplo n.º 3
0
        public static IPipeData GetDataByID(string ID, string TableName)
        {
            IPipeData pPipeData = null;

            if (TableName.Equals("PS_MANHOLE"))
            {
                pPipeData = new MANHOLE();
            }
            else if (TableName.Equals("PS_VIRTUAL_POINT"))
            {
                pPipeData = new PipePoint();
            }
            else if (TableName.Equals("PS_COMB"))
            {
                pPipeData = new COMB();
            }
            else if (TableName.Equals("PS_OUTFALL"))
            {
                pPipeData = new OUTFALL();
            }

            else if (TableName.Equals("PS_PUMP_STORAGE"))
            {
                pPipeData = new PUMP();
            }
            else if (TableName.Equals("PS_PIPE"))
            {
                pPipeData = new PIPELineClass();
            }
            else if (TableName.Equals("PS_CANAL"))
            {
                pPipeData = new CANAL();
            }
            else if (TableName.Equals("PS_FLAP"))
            {
                pPipeData = new FLAP();
            }
            else if (TableName.Equals("PS_WEIR"))
            {
                pPipeData = new WEIR();
            }
            else if (TableName.Equals("PS_SLUICE"))
            {
                pPipeData = new SLUICE();
            }
            else
            {
                pPipeData = null;
            }
            if (pPipeData == null)
            {
                return(null);
            }
            string    sql    = string.Format("select * from {0} where ID='{1}'", TableName, ID);
            DataTable pTable = SysDBUnitiy.OleDataBase.ExecuteQuery(sql).Tables[0];

            pPipeData.FillValueByRow(pTable.Rows[0], TableName);
            return(pPipeData);
        }
Exemplo n.º 4
0
 public void SetNewID()
 {
     if (pOUTFALL == null)
     {
         pOUTFALL = new OUTFALL();
     }
     TxbID.Text = pOUTFALL.GetNewID();
 }