public void LoadAllSODetail4DC(string argDeliveryDocTypeCode, string argSODocCode, string argClientCode, int argItemNoFrom, int argItemNoTo)
        {
            //if (this.Count > 0)
            //    this.Clear();

            DeliveryDetailManager objDeliveryDetailManager = new DeliveryDetailManager();

            objDeliveryDetailManager.colGetSODetail4DC(argDeliveryDocTypeCode, argSODocCode, argClientCode, argItemNoFrom, argItemNoTo, this);
        }
        private void LoadAllDeliveryDetail(string argDeliveryDocCode, string argClientCode)
        {
            if (this.Count > 0)
            {
                this.Clear();
            }

            DeliveryDetailManager objDeliveryDetailManager = new DeliveryDetailManager();

            objDeliveryDetailManager.colGetDeliveryDetail(argDeliveryDocCode, argClientCode, this);
        }
        public ICollection <BillingDetail> colGetBillingDetail4DC(string argDeliveryDocCode, string argClientCode, List <BillingDetail> lst)
        {
            DataSet               DataSetToFill            = new DataSet();
            DeliveryDetail        tDeliveryDetail          = new DeliveryDetail();
            DeliveryDetailManager objDeliveryDetailManager = new DeliveryDetailManager();

            DataSetToFill = objDeliveryDetailManager.GetDeliveryDetail4BD(argDeliveryDocCode, argClientCode);

            if (DataSetToFill != null)
            {
                foreach (DataRow dr in DataSetToFill.Tables[0].Rows)
                {
                    lst.Add(objCreateBillingDetail(dr));
                }
            }
            goto Finish;

Finish:
            DataSetToFill = null;

            return(lst);
        }