Example #1
0
    private void LoadDvsInfo(string id)
    {
        SelectDvs sd  = new SelectDvs();
        Dvs       dvs = sd.GetDvs(id);

        if (dvs != null)
        {
            mPortNum                             = DataGlobal.ConvertToInt(dvs.Portnum);
            txtAssertNo.Text                     = dvs.Assertno;
            txtBroadbandAccessNo.Text            = dvs.Broadbandaccessno;
            txtCustomerAddress.Text              = dvs.Customeraddress;
            txtCustomerManager.Text              = dvs.Customermanager;
            txtCustomerManagerPhone.Text         = dvs.Customermanager_phone;
            txtCustomerName.Text                 = dvs.Customername;
            txtDialupAccount.Text                = dvs.Dialupaccount;
            txtDialupPassword.Text               = dvs.Dialuppassword;
            txtDvsNo.Text                        = dvs.Dvsno;
            txtGateway.Text                      = dvs.Gateway;
            txtInstalldate.Text                  = dvs.Installdate.ToShortDateString();
            txtInstallPlace.Text                 = dvs.Installplace;
            txtIP.Text                           = dvs.Ip;
            txtJunctionBoxNo.Text                = dvs.Junctionboxno;
            txtLanNo.Text                        = dvs.Lanno;
            txtLinkman.Text                      = dvs.Linkman;
            txtLinkmanPhone.Text                 = dvs.Linkman_phone;
            txtPortNum.Text                      = dvs.Portnum;
            txtServiceDesc.Text                  = dvs.Servicedesc;
            txtStorageTime.Text                  = dvs.Storagetime;
            txtSubnetMask.Text                   = dvs.Subnetmask;
            txtSurfaceMan.Text                   = dvs.Surfaceman;
            txtSurfaceManPhone.Text              = dvs.Surfaceman_phone;
            ddlCustomerType.SelectedValue        = dvs.Customertype;
            ddlDeviceLevel.SelectedValue         = dvs.Devicelevel;
            ddlDeviceManu.SelectedValue          = dvs.Devicemanu;
            ddlDevicePropertyRight.SelectedValue = dvs.Devicepropertyright;
            ddlDeviceState.SelectedValue         = dvs.Devicestate;
            ddlDvsKind.SelectedValue             = dvs.Dvskind;
            ddlDvsType.SelectedValue             = dvs.Dvstype;
            ddlPaymentType.SelectedValue         = dvs.Paymenttype;
            ddlPowerType.SelectedValue           = dvs.Powertype;
            ddlPowerVoltage.SelectedValue        = dvs.Powervoltage;
            ddlServiceType.SelectedValue         = dvs.Servicetype;
            ddlStorageType.SelectedValue         = dvs.Storagetype;
            ddlSwitchinMode.SelectedValue        = dvs.Switchinmode;
            ddlSwitchinPlace.SelectedValue       = dvs.Switchinplace;
            //经纬度
            SelectDeviceXy sdxy = new SelectDeviceXy();
            Device_Info_xy xy   = sdxy.SelectByID(dvs.Id);
            if (xy != null)
            {
                txtLongitude.Text = xy.LONGITUDE.ToString();
                txtLatitude.Text  = xy.LATITUDE.ToString();
            }

            hdfSuburb.Value = dvs.Suburb;
            hdfDvsID.Value  = dvs.Id.ToString();
        }
    }
