C# Class WFA_psychometric_chart.EditNodeLineForm

Mostrar archivo Open project: temcocontrols/T3000_Building_Automation_System Class Usage Examples

Public Properties

Property Type Description
bcs Form1_main
dataGridView1 System.Windows.Forms.DataGridView
lineInfo List
nodeInfo List
tempNodeID string
tempRowIndex int

Public Methods

Method Description
CalculateProcessParameterForEnergy ( string id, string prevNodeID, string nextNodeID, Series lineSeriesID, Color colorVal, int thickness_value, string name ) : void
CallFromTemperatureAndHumidtyFormForMixNodeFxn ( string nodeID ) : void
EditNodeLineForm ( Form1_main b ) : System
EndEditCall ( ) : void
EnergyCalculationForProcess ( DataGridViewRow dgv_row ) : void
LineUpdateAndReload ( string lineid, string prevNodeID, string nextNodeID, Color color, int thickness, Series lineseries, string name, int status ) : void
LoadNodeAndLine ( ) : void
RefreshChartAndDGVForMixNodeFunction ( ) : void
RefreshDataFromDBAndChart ( ) : void
SetNodeForDeviceUsingTempAndHum ( string source, string name, string label, Color c1, string comboboxItemText1, int marker_size, string deviceInstance, string IP, string param1ID, string param2ID, string param1_info, string param2_info, string param1_value, string param2_value, string object_identifier_type_param1, string object_identifier_type_param2 ) : void
SetNodeForWeb ( string source, string name, string label, Color c1, string comboboxItemText1, int marker_size ) : void
UpdateDataValueAndRefreshDGV ( string NodeID, double xVal, double yVal, string source, string name, string label, Color color, string showtext, int nodesize ) : void
UpdateNodeInfoForDeviceSelection ( string nodeID, string deviceInstancID, string IP, string param1id, string param2id, string param1info, string param2info, string param1Value, string param2Value, string param1_id_type, string param2_id_type ) : void

This function helps to update the device information of a node and also update the node value

UpdateNodeInfoForHumidityDeviceSelection ( string nodeID, string Humidity_deviceInstancID, string Humidity_IP, string Humidity_param1id, string Humidity_param1info, string Humidity_param1Value, string Humidity_param1_id_type ) : void
UpdateNodeInfoForTemperatureDeviceSelection ( string nodeID, string Temp_deviceInstancID, string Temp_IP, string Temp_param1id, string Temp_param1info, string Temp_param1Value, string Temp_param1_id_type ) : void

fUNCTION WILL HELP IN Updating node info value for temperature form and inserts to db

WebUpdateSelection ( ) : void
WebUpdateSelectionForHumidity ( ) : void
WebUpdateSelectionForTemperature ( ) : void

This one update the node info value to db

dataGridView1_CellEndEdit ( object sender, DataGridViewCellEventArgs e ) : void

This is triggered when the editing is completed

