protected void RtvCompanyCussentNodeClick(object sender, RadTreeNodeEventArgs e) { if (R_StartTime.DbSelectedDate == null) { StartTime = DateTime.MinValue; EndTime = DateTime.MinValue; } else { if (R_StartTime.SelectedDate != null) { StartTime = R_StartTime.SelectedDate.Value; if (R_EndTime.SelectedDate != null) { EndTime = R_EndTime.DbSelectedDate == null ? DateTime.Now : R_EndTime.SelectedDate.Value; } } } OrderNof = !string.IsNullOrEmpty(TB_OrderNo.Text) ? TB_OrderNo.Text : string.Empty; SStockType = Convert.ToInt32(RCB_SalesType.SelectedValue); WarehouseId = new Guid(RCB_Warehouse.SelectedValue); CompanyId = new Guid(RTVCompanyCussent.SelectedNode.Value); //if (RTVCompanyCussent.SelectedNode.ToolTip.Equals("BusinessRelatedUnits")) //{ //} //else //{ // HostingCompanyId = new Guid(RTVCompanyCussent.SelectedNode.Value); // CompanyId = Guid.Empty; //} StockGrid.Rebind(); }
protected void IbCreationDataClick(object sender, ImageClickEventArgs e) { if (R_StartTime.DbSelectedDate == null && R_EndTime.DbSelectedDate == null) { StartTime = DateTime.MinValue; EndTime = DateTime.MinValue; } else { StartTime = R_StartTime.SelectedDate == null ? new DateTime(2002, 1, 1) : R_StartTime.SelectedDate.Value; if (R_EndTime.SelectedDate != null) { EndTime = R_EndTime.DbSelectedDate == null ? DateTime.Now : R_EndTime.SelectedDate.Value; } } StorageType = Convert.ToInt32(RCB_StorageType.SelectedValue); CompanyId = new Guid(RTVCompanyCussent.SelectedNode.Value); HostingFilialeId = !string.IsNullOrEmpty(DdlSaleFiliale.SelectedValue) ? new Guid(DdlSaleFiliale.SelectedValue) : Guid.Empty; StockGrid.Rebind(); }