Ejemplo n.º 1
0
        public Line_Kit Add(string Kit_Item, string Kit_Item_Desc, float Kit_Item_Qty, float Kit_Item_Base, float Kit_Item_Fraction, float Kit_Item_Allocate, string Kit_Item_Serial, K_Charges K_Charges, string sKey)
        {
            Line_Kit returnValue = default(Line_Kit);

            //create a new object
            Line_Kit objNewMember = default(Line_Kit);

            objNewMember = new Line_Kit();


            //set the properties passed into the method
            objNewMember.K_Charges = K_Charges;

            objNewMember.Kit_Item          = Kit_Item;
            objNewMember.Kit_Item_Desc     = System.Convert.ToString((Information.IsDBNull(Kit_Item_Desc)) ? "" : Kit_Item_Desc);
            objNewMember.Kit_Item_Base     = Kit_Item_Base;
            objNewMember.Kit_Item_Fraction = Kit_Item_Fraction;
            objNewMember.Kit_Item_Allocate = Kit_Item_Allocate;
            objNewMember.Kit_Item_Serial   = System.Convert.ToString((Information.IsDBNull(Kit_Item_Serial)) ? "" : Kit_Item_Serial);
            objNewMember.Kit_Item_Qty      = Kit_Item_Qty;

            if (sKey.Length == 0)
            {
                mCol.Add(objNewMember, null, null, null);
            }
            else
            {
                mCol.Add(objNewMember, sKey, null, null);
            }


            //return the object created
            returnValue  = objNewMember;
            objNewMember = null;


            return(returnValue);
        }
Ejemplo n.º 2
0
 private void Class_Terminate_Renamed()
 {
     mvarK_Charges = null;
 }