コード例 #1
0
        private void 单车后续作业计划_Load(object sender, EventArgs e)
        {
            if (m_cl != null)
            {
                using (IRepository rep = ServiceProvider.GetService <IRepositoryFactory>().GenerateRepository <车辆作业>())
                {
                    var cl = rep.Get <车辆>(m_cl.ID);

                    txt车型.Text   = cl.车型;
                    txt车主.Text   = cl.车主.简称;
                    txt承运车辆.Text = cl.车牌号;
                    txt核定载重.Text = cl.核定载重;
                    txt监管车.Text  = cl.监管车 ? "是" : "否";
                    txt联系电话.Text = cl.主驾驶员.联系方式;
                }

                var rightGrid = base.AssociateBoundGrid(pnl车辆作业集合, "车队级调度_静态任务下达_单车后续作业计划");
                rightGrid.DisplayManager.SearchManager.LoadData(SearchExpression.And(
                                                                    SearchExpression.Eq("车辆作业:车辆", m_cl), SearchExpression.IsNull("车辆作业:结束时间")),
                                                                new List <ISearchOrder> {
                    SearchOrder.Asc("车辆作业:Created")
                });
            }
        }
コード例 #2
0
        public override SoaDataGridSelectResponse Select(SoaDataGridSelectRequest request)
        {
            SoaDataGridSelectResponse response = new SoaDataGridSelectResponse();

            if (request.Tag == null || string.IsNullOrEmpty(request.Tag.ToString()))
            {
                return(response);
            }

            try
            {
                //WindowInfo windowInfo = ADInfoBll.Instance.GetWindowInfo(request.Tag.ToString());
                //IList<WindowTabInfo> tabInfos = null;
                //if (windowInfo != null)
                //{
                //    tabInfos = ADInfoBll.Instance.GetWindowTabInfo(windowInfo.Id);
                //}

                Dictionary <string, string> dict = StringToDictionary(request.Tag.ToString());

                if (!dict.ContainsKey("winTab") || string.IsNullOrEmpty(dict["winTab"]))
                {
                    return(response);
                }

                WindowTabInfo tabInfo = ADInfoBll.Instance.GetWindowTabInfo(dict["winTab"]);

                if (tabInfo != null)
                {
                    ISearchManager sm = ServiceProvider.GetService <IManagerFactory>().GenerateSearchManager(tabInfo, null);
                    ManagerFactory.CreateSearchManagerEagerFetchs(sm, tabInfo.GridName);

                    ISearchExpression exp = null;
                    if (dict.ContainsKey("se") && !string.IsNullOrEmpty(dict["se"]))
                    {
                        //exp = HttpUtility.UrlDecode(exp, System.Text.Encoding.GetEncoding("gb2312"));
                        //exp = HttpContext.Current.Server.UrlDecode(exp);
                        exp = SearchExpression.Parse(dict["se"]);
                    }

                    //if (request.Filters != null)
                    //{
                    //    //searchs.Add(SearchExpression.Parse(request.Tag.ToString()));
                    //    foreach (SoaDataGridDataCondition i in request.Filters)
                    //    {
                    //        switch (i.Operand)
                    //        {
                    //            case SoaDataGridDataConditionOperand.Contains:
                    //                searchExps.Add(SearchExpression.Like(i.DataFieldName, i.DataFieldValue));
                    //                break;
                    //            case SoaDataGridDataConditionOperand.Equals:
                    //                searchExps.Add(SearchExpression.Eq(i.DataFieldName, i.DataFieldValue));
                    //                break;
                    //            case SoaDataGridDataConditionOperand.GreaterThan:
                    //                searchExps.Add(SearchExpression.Gt(i.DataFieldName, i.DataFieldValue));
                    //                break;
                    //            case SoaDataGridDataConditionOperand.GreaterThanOrEqual:
                    //                searchExps.Add(SearchExpression.Ge(i.DataFieldName, i.DataFieldValue));
                    //                break;
                    //            case SoaDataGridDataConditionOperand.In:
                    //                searchExps.Add(SearchExpression.InG(i.DataFieldName, i.DataFieldValue));
                    //                break;
                    //            case SoaDataGridDataConditionOperand.LessThan:
                    //                searchExps.Add(SearchExpression.Lt(i.DataFieldName, i.DataFieldValue));
                    //                break;
                    //            case SoaDataGridDataConditionOperand.LessThanOrEqual:
                    //                searchExps.Add(SearchExpression.Le(i.DataFieldName, i.DataFieldValue));
                    //                break;
                    //            case SoaDataGridDataConditionOperand.NotEqualTo:
                    //                searchExps.Add(SearchExpression.NotEq(i.DataFieldName, i.DataFieldValue));
                    //                break;
                    //            case SoaDataGridDataConditionOperand.NotIn:
                    //                searchExps.Add(SearchExpression.NotInG(i.DataFieldName, i.DataFieldValue));
                    //                break;
                    //            case SoaDataGridDataConditionOperand.StartsWith:
                    //                searchExps.Add(SearchExpression.Like(i.DataFieldName, i.DataFieldValue));
                    //                break;
                    //        }
                    //    }
                    //}

                    IList <ISearchOrder> searchOrders = new List <ISearchOrder>();
                    if (request.Sortings != null)
                    {
                        foreach (SoaDataGridSorting i in request.Sortings)
                        {
                            searchOrders.Add(i.Direction == SoaSortDirection.Ascending ? SearchOrder.Asc(i.Column.Name) : SearchOrder.Desc(i.Column.Name));
                        }
                    }

                    sm.FirstResult = request.Offset;
                    sm.MaxResult   = request.Count;

                    List <List <object> > arMessages;

                    arMessages = GenerateData(sm.GetData(exp, searchOrders), tabInfo.GridName, request.Columns);

                    //IList<Dictionary<string, object>> values = null;
                    //

                    //using (DataProcess dp = new DataProcess())
                    //{
                    //    if (dt == null)
                    //    {
                    //        // should be IEnumerable because IList<T> not support IList
                    //        IEnumerable data = ret as IEnumerable;
                    //        values = dp.Process(data, tabInfo.GridName);
                    //    }
                    //    else
                    //    {
                    //        values = dp.Process(dt.Rows, tabInfo.GridName);
                    //    }
                    //}

                    //foreach (Dictionary<string, object> obj in values)
                    //{
                    //    List<object> msg = new List<object>();

                    //    foreach (SoaDataGridColumn oColumn in request.Columns)
                    //    {
                    //        if (!obj.ContainsKey(oColumn.Name))
                    //        {
                    //            msg.Add(null);
                    //        }
                    //        else
                    //        {
                    //            msg.Add(obj[oColumn.Name]);
                    //        }
                    //    }

                    //    arMessages.Add(msg);
                    //}
                    response.Data = arMessages;

                    if (sm.EnablePage)
                    {
                        response.ItemCount = sm.GetCount(exp);
                    }
                    else
                    {
                        response.ItemCount = arMessages.Count;
                    }
                }
                else
                {
                    throw new ArgumentException("Invalide tabName of " + dict["winTab"]);
                }
            }
            catch (Exception)
            {
#if DEBUG
                throw;
#endif
            }

            return(response);
        }
