Advertisement
Guest User

Untitled

a guest
May 11th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 21.72 KB | None | 0 0
  1. Public Partial Class VSFC_UserInfo
  2.     Inherits System.Web.UI.Page
  3.  
  4.     Dim vdc As New VerizonDataContext
  5.     Private StartWarehouseIDs As New List(Of Integer)
  6.     Private FinishWarehouseIDs As New List(Of Integer)
  7.  
  8.     Enum Warehouses
  9.         Awaiting_Receipt = 1
  10.         Starting_Goods = 3
  11.         In_Flashing = 4
  12.         Finished_Flashing = 5
  13.         In_Repair = 6
  14.         Finished_Repair = 7
  15.         In_Post_RF = 8
  16.         Finished_Post_RF = 9
  17.         In_QC = 10
  18.         Failed_QC = 11
  19.         In_FQA = 12
  20.         Finished_Goods = 14
  21.         Shipped = 15
  22.         Open_Inspection = 16
  23.         Finished_Receiving = 17
  24.         Repair_AWP = 19
  25.         In_UR_Validation = 20
  26.         UR_Finished_Goods = 21
  27.         Awaiting_Flashing = 22
  28.         Awaiting_UR_Validation = 23
  29.         Awaiting_Repair = 24
  30.         Failed_FQA = 25
  31.         Failed_RF = 26
  32.         Finished_Alignment = 27
  33.         In_Alignment = 28
  34.         QCF_In_QC = 29
  35.         In_Parts_Assessment = 30
  36.         Finished_Parts_Assessment = 31
  37.         RNR_Finished_Goods = 32
  38.         Take_Phone_to_Supervisor = 33
  39.         Manually_Removed = 34
  40.         Manually_Shipped = 35
  41.         Shipped_RTM = 36
  42.         In_UR_Parts_Removal = 37
  43.         Awaiting_UR_Parts_Removal = 38
  44.     End Enum
  45.  
  46.     Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  47.         If Not IsPostBack Then
  48.             Load_Grid()
  49.         End If
  50.     End Sub
  51.  
  52.  
  53.     Protected Sub Load_Grid()
  54.         If iMapVars.imap_enabled Then
  55.             Try
  56.  
  57.                 Dim username As String = Page.User.Identity.Name.Trim
  58.                 Dim ir As New iMap_Server.iMapResult
  59.                 Dim DBTime As Date = GetDBTime()
  60.  
  61.                 If Not User Is Nothing Then
  62.                     Dim imap As New iMap_Server.iMap_Functions
  63.                     Dim startRepair As IEnumerable(Of WAREHOUSE_LOG)
  64.                     Dim endRepair As IEnumerable(Of WAREHOUSE_LOG)
  65.  
  66.                     startRepair = GetStartTimes(username)
  67.                     endRepair = GetStopTimes(username)
  68.  
  69.                     For Each stRow As WAREHOUSE_LOG In startRepair
  70.                         For Each etRow As WAREHOUSE_LOG In endRepair
  71.                             If stRow.user_name.Equals(etRow.user_name) Then
  72.                                 If stRow.log_date < etRow.log_date Then 'user has scanned something in and is set as repairing
  73.                                    lblCurrentIdleTime.Text = CType(DBTime - CType(etRow.log_date, Date), TimeSpan).Hours & _
  74.                                               ":" & CType(DBTime - CType(etRow.log_date, Date), TimeSpan).Minutes.ToString.PadLeft(2, "0") & _
  75.                                               ":" & CType(DBTime - CType(etRow.log_date, Date), TimeSpan).Seconds.ToString.PadLeft(2, "0")
  76.                                    lblCurrentRepairTime.Text = "N/A"
  77.                                    lblCurrentTotalTime.Text = lblCurrentIdleTime.Text
  78.                                ElseIf stRow.log_date > etRow.log_date Then
  79.                                    lblCurrentIdleTime.Text = CType(CType(stRow.log_date, Date) - CType(etRow.log_date, Date), TimeSpan).Hours & _
  80.                                                ":" & CType(CType(stRow.log_date, Date) - CType(etRow.log_date, Date), TimeSpan).Minutes.ToString.PadLeft(2, "0") & _
  81.                                                ":" & CType(CType(stRow.log_date, Date) - CType(etRow.log_date, Date), TimeSpan).Seconds.ToString.PadLeft(2, "0")
  82.                                    lblCurrentRepairTime.Text = CType(DBTime - CType(stRow.log_date, Date), TimeSpan).Hours & _
  83.                                                ":" & CType(DBTime - CType(stRow.log_date, Date), TimeSpan).Minutes.ToString.PadLeft(2, "0") & _
  84.                                                ":" & CType(DBTime - CType(stRow.log_date, Date), TimeSpan).Seconds.ToString.PadLeft(2, "0")
  85.                                    lblCurrentTotalTime.Text = CType(DBTime - CType(etRow.log_date, Date), TimeSpan).Hours & _
  86.                                                ":" & CType(DBTime - CType(etRow.log_date, Date), TimeSpan).Minutes.ToString.PadLeft(2, "0") & _
  87.                                                ":" & CType(DBTime - CType(etRow.log_date, Date), TimeSpan).Seconds.ToString.PadLeft(2, "0")
  88.                                End If
  89.                            End If
  90.                        Next
  91.                    Next
  92.  
  93.                    Dim dtBegin As Date = Date.Now.Subtract(New TimeSpan(Date.Now.Hour, Date.Now.Minute, Date.Now.Second))
  94.                    Dim dtEnd As Date = Date.Now.AddDays(1).Subtract(New TimeSpan(Date.Now.Hour, Date.Now.Minute, Date.Now.Second - 1))
  95.                    Dim Bench As String = imap.GetBenchAndBin(username).ReturnedString
  96.  
  97.                    Dim Attachments As Integer = imap.GetAttachmentsByUser(username).ReturnedValue
  98.  
  99.                    Dim BadPartLogs As Integer = imap.GetBadPartRateByUser(username).ReturnedValue
  100.  
  101.                    Dim Consumptions As Integer = imap.GetConsumptionsByUser(username).ReturnedValue
  102.  
  103.                    Dim Lockdowns As Integer = imap.GetLockdownsByUser(username).ReturnedValue
  104.  
  105.                    Dim actionHistory As List(Of ActionHistory) = GetActionHistory(username).ToList
  106.  
  107.                    Me.lblLockdownsToday.Text = Lockdowns
  108.                    'Me.lblCurrentIdleTime.Text =
  109.                     Me.lblAttachmentsToday.Text = Attachments
  110.                     Me.lblBadPartsToday.Text = BadPartLogs
  111.                     Me.lblConsumptionsToday.Text = Consumptions
  112.  
  113.                     Me.lblFPQ.Text = GetFPQ(username)
  114.  
  115.                     If Me.lblFPQ.Text = "N/A" Then
  116.                         Me.lblPPH.Text = GetPPH(username).ToString("0.00")
  117.                     Else
  118.                         Me.lblPPH.Text = (GetPPH(username) * (Convert.ToDouble(Me.lblFPQ.Text) / 100)).ToString("0.00")
  119.                     End If
  120.  
  121.                     Me.lblESNsWorkedToday.Text = GetNumberOfWorkedESNS(username)
  122.  
  123.                     If Me.lblESNsWorkedToday.Text > 0 Then
  124.                         If Attachments > 0 Then
  125.                             Me.lblPPE.Text = (Attachments / Me.lblESNsWorkedToday.Text).ToString("0.00")
  126.                         Else
  127.                             If Consumptions > 0 Then
  128.                                 Me.lblPPE.Text = (Consumptions / Me.lblESNsWorkedToday.Text).ToString("0.00")
  129.                             Else
  130.                                 Me.lblPPE.Text = "N/A"
  131.                             End If
  132.                         End If
  133.                     Else
  134.                         Me.lblPPE.Text = "N/A"
  135.                     End If
  136.  
  137.                     If isUserOnBreak(username) = True Then
  138.                         btnStartBreak.Enabled = False
  139.                         btnEndBreak.Enabled = True
  140.                     Else
  141.                         btnStartBreak.Enabled = True
  142.                         btnEndBreak.Enabled = False
  143.                     End If
  144.  
  145.                 End If
  146.  
  147.             Catch ex As Exception
  148.  
  149.             End Try
  150.         End If
  151.  
  152.     End Sub
  153.  
  154.  
  155.     Public Function GetNumberOfWorkedESNS(ByVal UserName As String) As Integer
  156.         Dim dtBegin As Date = Date.Now.Subtract(New TimeSpan(Date.Now.Hour, Date.Now.Minute, Date.Now.Second + 1))
  157.         Dim dtEnd As Date = Date.Now.AddDays(1).Subtract(New TimeSpan(Date.Now.Hour, Date.Now.Minute, Date.Now.Second + 1))
  158.         LoadFinishWarehouseIDs()
  159.  
  160.         Dim ESNSWorked As Integer = 0
  161.  
  162.         If rblLocation.SelectedValue.ToLower = "repair" Then
  163.             ESNSWorked = (From a In vdc.REPAIRs _
  164.                              Where a.repair_date >= dtBegin And a.repair_date <= dtEnd And a.user_name.Equals(UserName) _
  165.                              And a.result_id = 1 _
  166.                              Select a.esn_id).Distinct.Count
  167.         Else
  168.             ESNSWorked = (From a In vdc.WAREHOUSE_LOGs _
  169.                                      Where a.log_date >= dtBegin And a.log_date <= dtEnd And a.user_name.Equals(UserName) And FinishWarehouseIDs.Contains(a.warehouse_id) _
  170.                                      Select a.esn_id).Distinct.Count
  171.         End If
  172.  
  173.         Return ESNSWorked
  174.     End Function
  175.  
  176.     Public Function GetPPH(ByVal UserName As String) As Decimal
  177.         Dim DBTime As Date = GetDBTime()
  178.         Dim dtBegin As Date = DBTime.Subtract(New TimeSpan(Date.Now.Hour, Date.Now.Minute, Date.Now.Second + 1))
  179.         Dim dtEnd As Date = DBTime.AddDays(1).Subtract(New TimeSpan(Date.Now.Hour, Date.Now.Minute, Date.Now.Second + 1))
  180.         Dim decPPH As Decimal = 0
  181.  
  182.         LoadFinishWarehouseIDs()
  183.         Dim startTime As Date = (From a In vdc.WAREHOUSE_LOGs _
  184.                                  Where a.log_date >= dtBegin And a.user_name.Equals(UserName) _
  185.                                  Select a.log_date Order By log_date).FirstOrDefault
  186.  
  187.  
  188.         If Not startTime = Nothing Then
  189.             Dim NumPhones As Integer
  190.             If rblLocation.SelectedValue.ToLower = "repair" Then
  191.  
  192.                 NumPhones = (From a In vdc.REPAIRs _
  193.                              Where a.repair_date >= startTime And a.repair_date <= DBTime And a.user_name.Equals(UserName) _
  194.                              And a.result_id = 1 _
  195.                              Select a.esn_id).Distinct.Count 'Valid Repair, ignored UR/RNR etc.
  196.            Else
  197.                NumPhones = (From a In vdc.WAREHOUSE_LOGs _
  198.                                                        Where a.log_date >= startTime And a.log_date <= DBTime And a.user_name.Equals(UserName) And FinishWarehouseIDs.Contains(a.warehouse_id) _
  199.                                                        Select a.esn_id).Distinct.Count
  200.            End If
  201.  
  202.            Dim NumHours As Decimal = DBTime.Subtract(startTime).TotalHours
  203.  
  204.            decPPH = NumPhones / NumHours
  205.        End If
  206.        Return decPPH
  207.    End Function
  208.  
  209.    Public Function GetFPQ(ByVal username As String) As String
  210.        Dim retVal As String = ""
  211.        If rblLocation.SelectedValue.ToLower = "repair" Then
  212.            Dim DBTime As Date = GetDBTime()
  213.            Dim dtBegin As Date = DBTime.AddDays(-5)
  214.  
  215.            Dim qcResults As IEnumerable(Of QC_TEST) = (From a In vdc.QC_TESTs _
  216.                                                        Where a.REPAIR.user_name.ToLower.Equals(username.ToLower) _
  217.                                                        And a.REPAIR.repair_date >= dtBegin _
  218.                                                        And a.last_repair_id = a.REPAIR.repair_id _
  219.                                                        ).ToList
  220.  
  221.            Dim passCounter As Integer = 0
  222.            Dim totalCount As Integer = 0
  223.  
  224.            totalCount = qcResults.Count
  225.            If totalCount > 0 Then
  226.                For Each test As QC_TEST In qcResults
  227.                    If test.pass = True Then
  228.                        passCounter += 1
  229.                    End If
  230.                Next
  231.  
  232.                If passCounter > 0 Then
  233.                    retVal = ((passCounter / totalCount) * 100).ToString("00.0")
  234.                Else
  235.                    retVal = "0.0"   'All have failed
  236.                 End If
  237.             Else
  238.                 retVal = "N/A"  'No QC tests have been performed against this tech's repairs in the last week
  239.             End If
  240.         Else
  241.             Return "N/A"
  242.         End If
  243.         Return retVal
  244.     End Function
  245.  
  246.     Private Sub LoadFinishWarehouseIDs()
  247.         FinishWarehouseIDs.Clear()
  248.         Select Case rblLocation.SelectedValue
  249.             Case "Other"
  250.                 FinishWarehouseIDs.Add(Warehouses.Finished_Flashing)
  251.  
  252.                 FinishWarehouseIDs.Add(Warehouses.Finished_Post_RF)
  253.                 FinishWarehouseIDs.Add(Warehouses.Failed_RF)
  254.  
  255.                 FinishWarehouseIDs.Add(Warehouses.Failed_FQA)
  256.                 FinishWarehouseIDs.Add(Warehouses.Finished_Goods)
  257.                 FinishWarehouseIDs.Add(Warehouses.UR_Finished_Goods)
  258.                 FinishWarehouseIDs.Add(Warehouses.RNR_Finished_Goods)
  259.  
  260.                 FinishWarehouseIDs.Add(Warehouses.Failed_QC)
  261.                 FinishWarehouseIDs.Add(Warehouses.Finished_Goods)
  262.                 FinishWarehouseIDs.Add(Warehouses.UR_Finished_Goods)
  263.                 FinishWarehouseIDs.Add(Warehouses.RNR_Finished_Goods)
  264.  
  265.                 FinishWarehouseIDs.Add(Warehouses.Finished_Alignment)
  266.  
  267.                 FinishWarehouseIDs.Add(Warehouses.Finished_Parts_Assessment)
  268.             Case "Repair"
  269.                 FinishWarehouseIDs.Add(Warehouses.Finished_Repair)
  270.                 FinishWarehouseIDs.Add(Warehouses.Repair_AWP)
  271.                 FinishWarehouseIDs.Add(Warehouses.Awaiting_UR_Parts_Removal)
  272.         End Select
  273.     End Sub
  274.  
  275.     Private Sub LoadStartWarehouseIDs()
  276.         StartWarehouseIDs.Clear()
  277.         Select Case rblLocation.SelectedValue
  278.             Case "Other"
  279.                 StartWarehouseIDs.Add(Warehouses.In_Flashing)
  280.  
  281.                 StartWarehouseIDs.Add(Warehouses.In_Post_RF)
  282.  
  283.                 StartWarehouseIDs.Add(Warehouses.In_FQA)
  284.  
  285.                 StartWarehouseIDs.Add(Warehouses.In_QC)
  286.  
  287.                 StartWarehouseIDs.Add(Warehouses.In_Alignment)
  288.  
  289.                 StartWarehouseIDs.Add(Warehouses.In_Parts_Assessment)
  290.             Case "Repair"
  291.                 StartWarehouseIDs.Add(Warehouses.In_Repair)
  292.         End Select
  293.     End Sub
  294.  
  295.     Public Function GetStartTimes(ByVal UserName As String) As Object
  296.         Dim DBTime As Date = GetDBTime()
  297.         DBTime = DBTime.Subtract(New TimeSpan(8, 0, 0))
  298.         Dim StartTimes
  299.         LoadStartWarehouseIDs()
  300.  
  301.         If rblLocation.SelectedValue.ToLower = "repair" Then
  302.  
  303.             StartTimes = (From a In vdc.WAREHOUSE_LOGs _
  304.                           Where (From b In vdc.WAREHOUSE_LOGs _
  305.                                  Where b.log_date >= DBTime And _
  306.                                  StartWarehouseIDs.Contains(b.warehouse_id) _
  307.                                  Group b By b.user_name Into LogMax = Max(b.log_id) _
  308.                                  Select LogMax).Contains(a.log_id) And a.user_name = UserName _
  309.                                  Order By a.user_name)
  310.         Else
  311.             StartTimes = (From a In vdc.WAREHOUSE_LOGs _
  312.                           Where (From b In vdc.WAREHOUSE_LOGs _
  313.                                  Where b.log_date >= DBTime And StartWarehouseIDs.Contains(b.warehouse_id) _
  314.                                  Group b By b.user_name Into LogMax = Max(b.log_id) _
  315.                                  Select LogMax).Contains(a.log_id) And a.user_name = UserName _
  316.                                  Order By a.user_name)
  317.         End If
  318.  
  319.         Return StartTimes
  320.     End Function
  321.  
  322.     Public Function GetStopTimes(ByVal UserName As String) As Object
  323.         Dim DBTime As Date = GetDBTime()
  324.         DBTime = DBTime.Subtract(New TimeSpan(8, 0, 0))
  325.         LoadFinishWarehouseIDs()
  326.         Dim StopTimes
  327.         If rblLocation.SelectedValue.ToLower = "repair" Then
  328.  
  329.             StopTimes = (From a In vdc.WAREHOUSE_LOGs _
  330.                              Where (From b In vdc.WAREHOUSE_LOGs _
  331.                                     Where b.log_date >= DBTime And _
  332.                                     FinishWarehouseIDs.Contains(b.warehouse_id) _
  333.                                     Group b By b.user_name Into LogMax = Max(b.log_id) _
  334.                                     Select LogMax).Contains(a.log_id) And a.user_name = UserName _
  335.                                     Order By a.user_name)
  336.         Else
  337.             StopTimes = (From a In vdc.WAREHOUSE_LOGs _
  338.                              Where (From b In vdc.WAREHOUSE_LOGs _
  339.                                     Where b.log_date >= DBTime And FinishWarehouseIDs.Contains(b.warehouse_id) _
  340.                                     Group b By b.user_name Into LogMax = Max(b.log_id) _
  341.                                     Select LogMax).Contains(a.log_id) And a.user_name = UserName _
  342.                                     Order By a.user_name)
  343.         End If
  344.  
  345.         Return StopTimes
  346.     End Function
  347.  
  348.     Public Function isUserOnBreak(ByVal UserName As String) As Boolean
  349.  
  350.         Dim WHHistory = (From a In vdc.WAREHOUSE_LOGs _
  351.                          Where a.user_name = UserName Order By a.log_date Descending).FirstOrDefault
  352.  
  353.         Dim BRKHistory = (From a In vdc.BREAK_LOGs _
  354.                           Where a.username = UserName Order By a.date_created Descending).FirstOrDefault
  355.  
  356.         If Not BRKHistory Is Nothing Then
  357.             If BRKHistory.break_start = False Then  'The last log they had was a break finish entry
  358.                Return False
  359.            End If
  360.  
  361.            If BRKHistory.date_created > WHHistory.log_date Then
  362.                'if the date of the start of the break is greater than their last
  363.                 ' activity then they are on break
  364.                Return True
  365.            End If
  366.        End If
  367.  
  368.  
  369.        Return False
  370.        'If they have reached here then they started again without setting themselves as being back from break
  371.         'It is a big performance hit to piggy back onto the warehouse log writing to say "hey write that you are back from break"
  372.        'TODO: Figure out what to do in this case
  373.     End Function
  374.  
  375.     Public Function GetActionHistory(ByVal UserName As String) As System.Collections.Generic.List(Of ActionHistory)
  376.         Dim dtBegin As Date = Date.Now.Subtract(New TimeSpan(Date.Now.Hour, Date.Now.Minute, Date.Now.Second + 1))
  377.         Dim dtEnd As Date = Date.Now.AddDays(1).Subtract(New TimeSpan(Date.Now.Hour, Date.Now.Minute, Date.Now.Second + 1))
  378.         Dim RepairReworkInfo = (From a In vdc.REPAIRs _
  379.                                       Where a.user_name = UserName And a.repair_date >= dtBegin And a.repair_date <= dtEnd _
  380.                                       And a.trip_id > 1 _
  381.                                        Select a.RMA_ESN.esn_id _
  382.                                        ).ToList
  383.  
  384.         Dim WHHistory = (From a In vdc.WAREHOUSE_LOGs _
  385.                              Where a.user_name = UserName And a.log_date >= dtBegin And a.log_date <= dtEnd _
  386.                              Select a.esn_id, a.RMA_ESN.actual_hex, a.RMA_ESN.actual_dec, a.WAREHOUSE.warehouse_name, _
  387.                              a.log_date, a.user_name, a.RMA_ESN.RMA_LINE.DISPOSITION.disposition _
  388.                              Order By log_date Descending).ToList
  389.  
  390.         Dim ActionHistoryList As New List(Of ActionHistory)
  391.         For Each Item In WHHistory
  392.             Dim nwActionHistory As New ActionHistory
  393.             nwActionHistory.Action = Item.warehouse_name
  394.             nwActionHistory.ActionDate = Item.log_date.ToShortTimeString
  395.             nwActionHistory.ESN = Item.actual_dec
  396.             nwActionHistory.Disposition = Item.disposition
  397.             nwActionHistory.Rework = False
  398.             If RepairReworkInfo.Contains(Item.esn_id) Then
  399.                 nwActionHistory.Rework = True
  400.             End If
  401.        
  402.             ActionHistoryList.Add(nwActionHistory)
  403.         Next
  404.  
  405.         Return ActionHistoryList
  406.     End Function
  407.  
  408.     Public Function GetDBTime() As Date
  409.         SyncLock vdc
  410.  
  411.             Return vdc.ExecuteQuery(Of Date)(" Select getdate()").Single()
  412.         End SyncLock
  413.  
  414.     End Function
  415.  
  416.  
  417.     <Serializable()> Public Class ActionHistory
  418.         Private _Action As String
  419.         Private _ActionDate As String
  420.         Private _ESN As String
  421.         'Private _Key As Integer
  422.        Private _Disposition As String
  423.        ' Private _recorded As Boolean = False
  424.         Private _Rework As String
  425.  
  426.         Public Property Action() As String
  427.             Get
  428.                 Return _Action
  429.             End Get
  430.             Set(ByVal value As String)
  431.                 _Action = value
  432.             End Set
  433.         End Property
  434.  
  435.         Public Property ActionDate() As String
  436.             Get
  437.                 Return _ActionDate
  438.             End Get
  439.             Set(ByVal value As String)
  440.                 _ActionDate = value
  441.             End Set
  442.         End Property
  443.  
  444.         Public Property ESN() As String
  445.             Get
  446.                 Return _ESN
  447.             End Get
  448.             Set(ByVal value As String)
  449.                 _ESN = value
  450.             End Set
  451.         End Property
  452.  
  453.         Public Property Rework() As Boolean
  454.             Get
  455.                 Return _Rework
  456.             End Get
  457.             Set(ByVal value As Boolean)
  458.                 _Rework = value
  459.             End Set
  460.         End Property
  461.  
  462.         Public Property Disposition() As String
  463.             Get
  464.                 Return _Disposition
  465.             End Get
  466.             Set(ByVal value As String)
  467.                 _Disposition = value
  468.             End Set
  469.         End Property
  470.  
  471.     End Class
  472.  
  473.  
  474.     Protected Sub btnStartBreak_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnStartBreak.Click
  475.         Dim brk As New BREAK_LOG
  476.         With brk
  477.             .break_start = True
  478.             .date_created = Now
  479.             .username = Page.User.Identity.Name.Trim
  480.         End With
  481.         vdc.BREAK_LOGs.InsertOnSubmit(brk)
  482.         vdc.SubmitChanges()
  483.  
  484.         btnEndBreak.Enabled = True
  485.         btnStartBreak.Enabled = False
  486.     End Sub
  487.  
  488.     Protected Sub btnEndBreak_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnEndBreak.Click
  489.         Dim brk As New BREAK_LOG
  490.         With brk
  491.             .break_start = False
  492.             .date_created = Now
  493.             .username = Page.User.Identity.Name.Trim
  494.         End With
  495.         vdc.BREAK_LOGs.InsertOnSubmit(brk)
  496.         vdc.SubmitChanges()
  497.  
  498.         btnEndBreak.Enabled = False
  499.         btnStartBreak.Enabled = True
  500.     End Sub
  501.  
  502.     Protected Sub btnRefresh_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnRefresh.Click
  503.         Load_Grid()
  504.     End Sub
  505. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement