/// <summary>
        /// 显示明细
        /// </summary>
        /// <param name="MaterialCode"></param>
        /// <param name="labelCode"></param>
        /// <returns></returns>
        public async Task <ActionResult> Detail(string MaterialCode, string labelCode)
        {
            using (MaterialPrintSetServiceClient client = new MaterialPrintSetServiceClient())
            {
                MaterialPrintSetKey key = new MaterialPrintSetKey()
                {
                    MaterialCode = MaterialCode,
                    LabelCode    = labelCode
                };

                MethodReturnResult <MaterialPrintSet> result = await client.GetAsync(key);

                if (result.Code == 0)
                {
                    MaterialPrintSetViewModel viewModel = new MaterialPrintSetViewModel()
                    {
                        MaterialCode = result.Data.Key.MaterialCode,
                        LabelCode    = result.Data.Key.LabelCode,
                        Qty          = result.Data.Qty,
                        CreateTime   = result.Data.CreateTime,
                        Creator      = result.Data.Creator,
                        Editor       = result.Data.Editor,
                        EditTime     = result.Data.EditTime
                    };
                    return(PartialView("_InfoPartial", viewModel));
                }
                else
                {
                    ModelState.AddModelError("", result.Message);
                }
            }

            return(PartialView("_InfoPartial"));
        }
        public async Task <ActionResult> Delete(string MaterialCode, string labelCode)
        {
            MethodReturnResult  result = new MethodReturnResult();
            MaterialPrintSetKey key    = new MaterialPrintSetKey()
            {
                MaterialCode = MaterialCode,
                LabelCode    = labelCode
            };

            using (MaterialPrintSetServiceClient client = new MaterialPrintSetServiceClient())
            {
                result = await client.DeleteAsync(key);

                if (result.Code == 0)
                {
                    result.Message = string.Format(FMMResources.StringResource.MaterialPrintSet_Delete_Success
                                                   , key);
                }
                return(Json(result));
            }
        }