/// <summary>
        /// Get project purchaser data
        /// </summary>
        /// <param name="strProjectCode"></param>
        /// <returns></returns>
        public ActionResult CTS260_GetProjectPurchaser(string strProjectCode)
        {
            IProjectHandler projh = ServiceContainer.GetService <IProjectHandler>() as IProjectHandler;
            List <dtTbt_ProjectPurchaserCustomerForView> lstPurchaser = new List <dtTbt_ProjectPurchaserCustomerForView>();

            lstPurchaser = projh.GetTbt_ProjectPurchaserCustomerForView(strProjectCode);
            if (lstPurchaser.Count > 0)
            {
                if (!CommonUtil.IsNullOrEmpty(lstPurchaser[0].CustCode))
                {
                    ICustomerMasterHandler icustMast = ServiceContainer.GetService <ICustomerMasterHandler>() as ICustomerMasterHandler;
                    List <doCustomer>      lstCust   = icustMast.GetCustomer(lstPurchaser[0].CustCode);

                    lstPurchaser = CommonUtil.ClonsObjectList <doCustomer, dtTbt_ProjectPurchaserCustomerForView>(lstCust);
                }
            }


            EmployeeMappingList emlst = new EmployeeMappingList();

            emlst.AddEmployee(lstPurchaser.ToArray());
            IEmployeeMasterHandler Emph = ServiceContainer.GetService <IEmployeeMasterHandler>() as IEmployeeMasterHandler;

            Emph.EmployeeListMapping(emlst);
            CommonUtil.MappingObjectLanguage <dtTbt_ProjectPurchaserCustomerForView>(lstPurchaser);

            MiscTypeMappingList miscMapList = new MiscTypeMappingList();

            miscMapList.AddMiscType(lstPurchaser.ToArray());
            ICommonHandler comh = ServiceContainer.GetService <ICommonHandler>() as ICommonHandler;

            comh.MiscTypeMappingList(miscMapList);
            return(Json(lstPurchaser));
        }
        /// <summary>
        /// Getting project information
        /// </summary>
        /// <param name="strProjectCode"></param>
        /// <returns></returns>
        public dsProjectInfo GetProjectInfo(string strProjectCode)
        {
            ICustomerMasterHandler custhandler    = ServiceContainer.GetService <ICustomerMasterHandler>() as ICustomerMasterHandler;
            IProjectHandler        projecthandler = ServiceContainer.GetService <IProjectHandler>() as IProjectHandler;
            dsProjectInfo          res            = new dsProjectInfo();

            var projRes = projecthandler.GetTbt_Project(strProjectCode);

            if (projRes.Count == 1)
            {
                var projCust = projecthandler.GetTbt_ProjectPurchaserCustomerForView(strProjectCode);
                res.dtProjectPurcheser = new dtProjectPurcheser();

                if (projCust.Count == 1)
                {
                    if (string.IsNullOrEmpty(projCust[0].CustCode))
                    {
                        res.dtProjectPurcheser.CustCode       = "";
                        res.dtProjectPurcheser.CustFullNameEN = projCust[0].CustFullNameEN;
                        res.dtProjectPurcheser.CustFullNameLC = projCust[0].CustFullNameLC;
                    }
                    else
                    {
                        var custRes = custhandler.GetCustomer(projCust[0].CustCode);
                        if (custRes.Count == 1)
                        {
                            res.dtProjectPurcheser.CustCode       = projCust[0].CustCode;
                            res.dtProjectPurcheser.CustFullNameEN = custRes[0].CustFullNameEN;
                            res.dtProjectPurcheser.CustFullNameLC = custRes[0].CustFullNameLC;
                        }
                    }
                }

                res.tbt_Project = projRes;
            }

            return(res);
        }