Ejemplo n.º 1
0
 public void setMyLabel(tbl_Label rowFromDB)
 {
     this.Name            = rowFromDB.Name;
     this.Type            = rowFromDB.Type;
     this.XML             = rowFromDB.XML;
     this.XMLDoc          = setXMLDoc();
     this.DynamicXMLField = rowFromDB.DynamicXMLField;
     this.StoredProcedure = rowFromDB.StoredProcedure;
     this.ValidPrinters   = rowFromDB.ValidPrinters;
     this.ActiveInactive  = rowFromDB.ActiveInactive;
 }
Ejemplo n.º 2
0
 // NOT CURRENTLY USED - Used to insert a label into the database
 private tbl_Label convertNewLabel()
 {
     tbl_Label                 = new tbl_Label();
     tbl_Label.Name            = this.Name;
     tbl_Label.Type            = this.Type;
     tbl_Label.XML             = this.XML;
     tbl_Label.DynamicXMLField = this.DynamicXMLField;
     tbl_Label.StoredProcedure = this.StoredProcedure;
     tbl_Label.ValidPrinters   = this.ValidPrinters;
     tbl_Label.ActiveInactive  = this.ActiveInactive;
     return(tbl_Label);
 }
Ejemplo n.º 3
0
 public void createMyLabel(tbl_Label dmLabel)
 {
     this.Name            = "";
     this.Type            = "";
     this.XML             = "";
     this.DynamicXMLField = "";
     this.StoredProcedure = "";
     this.ValidPrinters   = null;
     this.ActiveInactive  = 0;
     this.XMLDoc          = null;
     this.tbl_Label       = dmLabel;
 }
Ejemplo n.º 4
0
    private void SetUpPage()
    {
        // Initial Load, populate Label DropDown
        if (!IsPostBack)
        {
            SetupLabelDropDown();
        }
        else
        {
            // Set myLabel and selectedPrinter Session variables
            tbl_Label selectedLabel = dbConnection.tbl_Label.Where(x => x.ID.ToString() == ddlLabels.SelectedValue).First();
            myLabel.setMyLabel(selectedLabel);
            this.selectedPrinter = Request.Form["SelectedPrinter"];
        }

        // Lastly, focus on Textbox
        txtTextForLabel.Focus();
    }
Ejemplo n.º 5
0
 public myLabel(tbl_Label dmLabel)
 {
     createMyLabel(dmLabel);
 }