Example #2
0
    private void LoadCameraInfo(string id)
    {
        SelectCameras sc = new SelectCameras();
        Cameras       c  = sc.GetCamera(id);

        if (c != null)
        {
            hdfCameraID.Value = c.Id.ToString();
            LoadDvsInfo(c.Dvsid, c.Dvsport);
            //
            txtAssertNo.Text        = c.Assertno;
            txtCameraNo.Text        = c.Caremano;
            txtCustomerAddress.Text = c.Customeraddress;
            txtCustomerName.Text    = c.Customername;
            txtHandleNo.Text        = c.Handleno;
            txtInfo.Text            = c.Info;
            txtInstalldate.Text     = c.Installdate.ToShortDateString();
            txtInstallPlace.Text    = c.Installplace;
            txtJunctionBoxNo.Text   = c.Junctionboxno;
            //txtLatitude.Text = c.Latitude.ToString();
            txtLinkman.Text      = c.Linkman;
            txtLinkmanPhone.Text = c.Linkman_phone;
            //txtLongitude.Text = c.Longitude.ToString();
            txtSinglePlace.Text                  = c.Singleplace;
            txtStorageTime.Text                  = c.Storagetime;
            ddlBaudrate.SelectedValue            = c.Baudrate;
            ddlCameraKind.SelectedValue          = c.Caremakind;
            ddlCameraType.SelectedValue          = c.Carematype;
            ddlCodeAddr.SelectedValue            = c.Codeaddr;
            ddlCodeStream.SelectedValue          = c.Codestream;
            ddlControlProtocol.SelectedValue     = c.Controlprotocol;
            ddlCustomerType.SelectedValue        = c.Customertype;
            ddlDeviceLevel.SelectedValue         = c.Devicelevel;
            ddlDeviceManu.SelectedValue          = c.Devicemanu;
            ddlDevicePropertyRight.SelectedValue = c.Devicepropertyright;
            ddlDeviceState.SelectedValue         = c.Devicestate;
            ddlDvsPort.SelectedValue             = c.Dvsport;
            ddlInstallMode.SelectedValue         = c.Installmode;
            ddlPaymentType.SelectedValue         = c.Paymenttype;
            ddlPowerType.SelectedValue           = c.Powertype;
            ddlPowerVoltage.SelectedValue        = c.Powervoltage;
            ddlStorageType.SelectedValue         = c.Storagetype;
            ddlSwitchinMode.SelectedValue        = c.Switchinmode;
            ddlSwitchinPlace.SelectedValue       = c.Switchinplace;
            //经纬度
            SelectDeviceXy sdxy = new SelectDeviceXy();
            Device_Info_xy xy   = sdxy.SelectByID(c.Id);
            if (xy != null)
            {
                txtLongitude.Text = xy.LONGITUDE.ToString();
                txtLatitude.Text  = xy.LATITUDE.ToString();
            }
        }
    }
Example #3
0
 private void LoadCameraInfo(string id)
 {
     SelectCameras sc = new SelectCameras();
     Cameras c = sc.GetCamera(id);
     if (c != null)
     {
         hdfCameraID.Value = c.Id.ToString();
         LoadDvsInfo(c.Dvsid, c.Dvsport);
         //
         txtAssertNo.Text = c.Assertno;
         txtCameraNo.Text = c.Caremano;
         txtCustomerAddress.Text = c.Customeraddress;
         txtCustomerName.Text = c.Customername;
         txtHandleNo.Text = c.Handleno;
         txtInfo.Text = c.Info;
         txtInstalldate.Text = c.Installdate.ToShortDateString();
         txtInstallPlace.Text = c.Installplace;
         txtJunctionBoxNo.Text = c.Junctionboxno;
         //txtLatitude.Text = c.Latitude.ToString();
         txtLinkman.Text = c.Linkman;
         txtLinkmanPhone.Text = c.Linkman_phone;
         //txtLongitude.Text = c.Longitude.ToString();
         txtSinglePlace.Text = c.Singleplace;
         txtStorageTime.Text = c.Storagetime;
         ddlBaudrate.SelectedValue = c.Baudrate;
         ddlCameraKind.SelectedValue = c.Caremakind;
         ddlCameraType.SelectedValue = c.Carematype;
         ddlCodeAddr.SelectedValue = c.Codeaddr;
         ddlCodeStream.SelectedValue = c.Codestream;
         ddlControlProtocol.SelectedValue = c.Controlprotocol;
         ddlCustomerType.SelectedValue = c.Customertype;
         ddlDeviceLevel.SelectedValue = c.Devicelevel;
         ddlDeviceManu.SelectedValue = c.Devicemanu;
         ddlDevicePropertyRight.SelectedValue = c.Devicepropertyright;
         ddlDeviceState.SelectedValue = c.Devicestate;
         ddlDvsPort.SelectedValue = c.Dvsport;
         ddlInstallMode.SelectedValue = c.Installmode;
         ddlPaymentType.SelectedValue = c.Paymenttype;
         ddlPowerType.SelectedValue = c.Powertype;
         ddlPowerVoltage.SelectedValue = c.Powervoltage;
         ddlStorageType.SelectedValue = c.Storagetype;
         ddlSwitchinMode.SelectedValue = c.Switchinmode;
         ddlSwitchinPlace.SelectedValue = c.Switchinplace;
         //经纬度
         SelectDeviceXy sdxy = new SelectDeviceXy();
         Device_Info_xy xy = sdxy.SelectByID(c.Id);
         if (xy != null)
         {
             txtLongitude.Text = xy.LONGITUDE.ToString();
             txtLatitude.Text = xy.LATITUDE.ToString();
         }
     }
 }
