guest 일때 서버 업데이트 기능 제거

New1 파일 최신버젼응로 업데이트(기초데이터)
This commit is contained in:
raytrace
2019-11-28 23:39:56 +09:00
parent 376f7d9de0
commit a444193a53
20 changed files with 250 additions and 149 deletions

View File

@@ -176,15 +176,17 @@
End Try
Else
Me.LinkLabel1.Visible = True
Me.LinkLabel2.Visible = True
Me.LinkLabel3.Visible = True
If Not Prj.UserId.ToLower() = "guest" Then
End If
Me.LinkLabel1.Visible = True
Me.LinkLabel2.Visible = True
Me.LinkLabel3.Visible = True
End If
End If
AddHandler DSET1.tbl_Desc.ColumnChanging, AddressOf AddNewDataRow_Zone_Changed2
AddHandler DSET1.tbl_Desc.ColumnChanging, AddressOf AddNewDataRow_Zone_Changed2
AddDebug("▲ Form Load")
AddDebug("▲ Form Load")
End Sub
Private Sub Binding_Zone()

View File

@@ -280,6 +280,7 @@ Partial Class Frm_V20091231_Weather
Me.ToolStripButton5 = New System.Windows.Forms.ToolStripButton()
Me.ToolStripButton6 = New System.Windows.Forms.ToolStripButton()
Me.dv = New CEnergy.arindv()
Me.건물위치DataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.StatusStrip1 = New System.Windows.Forms.StatusStrip()
Me.lb_msg = New System.Windows.Forms.ToolStripStatusLabel()
Me.DataGridViewTextBoxColumn2 = New System.Windows.Forms.DataGridViewTextBoxColumn()
@@ -289,7 +290,7 @@ Partial Class Frm_V20091231_Weather
Me.DataGridViewTextBoxColumn6 = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.DataGridViewTextBoxColumn7 = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.DataGridViewTextBoxColumn8 = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.건물위치DataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.Button2 = New System.Windows.Forms.Button()
Label39 = New System.Windows.Forms.Label()
Label247 = New System.Windows.Forms.Label()
Label248 = New System.Windows.Forms.Label()
@@ -1383,6 +1384,7 @@ Partial Class Frm_V20091231_Weather
'
'TabPage1
'
Me.TabPage1.Controls.Add(Me.Button2)
Me.TabPage1.Controls.Add(Me.GroupBox2)
Me.TabPage1.Controls.Add(Me.GroupBox1)
Me.TabPage1.Location = New System.Drawing.Point(4, 22)
@@ -1420,7 +1422,7 @@ Partial Class Frm_V20091231_Weather
Me.TableLayoutPanel7.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 102.0!))
Me.TableLayoutPanel7.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 102.0!))
Me.TableLayoutPanel7.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 96.0!))
Me.TableLayoutPanel7.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 138.0!))
Me.TableLayoutPanel7.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 139.0!))
Me.TableLayoutPanel7.Controls.Add(Me.tb_w12, 3, 5)
Me.TableLayoutPanel7.Controls.Add(Label64, 2, 5)
Me.TableLayoutPanel7.Controls.Add(Label77, 2, 4)
@@ -1454,7 +1456,7 @@ Partial Class Frm_V20091231_Weather
Me.TableLayoutPanel7.RowStyles.Add(New System.Windows.Forms.RowStyle())
Me.TableLayoutPanel7.RowStyles.Add(New System.Windows.Forms.RowStyle())
Me.TableLayoutPanel7.RowStyles.Add(New System.Windows.Forms.RowStyle())
Me.TableLayoutPanel7.Size = New System.Drawing.Size(443, 169)
Me.TableLayoutPanel7.Size = New System.Drawing.Size(444, 169)
Me.TableLayoutPanel7.TabIndex = 122
'
'tb_w12
@@ -3403,6 +3405,14 @@ Partial Class Frm_V20091231_Weather
Me.dv.Size = New System.Drawing.Size(182, 398)
Me.dv.TabIndex = 3
'
'건물위치DataGridViewTextBoxColumn
'
Me.건물위치DataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill
Me.건물위치DataGridViewTextBoxColumn.DataPropertyName = "건물위치"
Me.건물위치DataGridViewTextBoxColumn.HeaderText = "건물위치"
Me.건물위치DataGridViewTextBoxColumn.Name = "건물위치DataGridViewTextBoxColumn"
Me.건물위치DataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable
'
'StatusStrip1
'
Me.StatusStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.lb_msg})
@@ -3467,13 +3477,14 @@ Partial Class Frm_V20091231_Weather
Me.DataGridViewTextBoxColumn8.Name = "DataGridViewTextBoxColumn8"
Me.DataGridViewTextBoxColumn8.Width = 58
'
'건물위치DataGridViewTextBoxColumn
'Button2
'
Me.건물위치DataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill
Me.건물위치DataGridViewTextBoxColumn.DataPropertyName = "건물위치"
Me.건물위치DataGridViewTextBoxColumn.HeaderText = "건물위치"
Me.건물위치DataGridViewTextBoxColumn.Name = "건물위치DataGridViewTextBoxColumn"
Me.건물위치DataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable
Me.Button2.Location = New System.Drawing.Point(446, 414)
Me.Button2.Name = "Button2"
Me.Button2.Size = New System.Drawing.Size(135, 52)
Me.Button2.TabIndex = 127
Me.Button2.Text = "save"
Me.Button2.UseVisualStyleBackColor = True
'
'Frm_V20091231_Weather
'
@@ -3735,4 +3746,5 @@ End Sub
Friend WithEvents DataGridViewTextBoxColumn11 As System.Windows.Forms.DataGridViewTextBoxColumn
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents 건물위치DataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
Friend WithEvents Button2 As System.Windows.Forms.Button
End Class