コード例 #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="searchConditions"></param>
        /// <param name="searchOrders"></param>
        public virtual void FillSearchConditions(IList <ISearchExpression> searchConditions, IList <ISearchOrder> searchOrders)
        {
            if (Order.HasValue)
            {
                if (Order.Value)
                {
                    searchOrders.Add(SearchOrder.Asc(PropertyNameToSearch));
                }
                else
                {
                    searchOrders.Add(SearchOrder.Desc(PropertyNameToSearch));
                }
            }

            if (IsNull)
            {
                if (!IsNot)
                {
                    if (SearchNullUseFull)
                    {
                        searchConditions.Add(SearchExpression.IsNull(PropertyNameToSearch));
                    }
                    else
                    {
                        string[] ss = this.Navigator.Split(new char[] { '.', ':' }, StringSplitOptions.RemoveEmptyEntries);
                        searchConditions.Add(SearchExpression.IsNull(ss[0]));
                    }
                }
                else
                {
                    searchConditions.Add(SearchExpression.IsNotNull(PropertyNameToSearch));
                }
            }
            else
            {
                if (SelectedDataValue1 == null && SelectedDataValue2 == null)
                {
                    return;
                }

                if (SelectedDataValue1 != null && SelectedDataValue2 == null)
                {
                    if (!IsNot)
                    {
                        searchConditions.Add(SearchExpression.Ge(PropertyNameToSearch, this.SelectedDataValue1));
                    }
                    else
                    {
                        searchConditions.Add(SearchExpression.Lt(PropertyNameToSearch, this.SelectedDataValue1));
                    }
                }
                else if (SelectedDataValue1 == null && SelectedDataValue2 != null)
                {
                    if (!IsNot)
                    {
                        searchConditions.Add(SearchExpression.Le(PropertyNameToSearch, this.SelectedDataValue2));
                    }
                    else
                    {
                        searchConditions.Add(SearchExpression.Gt(PropertyNameToSearch, this.SelectedDataValue2));
                    }
                }
                else
                {
                    if (!IsNot)
                    {
                        searchConditions.Add(SearchExpression.And(SearchExpression.Ge(PropertyNameToSearch, this.SelectedDataValue1),
                                                                  SearchExpression.Le(PropertyNameToSearch, this.SelectedDataValue2)));
                    }
                    else
                    {
                        searchConditions.Add(SearchExpression.Or(SearchExpression.Lt(PropertyNameToSearch, this.SelectedDataValue1),
                                                                 SearchExpression.Gt(PropertyNameToSearch, this.SelectedDataValue2)));
                    }
                }
            }

            if (!string.IsNullOrEmpty(this.AdditionalSearchExpression))
            {
                searchConditions.Add(SearchExpression.Parse(this.AdditionalSearchExpression));
            }
        }