Example #4
0
    private void LoadDvsInfo(string id)
    {
        SelectDvs sd = new SelectDvs();
        Dvs dvs = sd.GetDvs(id);
        if (dvs != null)
        {
            mPortNum = DataGlobal.ConvertToInt(dvs.Portnum);
            txtAssertNo.Text = dvs.Assertno;
            txtBroadbandAccessNo.Text = dvs.Broadbandaccessno;
            txtCustomerAddress.Text = dvs.Customeraddress;
            txtCustomerManager.Text = dvs.Customermanager;
            txtCustomerManagerPhone.Text = dvs.Customermanager_phone;
            txtCustomerName.Text = dvs.Customername;
            txtDialupAccount.Text = dvs.Dialupaccount;
            txtDialupPassword.Text = dvs.Dialuppassword;
            txtDvsNo.Text = dvs.Dvsno;
            txtGateway.Text = dvs.Gateway;
            txtInstalldate.Text = dvs.Installdate.ToShortDateString();
            txtInstallPlace.Text = dvs.Installplace;
            txtIP.Text = dvs.Ip;
            txtJunctionBoxNo.Text = dvs.Junctionboxno;
            txtLanNo.Text = dvs.Lanno;
            txtLinkman.Text = dvs.Linkman;
            txtLinkmanPhone.Text = dvs.Linkman_phone;
            txtPortNum.Text = dvs.Portnum;
            txtServiceDesc.Text = dvs.Servicedesc;
            txtStorageTime.Text = dvs.Storagetime;
            txtSubnetMask.Text = dvs.Subnetmask;
            txtSurfaceMan.Text = dvs.Surfaceman;
            txtSurfaceManPhone.Text = dvs.Surfaceman_phone;
            ddlCustomerType.SelectedValue = dvs.Customertype;
            ddlDeviceLevel.SelectedValue = dvs.Devicelevel;
            ddlDeviceManu.SelectedValue = dvs.Devicemanu;
            ddlDevicePropertyRight.SelectedValue = dvs.Devicepropertyright;
            ddlDeviceState.SelectedValue = dvs.Devicestate;
            ddlDvsKind.SelectedValue = dvs.Dvskind;
            ddlDvsType.SelectedValue = dvs.Dvstype;
            ddlPaymentType.SelectedValue = dvs.Paymenttype;
            ddlPowerType.SelectedValue = dvs.Powertype;
            ddlPowerVoltage.SelectedValue = dvs.Powervoltage;
            ddlServiceType.SelectedValue = dvs.Servicetype;
            ddlStorageType.SelectedValue = dvs.Storagetype;
            ddlSwitchinMode.SelectedValue = dvs.Switchinmode;
            ddlSwitchinPlace.SelectedValue = dvs.Switchinplace;
            //经纬度
            SelectDeviceXy sdxy = new SelectDeviceXy();
            Device_Info_xy xy = sdxy.SelectByID(dvs.Id);
            if (xy != null)
            {
                txtLongitude.Text = xy.LONGITUDE.ToString();
                txtLatitude.Text = xy.LATITUDE.ToString();
            }

            hdfSuburb.Value = dvs.Suburb;
            hdfDvsID.Value = dvs.Id.ToString();
        }
    }