View File

@@ -387,12 +387,24 @@
<metadata name="DS.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>329, 56</value>
</metadata>
<metadata name="DS.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>329, 56</value>
</metadata>
<metadata name="code.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="bsw_ilsa.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>81, 17</value>
</metadata>
<metadata name="code.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="bsw_ilsa.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>81, 17</value>
</metadata>
<metadata name="BindingNavigator1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>581, 17</value>
</metadata>
<metadata name="BindingNavigator1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>581, 17</value>
</metadata>
@@ -472,6 +484,15 @@
<metadata name="bsw_temp.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>178, 17</value>
</metadata>
<metadata name="DataGridViewTextBoxColumn9.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="bsw_temp.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>178, 17</value>
</metadata>
<metadata name="BindingNavigator4.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 56</value>
</metadata>
<metadata name="BindingNavigator4.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 56</value>
</metadata>
@@ -550,6 +571,15 @@
<metadata name="bsw_supdo.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>286, 17</value>
</metadata>
<metadata name="DataGridViewTextBoxColumn10.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="bsw_supdo.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>286, 17</value>
</metadata>
<metadata name="BindingNavigator5.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>173, 56</value>
</metadata>
<metadata name="BindingNavigator5.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>173, 56</value>
</metadata>
@@ -628,6 +658,15 @@
<metadata name="bsw_cha.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>399, 17</value>
</metadata>
<metadata name="DataGridViewTextBoxColumn11.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="bsw_cha.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>399, 17</value>
</metadata>
<metadata name="BindingNavigator2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>514, 56</value>
</metadata>
<metadata name="BindingNavigator2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>514, 56</value>
</metadata>

View File

@@ -68,10 +68,10 @@
'CEnergy.ARINCLASS.SaveLoad_FrmSetting(Me)
'//Weatehr
AddHandler DSET1.tbl_weather.TableNewRow, AddressOf AddNewDataRow_Weather
AddHandler DSET1.weather_ilsa.TableNewRow, AddressOf AddNewDataRow_Weatherilsa
AddHandler DSET1.weather_supdo.TableNewRow, AddressOf AddNewDataRow_Weathersupdo
AddHandler DSET1.weather_temp.TableNewRow, AddressOf AddNewDataRow_Weathertemp
AddHandler DSET1.weather_supdo.TableNewRow, AddressOf AddNewDataRow_Weathersupdo
AddHandler DSET1.weather_cha.TableNewRow, AddressOf AddNewDataRow_WeatherCha
Me.bs.DataSource = DSET1
@@ -688,4 +688,16 @@
'Next
DS.weather_cha.AcceptChanges() '//이건 변경내역을 반영하게삳는겁니다.
End Sub
Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
'//save
'AddHandler DSET1.tbl_weather.TableNewRow, AddressOf AddNewDataRow_Weather
'AddHandler DSET1.weather_ilsa.TableNewRow, AddressOf AddNewDataRow_Weatherilsa
'AddHandler DSET1.weather_temp.TableNewRow, AddressOf AddNewDataRow_Weathertemp
DSET1.tbl_weather.WriteXml(AppDomain.CurrentDomain.BaseDirectory + "db_weather.xml")
DSET1.weather_ilsa.WriteXml(AppDomain.CurrentDomain.BaseDirectory + "db_weather_ilsa.xml")
DSET1.weather_temp.WriteXml(AppDomain.CurrentDomain.BaseDirectory + "db_weather_temp.xml")
End Sub
End Class