コード例 #4
0
    public GridWebServiceSelectResponse SelectMethod(GridWebServiceSelectRequest request)
    {
        GridWebServiceSelectResponse response = new GridWebServiceSelectResponse();

        try
        {
            request.CustomParameter = "进口_备案";
            WindowTabInfo tabInfo = ADInfoBll.Instance.GetWindowTabInfo(request.CustomParameter);

            if (tabInfo != null)
            {
                ISearchManager            sm           = Feng.Windows.Forms.ArchiveFormFactory.GenerateSearchManager(tabInfo, null);
                IList <ISearchExpression> searchExps   = new List <ISearchExpression>();
                IList <ISearchOrder>      searchOrders = new List <ISearchOrder>();
                if (!string.IsNullOrEmpty(request.Filter))
                {
                    searchExps.Add(SearchExpression.Parse(request.Filter));
                }

                if (!string.IsNullOrEmpty(request.SortField))
                {
                    searchOrders.Add(request.SortOrder == "ASC" ? SearchOrder.Asc(request.SortField) : SearchOrder.Desc(request.SortField));
                }

                sm.FirstResult = request.CurrentPageIndex * request.PageSize;
                sm.MaxResult   = request.PageSize;

                List <TestData> arMessages = new List <TestData>();

                object ret = sm.FindData(searchExps, searchOrders);

                System.Data.DataTable dt = ret as System.Data.DataTable;
                if (dt == null)
                {
                    IEnumerable data = ret as IEnumerable;
                    foreach (object obj in data)
                    {
                        arMessages.Add(new TestData(EntityHelper.GetPropertyValue(obj, "产地").ToString()));
                    }
                }
                else
                {
                    foreach (System.Data.DataRow row in dt.Rows)
                    {
                        List <object> msg = new List <object>();

                        foreach (string oColumn in request.Columns)
                        {
                            msg.Add(row[oColumn]);
                        }
                        //arMessages.Add(msg);
                    }
                }

                response.RecordCount = sm.FindDataCount(searchExps);
                response.Items       = arMessages;
            }
            else
            {
                throw new ArgumentException("Invalide tabName");
            }
        }
        catch (Exception ex)
        {
            throw new ArgumentException(ex.Message);
        }


        return(response);
    }
