Esempio n. 1
0
        protected override object GetEditObject(Infragistics.WebUI.UltraWebGrid.UltraGridRow row)
        {
            if (_orderFacade == null)
            {
                _orderFacade = new  FacadeFactory(base.DataProvider).CreateOrderFacade();
            }
            object obj = _orderFacade.GetOrderDetail(
                row.Cells.FromKey("PartnerCode").Text.ToString(),
                row.Cells.FromKey("ItemCode").Text.ToString(),
                FormatHelper.PKCapitalFormat(FormatHelper.CleanString(OrderNO)));

            if (obj != null)
            {
                return((OrderDetail)obj);
            }

            return(null);
        }