Ejemplo n.º 1
0
        /// <summary>
        /// Get work order general values for F8910.
        /// </summary>
        /// <param name="workorderId">The workorder id.</param>
        /// <returns>Typed DataSet containing the GDoc Work order General Values</returns>
        public static GDocWorkOrderGeneralData F8910_GetWorkOrderGeneral(int workorderId)
        {
            GDocWorkOrderGeneralData gdocWorkOrderGeneralData = new GDocWorkOrderGeneralData();
            Hashtable ht = new Hashtable();

            ht.Add("@WOID", workorderId);
            Utility.LoadDataSet(gdocWorkOrderGeneralData.F8910_GetWorkOrderGeneral, "f8910_pcget_WorkOrderGeneral", ht);
            return(gdocWorkOrderGeneralData);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Save work order general values for F8910.
        /// </summary>
        /// <param name="workOrderGeneral">The work order general.</param>
        /// <param name="userId">userId</param>
        /// <returns>Typed DataSet containing the GDoc Work order General Values</returns>
        public static GDocWorkOrderGeneralData F8910_SaveWorkOrderGeneral(string workOrderGeneral, int userId)
        {
            GDocWorkOrderGeneralData gdocWorkOrderGeneralData = new GDocWorkOrderGeneralData();
            Hashtable ht = new Hashtable();

            ht.Add("@WorkOrderGeneral", workOrderGeneral);
            ht.Add("@UserID", userId);
            Utility.LoadDataSet(gdocWorkOrderGeneralData.F8910_SaveWorkOrderGeneral, "f8910_pcupd_WorkOrderGeneral", ht);
            return(gdocWorkOrderGeneralData);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// To Customize Work order general controls
 /// </summary>
 private void CustomizeWorkOrderGeneral()
 {
     this.gdocWorkOrderGeneralData = this.form8910Control.WorkItem.F8910_GetWorkOrderGeneral(this.workOrderId);
     if (this.gdocWorkOrderGeneralData.F8910_GetWorkOrderGeneral.Rows.Count > 0)
     {
         this.PanelUnLock(true);
         this.DescriptionTextBox.Text   = this.gdocWorkOrderGeneralData.F8910_GetWorkOrderGeneral.Rows[0][this.gdocWorkOrderGeneralData.F8910_GetWorkOrderGeneral.DescriptionColumn].ToString();
         this.LocationNotesTextBox.Text = this.gdocWorkOrderGeneralData.F8910_GetWorkOrderGeneral.Rows[0][this.gdocWorkOrderGeneralData.F8910_GetWorkOrderGeneral.LocationNotesColumn].ToString();
         this.CorrectionsTextBox.Text   = this.gdocWorkOrderGeneralData.F8910_GetWorkOrderGeneral.Rows[0][this.gdocWorkOrderGeneralData.F8910_GetWorkOrderGeneral.CorrectionsColumn].ToString();
     }
     else
     {
         this.PanelUnLock(false);
     }
 }