コード例 #5
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="searchConditions"></param>
        /// <param name="searchOrders"></param>
        public virtual void FillSearchConditions(IList <ISearchExpression> searchConditions, IList <ISearchOrder> searchOrders)
        {
            if (Order.HasValue)
            {
                if (Order.Value)
                {
                    searchOrders.Add(SearchOrder.Asc(PropertyNameToSearch));
                }
                else
                {
                    searchOrders.Add(SearchOrder.Desc(PropertyNameToSearch));
                }
            }

            if (IsNull)
            {
                if (!IsNot)
                {
                    //// 对帐单.对账单号 为空,其实意义就是对帐单为空
                    //if (string.IsNullOrEmpty(this.Navigator))
                    //{
                    //    searchConditions.Add(SearchExpression.IsNull(PropertyNameToSearch));
                    //}
                    //else
                    //{
                    //    // 为空的话,只去最前面一个
                    //    string[] ss = this.Navigator.Split(new char[] { '.', ':' }, StringSplitOptions.RemoveEmptyEntries);
                    //    searchConditions.Add(SearchExpression.IsNull(ss[0]));
                    //}
                    if (SearchNullUseFull || string.IsNullOrEmpty(this.Navigator))
                    {
                        searchConditions.Add(SearchExpression.IsNull(PropertyNameToSearch));
                    }
                    else
                    {
                        if (string.IsNullOrEmpty(this.Navigator))
                        {
                            throw new ArgumentException("When SearchNullUseFull is false, it will use Navigator's first part, so navigator must not null!");
                        }
                        string[] ss = this.Navigator.Split(new char[] { '.', ':' }, StringSplitOptions.RemoveEmptyEntries);
                        searchConditions.Add(SearchExpression.IsNull(ss[0]));
                    }
                }
                else
                {
                    searchConditions.Add(SearchExpression.IsNotNull(PropertyNameToSearch));
                }
            }
            else
            {
                IMultiDataValueControl mdc = this.Control as IMultiDataValueControl;
                if (mdc != null)
                {
                    if (this.SelectedDataValues.Count == 0)
                    {
                        return;
                    }

                    if (!this.UseFuzzySearch.HasValue)
                    {
                        if (this.CanSelectFuzzySearch && mdc.SelectedDataValues.Count == 1)
                        {
                            if (!IsNot)
                            {
                                searchConditions.Add(SearchExpression.Like(PropertyNameToSearch, mdc.SelectedDataValues[0]));
                            }
                            else
                            {
                                searchConditions.Add(SearchExpression.NotLike(PropertyNameToSearch, mdc.SelectedDataValues[0]));
                            }
                        }
                        else
                        {
                            if (!IsNot)
                            {
                                searchConditions.Add(SearchExpression.InG(PropertyNameToSearch, mdc.SelectedDataValues));
                            }
                            else
                            {
                                searchConditions.Add(SearchExpression.NotInG(PropertyNameToSearch, mdc.SelectedDataValues));
                            }
                        }
                    }
                    else if (this.UseFuzzySearch.Value)
                    {
                        if (!IsNot)
                        {
                            searchConditions.Add(SearchExpression.GInG(PropertyNameToSearch, mdc.SelectedDataValues));
                        }
                        else
                        {
                            searchConditions.Add(SearchExpression.NotGInG(PropertyNameToSearch, mdc.SelectedDataValues));
                        }
                    }
                    else
                    {
                        if (!IsNot)
                        {
                            searchConditions.Add(SearchExpression.InG(PropertyNameToSearch, mdc.SelectedDataValues));
                        }
                        else
                        {
                            searchConditions.Add(SearchExpression.NotInG(PropertyNameToSearch, mdc.SelectedDataValues));
                        }
                    }
                }
                else
                {
                    if (this.SelectedDataValue == null)
                    {
                        return;
                    }

                    if (this.CanSelectFuzzySearch && (!this.UseFuzzySearch.HasValue || this.UseFuzzySearch.Value))
                    {
                        string s = this.SelectedDataValue.ToString();
                        if (!IsNot)
                        {
                            searchConditions.Add(SearchExpression.Like(PropertyNameToSearch, s));
                        }
                        else
                        {
                            searchConditions.Add(SearchExpression.NotLike(PropertyNameToSearch, s));
                        }
                    }
                    else
                    {
                        if (!IsNot)
                        {
                            searchConditions.Add(SearchExpression.Eq(PropertyNameToSearch, this.SelectedDataValue));
                        }
                        else
                        {
                            searchConditions.Add(SearchExpression.NotEq(PropertyNameToSearch, this.SelectedDataValue));
                        }
                    }
                }
            }

            if (!string.IsNullOrEmpty(this.AdditionalSearchExpression))
            {
                searchConditions.Add(SearchExpression.Parse(this.AdditionalSearchExpression));
            }
        }