previousApplyButtonCode ( ) : void
updateNodeInfoBasedOnPresentValue ( string NodeID, double xVal, double yVal, string temperature_source, string humidity_source, string name, Color color, int nodesize, int airFlow1 ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
ComboBox_SelectedIndexChanged ( object sender, EventArgs e ) : void
EditNodeLineForm_Load ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

button1_Click ( object sender, EventArgs e ) : void
button2_Click ( object sender, EventArgs e ) : void
dataGridView1_CellBeginEdit ( object sender, DataGridViewCellCancelEventArgs e ) : void
dataGridView1_CellClick ( object sender, DataGridViewCellEventArgs e ) : void
dataGridView1_CellValueChanged_1 ( object sender, DataGridViewCellEventArgs e ) : void
dataGridView1_EditingControlShowing ( object sender, DataGridViewEditingControlShowingEventArgs e ) : void
dataGridView1_MouseClick ( object sender, MouseEventArgs e ) : void
dataGridView2_CellBeginEdit ( object sender, DataGridViewCellCancelEventArgs e ) : void
dataGridView2_CellClick ( object sender, DataGridViewCellEventArgs e ) : void
dataGridView2_CellContentClick ( object sender, DataGridViewCellEventArgs e ) : void
dataGridView2_CellEndEdit ( object sender, DataGridViewCellEventArgs e ) : void
dataGridView2_CellValueChanged ( object sender, DataGridViewCellEventArgs e ) : void
dataGridView2_SelectionChanged ( object sender, EventArgs e ) : void

Method Details

CalculateProcessParameterForEnergy() public method

public CalculateProcessParameterForEnergy ( string id, string prevNodeID, string nextNodeID, Series lineSeriesID, Color colorVal, int thickness_value, string name ) : void
id string
prevNodeID string
nextNodeID string
lineSeriesID Series
colorVal Color
thickness_value int
name string
return void

CallFromTemperatureAndHumidtyFormForMixNodeFxn() public method

public CallFromTemperatureAndHumidtyFormForMixNodeFxn ( string nodeID ) : void
nodeID string
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

EditNodeLineForm() public method

public EditNodeLineForm ( Form1_main b ) : System
b Form1_main
return System

EndEditCall() public method

public EndEditCall ( ) : void
return void

EnergyCalculationForProcess() public method

public EnergyCalculationForProcess ( DataGridViewRow dgv_row ) : void
dgv_row DataGridViewRow
return void

LineUpdateAndReload() public method

public LineUpdateAndReload ( string lineid, string prevNodeID, string nextNodeID, Color color, int thickness, Series lineseries, string name, int status ) : void
lineid string
prevNodeID string
nextNodeID string
color Color
thickness int
lineseries Series
name string
status int
return void

LoadNodeAndLine() public method

public LoadNodeAndLine ( ) : void
return void

RefreshChartAndDGVForMixNodeFunction() public method

public RefreshChartAndDGVForMixNodeFunction ( ) : void
return void

RefreshDataFromDBAndChart() public method

public RefreshDataFromDBAndChart ( ) : void
return void

SetNodeForDeviceUsingTempAndHum() public method

public SetNodeForDeviceUsingTempAndHum ( string source, string name, string label, Color c1, string comboboxItemText1, int marker_size, string deviceInstance, string IP, string param1ID, string param2ID, string param1_info, string param2_info, string param1_value, string param2_value, string object_identifier_type_param1, string object_identifier_type_param2 ) : void
source string
name string
label string
c1 Color
comboboxItemText1 string
marker_size int
deviceInstance string
IP string
param1ID string
param2ID string
param1_info string
param2_info string
param1_value string
param2_value string
object_identifier_type_param1 string
object_identifier_type_param2 string
return void

SetNodeForWeb() public method

public SetNodeForWeb ( string source, string name, string label, Color c1, string comboboxItemText1, int marker_size ) : void
source string
name string
label string
c1 Color
comboboxItemText1 string
marker_size int
return void

UpdateDataValueAndRefreshDGV() public method

public UpdateDataValueAndRefreshDGV ( string NodeID, double xVal, double yVal, string source, string name, string label, Color color, string showtext, int nodesize ) : void
NodeID string
xVal double
yVal double
source string
name string
label string
color Color
showtext string
nodesize int
return void

UpdateNodeInfoForDeviceSelection() public method

This function helps to update the device information of a node and also update the node value
public UpdateNodeInfoForDeviceSelection ( string nodeID, string deviceInstancID, string IP, string param1id, string param2id, string param1info, string param2info, string param1Value, string param2Value, string param1_id_type, string param2_id_type ) : void
nodeID string node id
deviceInstancID string device instance id
IP string IP value
param1id string param1 id
param2id string param2 id
param1info string param1info eg. temp
param2info string param2 info eg. hum/enthalpy
param1Value string
param2Value string
param1_id_type string eg. OBJECT_ANALOG_INPUT
param2_id_type string eg. OBJECT_ANALOG_INPUT,
return void

UpdateNodeInfoForHumidityDeviceSelection() public method

public UpdateNodeInfoForHumidityDeviceSelection ( string nodeID, string Humidity_deviceInstancID, string Humidity_IP, string Humidity_param1id, string Humidity_param1info, string Humidity_param1Value, string Humidity_param1_id_type ) : void
nodeID string
Humidity_deviceInstancID string
Humidity_IP string
Humidity_param1id string
Humidity_param1info string
Humidity_param1Value string
Humidity_param1_id_type string
return void

UpdateNodeInfoForTemperatureDeviceSelection() public method

fUNCTION WILL HELP IN Updating node info value for temperature form and inserts to db
public UpdateNodeInfoForTemperatureDeviceSelection ( string nodeID, string Temp_deviceInstancID, string Temp_IP, string Temp_param1id, string Temp_param1info, string Temp_param1Value, string Temp_param1_id_type ) : void
nodeID string
Temp_deviceInstancID string
Temp_IP string
Temp_param1id string
Temp_param1info string
Temp_param1Value string
Temp_param1_id_type string
return void

WebUpdateSelection() public method

public WebUpdateSelection ( ) : void
return void

WebUpdateSelectionForHumidity() public method

public WebUpdateSelectionForHumidity ( ) : void
return void

WebUpdateSelectionForTemperature() public method

This one update the node info value to db
public WebUpdateSelectionForTemperature ( ) : void
return void

dataGridView1_CellEndEdit() public method

This is triggered when the editing is completed
public dataGridView1_CellEndEdit ( object sender, DataGridViewCellEventArgs e ) : void
sender object an object
e DataGridViewCellEventArgs event value
return void

previousApplyButtonCode() public method

public previousApplyButtonCode ( ) : void
return void

updateNodeInfoBasedOnPresentValue() public method

public updateNodeInfoBasedOnPresentValue ( string NodeID, double xVal, double yVal, string temperature_source, string humidity_source, string name, Color color, int nodesize, int airFlow1 ) : void
NodeID string
xVal double
yVal double
temperature_source string
humidity_source string
name string
color Color
nodesize int
airFlow1 int
return void

Property Details

bcs public_oe property

public Form1_main bcs
return Form1_main

dataGridView1 public_oe property

public System.Windows.Forms.DataGridView dataGridView1
return System.Windows.Forms.DataGridView

lineInfo public_oe property

public List lineInfo
return List

nodeInfo public_oe property

public List nodeInfo
return List

tempNodeID public_oe property

public string tempNodeID
return string

tempRowIndex public_oe property

public int tempRowIndex
return int