Ejemplo n.º 1
0
        public override void SetValueWithTableName(string fieldName, object value, out bool sendImmediately)
        {
            base.SetValueWithTableName(fieldName, value, out sendImmediately);
            switch (fieldName)
            {
            case "Name":
                if (!m_Name.Equals(value))
                {
                    m_Name          = (System.String)ModelDatabaseEnumerator.ChangeType(value, typeof(System.String));
                    sendImmediately = true;
                    OnPropertyChanged("Name");
                }
                break;

            case "Remark":
                if (!m_Remark.Equals(value))
                {
                    m_Remark        = (System.String)ModelDatabaseEnumerator.ChangeType(value, typeof(System.String));
                    sendImmediately = true;
                    OnPropertyChanged("Remark");
                }
                break;

            default:
                sendImmediately = false;
                break;
            }
        }
Ejemplo n.º 2
0
        public override void SetValueWithTableName(string fieldName, object value, out bool sendImmediately)
        {
            base.SetValueWithTableName(fieldName, value, out sendImmediately);
            switch (fieldName)
            {
            case "Product":
                if (!m_Product.Equals(value))
                {
                    m_Product       = (System.Int32)ModelDatabaseEnumerator.ChangeType(value, typeof(System.Int32));
                    sendImmediately = true;
                    OnPropertyChanged("Product");
                }
                break;

            case "Price":
                if (!m_Price.Equals(value))
                {
                    m_Price         = (System.String)ModelDatabaseEnumerator.ChangeType(value, typeof(System.String));
                    sendImmediately = true;
                    OnPropertyChanged("Price");
                }
                break;

            case "Amount":
                if (!m_Amount.Equals(value))
                {
                    m_Amount        = (System.Int32)ModelDatabaseEnumerator.ChangeType(value, typeof(System.Int32));
                    sendImmediately = true;
                    OnPropertyChanged("Amount");
                }
                break;

            default:
                sendImmediately = false;
                break;
            }
        }
Ejemplo n.º 3
0
        public override void SetValueWithTableName(string fieldName, object value, out bool sendImmediately)
        {
            base.SetValueWithTableName(fieldName, value, out sendImmediately);
            switch (fieldName)
            {
            case "Name":
                if (!m_Name.Equals(value))
                {
                    m_Name          = (System.String)ModelDatabaseEnumerator.ChangeType(value, typeof(System.String));
                    sendImmediately = true;
                    OnPropertyChanged("Name");
                }
                break;

            case "Product":
                if (!m_Product.Equals(value))
                {
                    m_Product       = (System.Int32)ModelDatabaseEnumerator.ChangeType(value, typeof(System.Int32));
                    sendImmediately = true;
                    OnPropertyChanged("Product");
                }
                break;

            case "DateTime":
                if (!m_DateTime.Equals(value))
                {
                    m_DateTime      = (System.DateTime)ModelDatabaseEnumerator.ChangeType(value, typeof(System.DateTime));
                    sendImmediately = true;
                    OnPropertyChanged("DateTime");
                }
                break;

            case "TextInfo":
                if (!m_TextInfo.Equals(value))
                {
                    m_TextInfo      = (System.String)ModelDatabaseEnumerator.ChangeType(value, typeof(System.String));
                    sendImmediately = true;
                    OnPropertyChanged("TextInfo");
                }
                break;

            case "PicInfo":
                if (!m_PicInfo.Equals(value))
                {
                    m_PicInfo       = (System.String)ModelDatabaseEnumerator.ChangeType(value, typeof(System.String));
                    sendImmediately = true;
                    OnPropertyChanged("PicInfo");
                }
                break;

            case "VideoInfo":
                if (!m_VideoInfo.Equals(value))
                {
                    m_VideoInfo     = (System.String)ModelDatabaseEnumerator.ChangeType(value, typeof(System.String));
                    sendImmediately = true;
                    OnPropertyChanged("VideoInfo");
                }
                break;

            case "QrCordeInfo":
                if (!m_QrCordeInfo.Equals(value))
                {
                    m_QrCordeInfo   = (System.String)ModelDatabaseEnumerator.ChangeType(value, typeof(System.String));
                    sendImmediately = true;
                    OnPropertyChanged("QrCordeInfo");
                }
                break;

            default:
                sendImmediately = false;
                break;
            }
        }