コード例 #6
0
        private void 承运时间要求详情_Load(object sender, EventArgs e)
        {
            using (IRepository rep = ServiceProvider.GetService <IRepositoryFactory>().GenerateRepository <车辆作业>())
            {
                var clzy = rep.Get <车辆作业>(m_clzy.ID);

                m_dm.SetDataBinding(new List <车辆作业> {
                    clzy
                }, string.Empty);

                var dm = m_dm;
                // dm.DataControls["箱型编号"].SelectedDataValue = clzy.专家任务.任务[0].箱型编号;

                var list = m_任务集合区.DisplayManager.SearchManager.GetData(SearchExpression.Eq("专家任务:车辆作业", clzy),
                                                                        new List <ISearchOrder> {
                    SearchOrder.Asc("任务性质")
                });

                int idx = 0;
                List <Xceed.Grid.DataRow> realTimeRows = new List <Xceed.Grid.DataRow>();
                Xceed.Grid.DataRow        row;
                foreach (var i in list)
                {
                    if (idx != 0)
                    {
                        m_任务集合区.AddSpaceDataRow();
                    }

                    row = m_任务集合区.DataRows.AddNew();
                    m_任务集合区.SetDataRowsIListData(i, row);
                    row.EndEdit();
                    row.Cells["序号"].Value = idx + 1;

                    foreach (Xceed.Grid.Cell cell in row.Cells)
                    {
                        单个作业监控详情.SetCellValueNone(cell);
                    }

                    row = m_任务集合区.DataRows.AddNew();
                    row.EndEdit();
                    realTimeRows.Add(row);
                    row.ForeColor = System.Drawing.Color.Red;

                    单个作业监控详情.SetCellValueNone(row.Cells["疏港期限"]);
                    单个作业监控详情.SetCellValueNone(row.Cells["还箱进港时间"]);

                    idx++;
                }

                FillRowsRealTimes(clzy, realTimeRows);

                switch (clzy.专家任务.任务性质)
                {
                case 专家任务性质.静态优化套箱:
                case 专家任务性质.动态优化套箱:
                    单个作业监控详情.SetCellValueNone(realTimeRows[0].Cells["装货时间"]);
                    单个作业监控详情.SetCellValueNone(realTimeRows[0].Cells["还箱进港时间"]);

                    单个作业监控详情.SetCellValueNone(realTimeRows[1].Cells["疏港期限"]);
                    单个作业监控详情.SetCellValueNone(realTimeRows[1].Cells["卸货时间"]);
                    break;

                case 专家任务性质.静态优化进口箱带货:
                case 专家任务性质.动态优化进口箱带货:
                    单个作业监控详情.SetCellValueNone(realTimeRows[0].Cells["装货时间"]);

                    单个作业监控详情.SetCellValueNone(realTimeRows[1].Cells["提箱时间"]);
                    单个作业监控详情.SetCellValueNone(realTimeRows[1].Cells["还箱进港时间"]);
                    break;

                case 专家任务性质.静态优化出口箱带货:
                case 专家任务性质.动态优化出口箱带货:
                    单个作业监控详情.SetCellValueNone(realTimeRows[0].Cells["卸货时间"]);

                    单个作业监控详情.SetCellValueNone(realTimeRows[1].Cells["疏港期限"]);
                    单个作业监控详情.SetCellValueNone(realTimeRows[1].Cells["还箱进港时间"]);
                    break;

                case 专家任务性质.静态优化进口箱对箱:
                case 专家任务性质.动态优化进口箱对箱:
                    单个作业监控详情.SetCellValueNone(realTimeRows[0].Cells["装货时间"]);

                    单个作业监控详情.SetCellValueNone(realTimeRows[1].Cells["装货时间"]);
                    break;

                case 专家任务性质.静态优化出口箱对箱:
                case 专家任务性质.动态优化出口箱对箱:
                    单个作业监控详情.SetCellValueNone(realTimeRows[0].Cells["卸货时间"]);

                    单个作业监控详情.SetCellValueNone(realTimeRows[1].Cells["卸货时间"]);
                    break;

                case 专家任务性质.静态优化进出口对箱:
                case 专家任务性质.动态优化进出口对箱:
                    单个作业监控详情.SetCellValueNone(realTimeRows[0].Cells["装货时间"]);

                    单个作业监控详情.SetCellValueNone(realTimeRows[1].Cells["卸货时间"]);
                    break;

                case 专家任务性质.无优化进口拆箱:
                    单个作业监控详情.SetCellValueNone(realTimeRows[0].Cells["装货时间"]);
                    break;

                case 专家任务性质.无优化出口装箱:
                    单个作业监控详情.SetCellValueNone(realTimeRows[0].Cells["卸货时间"]);
                    break;

                case 专家任务性质.无优化I带货:
                    break;

                case 专家任务性质.无优化E带货:
                    break;
                }
            }
        }
