Ejemplo n.º 1
0
        public List<tsysattributevalue> GenerateAttributeList()
        {
            try
            {
                List<tsysattributevalue> lstAttribute = new List<tsysattributevalue>();
                for (int i = 0; i < this.grdAttribute.Rows.Count; i++)
                {
                    tsysattributevalue attr = new tsysattributevalue();
                    attr.attributeid = AttributeID;
                    attr.attributename = this.grdAttribute.Rows[i].Cells["attributename"].Value.ToString();
                    attr.attributetype = this.grdAttribute.Rows[i].Cells["attributetype"].Value.ToString();

                    if (this.grdAttribute.Rows[i].Cells["attributevalue"].Value != null)
                        attr.attributevalue = this.grdAttribute.Rows[i].Cells["attributevalue"].Value.ToString();
                    else
                        attr.attributevalue = string.Empty;

                    attr.seqno = Decimal.Parse(this.grdAttribute.Rows[i].Cells["seqno"].Value.ToString());
                    attr.usedby = this.WhereUsed.ToString();
                    attr.valuetype = this.grdAttribute.Rows[i].Cells["valuetype"].Value.ToString();
                    attr.lastmodifiedtime = Function.GetCurrentTime();
                    attr.lastmodifieduser = Function.GetCurrentUser();

                    lstAttribute.Add(attr);
                }

                return lstAttribute;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Ejemplo n.º 2
0
 public void DeleteSingleAttribute(ContextInfo contextInfo, tsysattributevalue obj)
 {
     contextInfo.Action = MES_ActionType.Delete;
     AttributeValueBll bll = new AttributeValueBll(contextInfo);
     bll.CallAccessControl();
     bll.DoDelete<tsysattributevalue>(obj);
     GC.Collect();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Create a new tsysattributevalue object.
 /// </summary>
 /// <param name="attributeid">Initial value of the attributeid property.</param>
 /// <param name="seqno">Initial value of the seqno property.</param>
 /// <param name="attributename">Initial value of the attributename property.</param>
 /// <param name="attributetype">Initial value of the attributetype property.</param>
 /// <param name="valuetype">Initial value of the valuetype property.</param>
 /// <param name="usedby">Initial value of the usedby property.</param>
 /// <param name="lastmodifieduser">Initial value of the lastmodifieduser property.</param>
 /// <param name="lastmodifiedtime">Initial value of the lastmodifiedtime property.</param>
 public static tsysattributevalue Createtsysattributevalue(global::System.String attributeid, global::System.Decimal seqno, global::System.String attributename, global::System.String attributetype, global::System.String valuetype, global::System.String usedby, global::System.String lastmodifieduser, global::System.DateTime lastmodifiedtime)
 {
     tsysattributevalue tsysattributevalue = new tsysattributevalue();
     tsysattributevalue.attributeid = attributeid;
     tsysattributevalue.seqno = seqno;
     tsysattributevalue.attributename = attributename;
     tsysattributevalue.attributetype = attributetype;
     tsysattributevalue.valuetype = valuetype;
     tsysattributevalue.usedby = usedby;
     tsysattributevalue.lastmodifieduser = lastmodifieduser;
     tsysattributevalue.lastmodifiedtime = lastmodifiedtime;
     return tsysattributevalue;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tsysattributevalue EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotsysattributevalue(tsysattributevalue tsysattributevalue)
 {
     base.AddObject("tsysattributevalue", tsysattributevalue);
 }
Ejemplo n.º 5
0
 public void InsertSingleAttribute(ContextInfo contextInfo, tsysattributevalue objAttribute)
 {
     contextInfo.Action = MES_ActionType.Insert;
     AttributeValueBll bll = new AttributeValueBll(contextInfo);
     bll.CallAccessControl();
     bll.DoInsert<tsysattributevalue>(objAttribute);
     GC.Collect();
 }