コード例 #7
0
        private void 单个作业监控详情_Load(object sender, EventArgs e)
        {
            using (IRepository rep = ServiceProvider.GetService <IRepositoryFactory>().GenerateRepository <车辆作业>())
            {
                var clzy = rep.Get <车辆作业>(m_clzy.ID);

                m_dm.SetDataBinding(new List <车辆作业> {
                    clzy
                }, string.Empty);

                m_任务集合1.DisplayManager.SearchManager.LoadData(SearchExpression.Eq("专家任务:车辆作业", clzy),
                                                              new List <ISearchOrder> {
                    SearchOrder.Asc("任务性质")
                });
                m_任务集合1.DisplayManager.SearchManager.WaitLoadData();
                m_任务集合2.DisplayManager.SearchManager.LoadData(SearchExpression.Eq("专家任务:车辆作业", clzy),
                                                              new List <ISearchOrder> {
                    SearchOrder.Asc("任务性质")
                });
                m_任务集合2.DisplayManager.SearchManager.WaitLoadData();

                List <Xceed.Grid.DataRow> realTimeRows = new List <Xceed.Grid.DataRow>();
                foreach (Xceed.Grid.DataRow i in m_任务集合2.DataRows)
                {
                    realTimeRows.Add(i);
                }
                int currentRowIdx = 承运时间要求详情.FillRowsRealTimes(clzy, realTimeRows);

                if (clzy.最新作业状态 != null)
                {
                    Xceed.Grid.DataRow row = m_任务集合2.DataRows[currentRowIdx];
                    row.Cells["车辆位置"].Value   = clzy.最新作业状态.车辆位置;
                    row.Cells["作业状态"].Value   = clzy.最新作业状态.作业状态;
                    row.Cells["预计到达时间"].Value = clzy.最新作业状态.预计到达时间;
                    row.Cells["异常情况"].Value   = clzy.最新作业状态.异常情况;
                }

                switch (clzy.专家任务.任务性质)
                {
                case 专家任务性质.静态优化套箱:
                case 专家任务性质.动态优化套箱:
                    SetCellValueNone(m_任务集合2.DataRows[0].Cells["装货时间"]);
                    SetCellValueNone(m_任务集合2.DataRows[0].Cells["还箱进港时间"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["装货地详细地址"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["装货时间要求"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["装货联系人"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["装货联系电话"]);

                    SetCellValueNone(m_任务集合2.DataRows[1].Cells["提箱时间"]);
                    SetCellValueNone(m_任务集合2.DataRows[1].Cells["卸货时间"]);
                    SetCellValueNone(m_任务集合1.DataRows[1].Cells["卸货地详细地址"]);
                    SetCellValueNone(m_任务集合1.DataRows[1].Cells["卸货时间要求"]);
                    SetCellValueNone(m_任务集合1.DataRows[1].Cells["卸货联系人"]);
                    SetCellValueNone(m_任务集合1.DataRows[1].Cells["卸货联系电话"]);
                    break;

                case 专家任务性质.静态优化进口箱带货:
                case 专家任务性质.动态优化进口箱带货:
                    SetCellValueNone(m_任务集合2.DataRows[0].Cells["装货时间"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["装货地详细地址"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["装货时间要求"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["装货联系人"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["装货联系电话"]);

                    SetCellValueNone(m_任务集合2.DataRows[1].Cells["提箱时间"]);
                    SetCellValueNone(m_任务集合2.DataRows[1].Cells["还箱进港时间"]);
                    break;

                case 专家任务性质.静态优化出口箱带货:
                case 专家任务性质.动态优化出口箱带货:
                    SetCellValueNone(m_任务集合2.DataRows[0].Cells["卸货时间"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["卸货地详细地址"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["卸货时间要求"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["卸货联系人"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["卸货联系电话"]);

                    SetCellValueNone(m_任务集合2.DataRows[1].Cells["提箱时间"]);
                    SetCellValueNone(m_任务集合2.DataRows[1].Cells["还箱进港时间"]);
                    break;

                case 专家任务性质.静态优化进口箱对箱:
                case 专家任务性质.动态优化进口箱对箱:
                    SetCellValueNone(m_任务集合2.DataRows[0].Cells["装货时间"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["装货地详细地址"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["装货时间要求"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["装货联系人"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["装货联系电话"]);

                    SetCellValueNone(m_任务集合2.DataRows[1].Cells["装货时间"]);
                    SetCellValueNone(m_任务集合1.DataRows[1].Cells["装货地详细地址"]);
                    SetCellValueNone(m_任务集合1.DataRows[1].Cells["装货时间要求"]);
                    SetCellValueNone(m_任务集合1.DataRows[1].Cells["装货联系人"]);
                    SetCellValueNone(m_任务集合1.DataRows[1].Cells["装货联系电话"]);
                    break;

                case 专家任务性质.静态优化出口箱对箱:
                case 专家任务性质.动态优化出口箱对箱:
                    SetCellValueNone(m_任务集合2.DataRows[0].Cells["卸货时间"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["卸货地详细地址"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["卸货时间要求"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["卸货联系人"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["卸货联系电话"]);

                    SetCellValueNone(m_任务集合2.DataRows[1].Cells["卸货时间"]);
                    SetCellValueNone(m_任务集合1.DataRows[1].Cells["卸货地详细地址"]);
                    SetCellValueNone(m_任务集合1.DataRows[1].Cells["卸货时间要求"]);
                    SetCellValueNone(m_任务集合1.DataRows[1].Cells["卸货联系人"]);
                    SetCellValueNone(m_任务集合1.DataRows[1].Cells["卸货联系电话"]);
                    break;

                case 专家任务性质.静态优化进出口对箱:
                case 专家任务性质.动态优化进出口对箱:
                    SetCellValueNone(m_任务集合2.DataRows[0].Cells["装货时间"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["装货地详细地址"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["装货时间要求"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["装货联系人"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["装货联系电话"]);

                    SetCellValueNone(m_任务集合2.DataRows[1].Cells["卸货时间"]);
                    SetCellValueNone(m_任务集合1.DataRows[1].Cells["卸货地详细地址"]);
                    SetCellValueNone(m_任务集合1.DataRows[1].Cells["卸货时间要求"]);
                    SetCellValueNone(m_任务集合1.DataRows[1].Cells["卸货联系人"]);
                    SetCellValueNone(m_任务集合1.DataRows[1].Cells["卸货联系电话"]);
                    break;

                case 专家任务性质.无优化进口拆箱:
                    SetCellValueNone(m_任务集合2.DataRows[0].Cells["装货时间"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["装货地详细地址"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["装货时间要求"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["装货联系人"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["装货联系电话"]);
                    break;

                case 专家任务性质.无优化出口装箱:
                    SetCellValueNone(m_任务集合2.DataRows[0].Cells["卸货时间"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["卸货地详细地址"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["卸货时间要求"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["卸货联系人"]);
                    SetCellValueNone(m_任务集合1.DataRows[0].Cells["卸货联系电话"]);
                    break;

                case 专家任务性质.无优化I带货:
                    break;

                case 专家任务性质.无优化E带货:
                    break;
                }
            }
        }