コード例 #1
0
ファイル: PublicDeal.cs プロジェクト: qubianzhong/luckysign
        // <summary>
        // 五行判断,A对B的作用,B的能量增减.
        // 分同异: (同,异)帮,生,克,耗,泄,晦,脆,帮克,帮耗
        // 分增减: 合(增,减),生合
        // 其他: 对冲,互刑,相害,
        // </summary>
        // <param name="a">A</param>
        // <param name="b">B</param>
        // <returns></returns>
        //


        /// <summary>
        /// source对于target是什么,source对于target的影响
        /// </summary>
        /// <param name="input">sourceType与targetType均不可为2</param>
        /// <returns></returns>
        public WuXingRelation GZWuXing(WuXingRelation input)
        {
            #region 天干与天干
            if (input.SourceType == 0 && input.TargetType == 0)
            {
                switch (input.SourceTG)
                {
                case PublicValue.TianGan.jia:
                    switch (input.TargetTG)
                    {
                    case PublicValue.TianGan.jia:
                        input.ShiShen = PublicValue.ShiShen.bijian;
                        break;

                    case PublicValue.TianGan.yi:
                        input.ShiShen = PublicValue.ShiShen.jiecai;
                        break;

                    case PublicValue.TianGan.bing:
                        input.ShiShen = PublicValue.ShiShen.pianyin;
                        break;

                    case PublicValue.TianGan.ding:
                        input.ShiShen = PublicValue.ShiShen.zhengyin;
                        break;

                    case PublicValue.TianGan.wu:
                        input.ShiShen = PublicValue.ShiShen.qisha;
                        break;

                    case PublicValue.TianGan.ji:
                        input.ShiShen = PublicValue.ShiShen.zhengguan;
                        break;

                    case PublicValue.TianGan.geng:
                        input.ShiShen = PublicValue.ShiShen.zhengcai;
                        break;

                    case PublicValue.TianGan.xin:
                        input.ShiShen = PublicValue.ShiShen.piancai;
                        break;

                    case PublicValue.TianGan.ren:
                        input.ShiShen = PublicValue.ShiShen.shishen;
                        break;

                    case PublicValue.TianGan.gui:
                        input.ShiShen = PublicValue.ShiShen.shangguan;
                        break;
                    }
                    break;

                case PublicValue.TianGan.yi:
                    switch (input.TargetTG)
                    {
                    case PublicValue.TianGan.jia:
                        input.ShiShen = PublicValue.ShiShen.jiecai;
                        break;

                    case PublicValue.TianGan.yi:
                        input.ShiShen = PublicValue.ShiShen.bijian;
                        break;

                    case PublicValue.TianGan.bing:
                        input.ShiShen = PublicValue.ShiShen.zhengyin;
                        break;

                    case PublicValue.TianGan.ding:
                        input.ShiShen = PublicValue.ShiShen.pianyin;
                        break;

                    case PublicValue.TianGan.wu:
                        input.ShiShen = PublicValue.ShiShen.zhengguan;
                        break;

                    case PublicValue.TianGan.ji:
                        input.ShiShen = PublicValue.ShiShen.qisha;
                        break;

                    case PublicValue.TianGan.geng:
                        input.ShiShen = PublicValue.ShiShen.piancai;
                        break;

                    case PublicValue.TianGan.xin:
                        input.ShiShen = PublicValue.ShiShen.zhengcai;
                        break;

                    case PublicValue.TianGan.ren:
                        input.ShiShen = PublicValue.ShiShen.shangguan;
                        break;

                    case PublicValue.TianGan.gui:
                        input.ShiShen = PublicValue.ShiShen.shishen;
                        break;
                    }
                    break;

                case PublicValue.TianGan.bing:
                    switch (input.TargetTG)
                    {
                    case PublicValue.TianGan.jia:
                        input.ShiShen = PublicValue.ShiShen.shishen;
                        break;

                    case PublicValue.TianGan.yi:
                        input.ShiShen = PublicValue.ShiShen.shangguan;
                        break;

                    case PublicValue.TianGan.bing:
                        input.ShiShen = PublicValue.ShiShen.bijian;
                        break;

                    case PublicValue.TianGan.ding:
                        input.ShiShen = PublicValue.ShiShen.jiecai;
                        break;

                    case PublicValue.TianGan.wu:
                        input.ShiShen = PublicValue.ShiShen.pianyin;
                        break;

                    case PublicValue.TianGan.ji:
                        input.ShiShen = PublicValue.ShiShen.zhengyin;
                        break;

                    case PublicValue.TianGan.geng:
                        input.ShiShen = PublicValue.ShiShen.qisha;
                        break;

                    case PublicValue.TianGan.xin:
                        input.ShiShen = PublicValue.ShiShen.zhengguan;
                        break;

                    case PublicValue.TianGan.ren:
                        input.ShiShen = PublicValue.ShiShen.piancai;
                        break;

                    case PublicValue.TianGan.gui:
                        input.ShiShen = PublicValue.ShiShen.zhengcai;
                        break;
                    }
                    break;

                case PublicValue.TianGan.ding:
                    switch (input.TargetTG)
                    {
                    case PublicValue.TianGan.jia:
                        input.ShiShen = PublicValue.ShiShen.shangguan;
                        break;

                    case PublicValue.TianGan.yi:
                        input.ShiShen = PublicValue.ShiShen.shishen;
                        break;

                    case PublicValue.TianGan.bing:
                        input.ShiShen = PublicValue.ShiShen.jiecai;
                        break;

                    case PublicValue.TianGan.ding:
                        input.ShiShen = PublicValue.ShiShen.bijian;
                        break;

                    case PublicValue.TianGan.wu:
                        input.ShiShen = PublicValue.ShiShen.zhengyin;
                        break;

                    case PublicValue.TianGan.ji:
                        input.ShiShen = PublicValue.ShiShen.pianyin;
                        break;

                    case PublicValue.TianGan.geng:
                        input.ShiShen = PublicValue.ShiShen.zhengguan;
                        break;

                    case PublicValue.TianGan.xin:
                        input.ShiShen = PublicValue.ShiShen.qisha;
                        break;

                    case PublicValue.TianGan.ren:
                        input.ShiShen = PublicValue.ShiShen.zhengcai;
                        break;

                    case PublicValue.TianGan.gui:
                        input.ShiShen = PublicValue.ShiShen.piancai;
                        break;
                    }
                    break;

                case PublicValue.TianGan.wu:
                    switch (input.TargetTG)
                    {
                    case PublicValue.TianGan.jia:
                        input.ShiShen = PublicValue.ShiShen.piancai;
                        break;

                    case PublicValue.TianGan.yi:
                        input.ShiShen = PublicValue.ShiShen.zhengcai;
                        break;

                    case PublicValue.TianGan.bing:
                        input.ShiShen = PublicValue.ShiShen.shishen;
                        break;

                    case PublicValue.TianGan.ding:
                        input.ShiShen = PublicValue.ShiShen.shangguan;
                        break;

                    case PublicValue.TianGan.wu:
                        input.ShiShen = PublicValue.ShiShen.bijian;
                        break;

                    case PublicValue.TianGan.ji:
                        input.ShiShen = PublicValue.ShiShen.jiecai;
                        break;

                    case PublicValue.TianGan.geng:
                        input.ShiShen = PublicValue.ShiShen.pianyin;
                        break;

                    case PublicValue.TianGan.xin:
                        input.ShiShen = PublicValue.ShiShen.zhengyin;
                        break;

                    case PublicValue.TianGan.ren:
                        input.ShiShen = PublicValue.ShiShen.qisha;
                        break;

                    case PublicValue.TianGan.gui:
                        input.ShiShen = PublicValue.ShiShen.zhengguan;
                        break;
                    }
                    break;

                case PublicValue.TianGan.ji:
                    switch (input.TargetTG)
                    {
                    case PublicValue.TianGan.jia:
                        input.ShiShen = PublicValue.ShiShen.zhengcai;
                        break;

                    case PublicValue.TianGan.yi:
                        input.ShiShen = PublicValue.ShiShen.piancai;
                        break;

                    case PublicValue.TianGan.bing:
                        input.ShiShen = PublicValue.ShiShen.shangguan;
                        break;

                    case PublicValue.TianGan.ding:
                        input.ShiShen = PublicValue.ShiShen.shishen;
                        break;

                    case PublicValue.TianGan.wu:
                        input.ShiShen = PublicValue.ShiShen.jiecai;
                        break;

                    case PublicValue.TianGan.ji:
                        input.ShiShen = PublicValue.ShiShen.bijian;
                        break;

                    case PublicValue.TianGan.geng:
                        input.ShiShen = PublicValue.ShiShen.zhengyin;
                        break;

                    case PublicValue.TianGan.xin:
                        input.ShiShen = PublicValue.ShiShen.pianyin;
                        break;

                    case PublicValue.TianGan.ren:
                        input.ShiShen = PublicValue.ShiShen.zhengguan;
                        break;

                    case PublicValue.TianGan.gui:
                        input.ShiShen = PublicValue.ShiShen.qisha;
                        break;
                    }
                    break;

                case PublicValue.TianGan.geng:
                    switch (input.TargetTG)
                    {
                    case PublicValue.TianGan.jia:
                        input.ShiShen = PublicValue.ShiShen.qisha;
                        break;

                    case PublicValue.TianGan.yi:
                        input.ShiShen = PublicValue.ShiShen.zhengguan;
                        break;

                    case PublicValue.TianGan.bing:
                        input.ShiShen = PublicValue.ShiShen.piancai;
                        break;

                    case PublicValue.TianGan.ding:
                        input.ShiShen = PublicValue.ShiShen.zhengcai;
                        break;

                    case PublicValue.TianGan.wu:
                        input.ShiShen = PublicValue.ShiShen.shishen;
                        break;

                    case PublicValue.TianGan.ji:
                        input.ShiShen = PublicValue.ShiShen.shangguan;
                        break;

                    case PublicValue.TianGan.geng:
                        input.ShiShen = PublicValue.ShiShen.bijian;
                        break;

                    case PublicValue.TianGan.xin:
                        input.ShiShen = PublicValue.ShiShen.jiecai;
                        break;

                    case PublicValue.TianGan.ren:
                        input.ShiShen = PublicValue.ShiShen.pianyin;
                        break;

                    case PublicValue.TianGan.gui:
                        input.ShiShen = PublicValue.ShiShen.zhengyin;
                        break;
                    }
                    break;

                case PublicValue.TianGan.xin:
                    switch (input.TargetTG)
                    {
                    case PublicValue.TianGan.jia:
                        input.ShiShen = PublicValue.ShiShen.zhengguan;
                        break;

                    case PublicValue.TianGan.yi:
                        input.ShiShen = PublicValue.ShiShen.qisha;
                        break;

                    case PublicValue.TianGan.bing:
                        input.ShiShen = PublicValue.ShiShen.zhengcai;
                        break;

                    case PublicValue.TianGan.ding:
                        input.ShiShen = PublicValue.ShiShen.piancai;
                        break;

                    case PublicValue.TianGan.wu:
                        input.ShiShen = PublicValue.ShiShen.shangguan;
                        break;

                    case PublicValue.TianGan.ji:
                        input.ShiShen = PublicValue.ShiShen.shishen;
                        break;

                    case PublicValue.TianGan.geng:
                        input.ShiShen = PublicValue.ShiShen.jiecai;
                        break;

                    case PublicValue.TianGan.xin:
                        input.ShiShen = PublicValue.ShiShen.bijian;
                        break;

                    case PublicValue.TianGan.ren:
                        input.ShiShen = PublicValue.ShiShen.zhengyin;
                        break;

                    case PublicValue.TianGan.gui:
                        input.ShiShen = PublicValue.ShiShen.pianyin;
                        break;
                    }
                    break;

                case PublicValue.TianGan.ren:
                    switch (input.TargetTG)
                    {
                    case PublicValue.TianGan.jia:
                        input.ShiShen = PublicValue.ShiShen.pianyin;
                        break;

                    case PublicValue.TianGan.yi:
                        input.ShiShen = PublicValue.ShiShen.zhengyin;
                        break;

                    case PublicValue.TianGan.bing:
                        input.ShiShen = PublicValue.ShiShen.qisha;
                        break;

                    case PublicValue.TianGan.ding:
                        input.ShiShen = PublicValue.ShiShen.zhengguan;
                        break;

                    case PublicValue.TianGan.wu:
                        input.ShiShen = PublicValue.ShiShen.piancai;
                        break;

                    case PublicValue.TianGan.ji:
                        input.ShiShen = PublicValue.ShiShen.zhengcai;
                        break;

                    case PublicValue.TianGan.geng:
                        input.ShiShen = PublicValue.ShiShen.shishen;
                        break;

                    case PublicValue.TianGan.xin:
                        input.ShiShen = PublicValue.ShiShen.shangguan;
                        break;

                    case PublicValue.TianGan.ren:
                        input.ShiShen = PublicValue.ShiShen.bijian;
                        break;

                    case PublicValue.TianGan.gui:
                        input.ShiShen = PublicValue.ShiShen.jiecai;
                        break;
                    }
                    break;

                case PublicValue.TianGan.gui:
                    switch (input.TargetTG)
                    {
                    case PublicValue.TianGan.jia:
                        input.ShiShen = PublicValue.ShiShen.zhengyin;
                        break;

                    case PublicValue.TianGan.yi:
                        input.ShiShen = PublicValue.ShiShen.pianyin;
                        break;

                    case PublicValue.TianGan.bing:
                        input.ShiShen = PublicValue.ShiShen.zhengguan;
                        break;

                    case PublicValue.TianGan.ding:
                        input.ShiShen = PublicValue.ShiShen.qisha;
                        break;

                    case PublicValue.TianGan.wu:
                        input.ShiShen = PublicValue.ShiShen.zhengcai;
                        break;

                    case PublicValue.TianGan.ji:
                        input.ShiShen = PublicValue.ShiShen.piancai;
                        break;

                    case PublicValue.TianGan.geng:
                        input.ShiShen = PublicValue.ShiShen.shangguan;
                        break;

                    case PublicValue.TianGan.xin:
                        input.ShiShen = PublicValue.ShiShen.shishen;
                        break;

                    case PublicValue.TianGan.ren:
                        input.ShiShen = PublicValue.ShiShen.jiecai;
                        break;

                    case PublicValue.TianGan.gui:
                        input.ShiShen = PublicValue.ShiShen.bijian;
                        break;
                    }
                    break;
                }
            }
            #endregion
            #region 地支与地支
            #endregion
            return(input);
        }
コード例 #2
0
ファイル: PublicDeal.cs プロジェクト: Kjubo/luckysign
 // <summary>
 // 五行判断,A对B的作用,B的能量增减.
 // 分同异: (同,异)帮,生,克,耗,泄,晦,脆,帮克,帮耗
 // 分增减: 合(增,减),生合
 // 其他: 对冲,互刑,相害,
 // </summary>
 // <param name="a">A</param>
 // <param name="b">B</param>
 // <returns></returns>
 //
 /// <summary>
 /// source对于target是什么,source对于target的影响
 /// </summary>
 /// <param name="input">sourceType与targetType均不可为2</param>
 /// <returns></returns>
 public WuXingRelation GZWuXing(WuXingRelation input)
 {
     #region 天干与天干
     if (input.SourceType == 0 && input.TargetType == 0)
     {
         switch (input.SourceTG)
         {
             case PublicValue.TianGan.jia:
                 switch (input.TargetTG)
                 {
                     case PublicValue.TianGan.jia:
                         input.ShiShen = PublicValue.ShiShen.bijian;
                         break;
                     case PublicValue.TianGan.yi:
                         input.ShiShen = PublicValue.ShiShen.jiecai;
                         break;
                     case PublicValue.TianGan.bing:
                         input.ShiShen = PublicValue.ShiShen.pianyin;
                         break;
                     case PublicValue.TianGan.ding:
                         input.ShiShen = PublicValue.ShiShen.zhengyin;
                         break;
                     case PublicValue.TianGan.wu:
                         input.ShiShen = PublicValue.ShiShen.qisha;
                         break;
                     case PublicValue.TianGan.ji:
                         input.ShiShen = PublicValue.ShiShen.zhengguan;
                         break;
                     case PublicValue.TianGan.geng:
                         input.ShiShen = PublicValue.ShiShen.zhengcai;
                         break;
                     case PublicValue.TianGan.xin:
                         input.ShiShen = PublicValue.ShiShen.piancai;
                         break;
                     case PublicValue.TianGan.ren:
                         input.ShiShen = PublicValue.ShiShen.shishen;
                         break;
                     case PublicValue.TianGan.gui:
                         input.ShiShen = PublicValue.ShiShen.shangguan;
                         break;
                 }
                 break;
             case PublicValue.TianGan.yi:
                 switch (input.TargetTG)
                 {
                     case PublicValue.TianGan.jia:
                         input.ShiShen = PublicValue.ShiShen.jiecai;
                         break;
                     case PublicValue.TianGan.yi:
                         input.ShiShen = PublicValue.ShiShen.bijian;
                         break;
                     case PublicValue.TianGan.bing:
                         input.ShiShen = PublicValue.ShiShen.zhengyin;
                         break;
                     case PublicValue.TianGan.ding:
                         input.ShiShen = PublicValue.ShiShen.pianyin;
                         break;
                     case PublicValue.TianGan.wu:
                         input.ShiShen = PublicValue.ShiShen.zhengguan;
                         break;
                     case PublicValue.TianGan.ji:
                         input.ShiShen = PublicValue.ShiShen.qisha;
                         break;
                     case PublicValue.TianGan.geng:
                         input.ShiShen = PublicValue.ShiShen.piancai;
                         break;
                     case PublicValue.TianGan.xin:
                         input.ShiShen = PublicValue.ShiShen.zhengcai;
                         break;
                     case PublicValue.TianGan.ren:
                         input.ShiShen = PublicValue.ShiShen.shangguan;
                         break;
                     case PublicValue.TianGan.gui:
                         input.ShiShen = PublicValue.ShiShen.shishen;
                         break;
                 }
                 break;
             case PublicValue.TianGan.bing:
                 switch (input.TargetTG)
                 {
                     case PublicValue.TianGan.jia:
                         input.ShiShen = PublicValue.ShiShen.shishen;
                         break;
                     case PublicValue.TianGan.yi:
                         input.ShiShen = PublicValue.ShiShen.shangguan;
                         break;
                     case PublicValue.TianGan.bing:
                         input.ShiShen = PublicValue.ShiShen.bijian;
                         break;
                     case PublicValue.TianGan.ding:
                         input.ShiShen = PublicValue.ShiShen.jiecai;
                         break;
                     case PublicValue.TianGan.wu:
                         input.ShiShen = PublicValue.ShiShen.pianyin;
                         break;
                     case PublicValue.TianGan.ji:
                         input.ShiShen = PublicValue.ShiShen.zhengyin;
                         break;
                     case PublicValue.TianGan.geng:
                         input.ShiShen = PublicValue.ShiShen.qisha;
                         break;
                     case PublicValue.TianGan.xin:
                         input.ShiShen = PublicValue.ShiShen.zhengguan;
                         break;
                     case PublicValue.TianGan.ren:
                         input.ShiShen = PublicValue.ShiShen.piancai;
                         break;
                     case PublicValue.TianGan.gui:
                         input.ShiShen = PublicValue.ShiShen.zhengcai;
                         break;
                 }
                 break;
             case PublicValue.TianGan.ding:
                 switch (input.TargetTG)
                 {
                     case PublicValue.TianGan.jia:
                         input.ShiShen = PublicValue.ShiShen.shangguan;
                         break;
                     case PublicValue.TianGan.yi:
                         input.ShiShen = PublicValue.ShiShen.shishen;
                         break;
                     case PublicValue.TianGan.bing:
                         input.ShiShen = PublicValue.ShiShen.jiecai;
                         break;
                     case PublicValue.TianGan.ding:
                         input.ShiShen = PublicValue.ShiShen.bijian;
                         break;
                     case PublicValue.TianGan.wu:
                         input.ShiShen = PublicValue.ShiShen.zhengyin;
                         break;
                     case PublicValue.TianGan.ji:
                         input.ShiShen = PublicValue.ShiShen.pianyin;
                         break;
                     case PublicValue.TianGan.geng:
                         input.ShiShen = PublicValue.ShiShen.zhengguan;
                         break;
                     case PublicValue.TianGan.xin:
                         input.ShiShen = PublicValue.ShiShen.qisha;
                         break;
                     case PublicValue.TianGan.ren:
                         input.ShiShen = PublicValue.ShiShen.zhengcai;
                         break;
                     case PublicValue.TianGan.gui:
                         input.ShiShen = PublicValue.ShiShen.piancai;
                         break;
                 }
                 break;
             case PublicValue.TianGan.wu:
                 switch (input.TargetTG)
                 {
                     case PublicValue.TianGan.jia:
                         input.ShiShen = PublicValue.ShiShen.piancai;
                         break;
                     case PublicValue.TianGan.yi:
                         input.ShiShen = PublicValue.ShiShen.zhengcai;
                         break;
                     case PublicValue.TianGan.bing:
                         input.ShiShen = PublicValue.ShiShen.shishen;
                         break;
                     case PublicValue.TianGan.ding:
                         input.ShiShen = PublicValue.ShiShen.shangguan;
                         break;
                     case PublicValue.TianGan.wu:
                         input.ShiShen = PublicValue.ShiShen.bijian;
                         break;
                     case PublicValue.TianGan.ji:
                         input.ShiShen = PublicValue.ShiShen.jiecai;
                         break;
                     case PublicValue.TianGan.geng:
                         input.ShiShen = PublicValue.ShiShen.pianyin;
                         break;
                     case PublicValue.TianGan.xin:
                         input.ShiShen = PublicValue.ShiShen.zhengyin;
                         break;
                     case PublicValue.TianGan.ren:
                         input.ShiShen = PublicValue.ShiShen.qisha;
                         break;
                     case PublicValue.TianGan.gui:
                         input.ShiShen = PublicValue.ShiShen.zhengguan;
                         break;
                 }
                 break;
             case PublicValue.TianGan.ji:
                 switch (input.TargetTG)
                 {
                     case PublicValue.TianGan.jia:
                         input.ShiShen = PublicValue.ShiShen.zhengcai;
                         break;
                     case PublicValue.TianGan.yi:
                         input.ShiShen = PublicValue.ShiShen.piancai;
                         break;
                     case PublicValue.TianGan.bing:
                         input.ShiShen = PublicValue.ShiShen.shangguan;
                         break;
                     case PublicValue.TianGan.ding:
                         input.ShiShen = PublicValue.ShiShen.shishen;
                         break;
                     case PublicValue.TianGan.wu:
                         input.ShiShen = PublicValue.ShiShen.jiecai;
                         break;
                     case PublicValue.TianGan.ji:
                         input.ShiShen = PublicValue.ShiShen.bijian;
                         break;
                     case PublicValue.TianGan.geng:
                         input.ShiShen = PublicValue.ShiShen.zhengyin;
                         break;
                     case PublicValue.TianGan.xin:
                         input.ShiShen = PublicValue.ShiShen.pianyin;
                         break;
                     case PublicValue.TianGan.ren:
                         input.ShiShen = PublicValue.ShiShen.zhengguan;
                         break;
                     case PublicValue.TianGan.gui:
                         input.ShiShen = PublicValue.ShiShen.qisha;
                         break;
                 }
                 break;
             case PublicValue.TianGan.geng:
                 switch (input.TargetTG)
                 {
                     case PublicValue.TianGan.jia:
                         input.ShiShen = PublicValue.ShiShen.qisha;
                         break;
                     case PublicValue.TianGan.yi:
                         input.ShiShen = PublicValue.ShiShen.zhengguan;
                         break;
                     case PublicValue.TianGan.bing:
                         input.ShiShen = PublicValue.ShiShen.piancai;
                         break;
                     case PublicValue.TianGan.ding:
                         input.ShiShen = PublicValue.ShiShen.zhengcai;
                         break;
                     case PublicValue.TianGan.wu:
                         input.ShiShen = PublicValue.ShiShen.shishen;
                         break;
                     case PublicValue.TianGan.ji:
                         input.ShiShen = PublicValue.ShiShen.shangguan;
                         break;
                     case PublicValue.TianGan.geng:
                         input.ShiShen = PublicValue.ShiShen.bijian;
                         break;
                     case PublicValue.TianGan.xin:
                         input.ShiShen = PublicValue.ShiShen.jiecai;
                         break;
                     case PublicValue.TianGan.ren:
                         input.ShiShen = PublicValue.ShiShen.pianyin;
                         break;
                     case PublicValue.TianGan.gui:
                         input.ShiShen = PublicValue.ShiShen.zhengyin;
                         break;
                 }
                 break;
             case PublicValue.TianGan.xin:
                 switch (input.TargetTG)
                 {
                     case PublicValue.TianGan.jia:
                         input.ShiShen = PublicValue.ShiShen.zhengguan;
                         break;
                     case PublicValue.TianGan.yi:
                         input.ShiShen = PublicValue.ShiShen.qisha;
                         break;
                     case PublicValue.TianGan.bing:
                         input.ShiShen = PublicValue.ShiShen.zhengcai;
                         break;
                     case PublicValue.TianGan.ding:
                         input.ShiShen = PublicValue.ShiShen.piancai;
                         break;
                     case PublicValue.TianGan.wu:
                         input.ShiShen = PublicValue.ShiShen.shangguan;
                         break;
                     case PublicValue.TianGan.ji:
                         input.ShiShen = PublicValue.ShiShen.shishen;
                         break;
                     case PublicValue.TianGan.geng:
                         input.ShiShen = PublicValue.ShiShen.jiecai;
                         break;
                     case PublicValue.TianGan.xin:
                         input.ShiShen = PublicValue.ShiShen.bijian;
                         break;
                     case PublicValue.TianGan.ren:
                         input.ShiShen = PublicValue.ShiShen.zhengyin;
                         break;
                     case PublicValue.TianGan.gui:
                         input.ShiShen = PublicValue.ShiShen.pianyin;
                         break;
                 }
                 break;
             case PublicValue.TianGan.ren:
                 switch (input.TargetTG)
                 {
                     case PublicValue.TianGan.jia:
                         input.ShiShen = PublicValue.ShiShen.pianyin;
                         break;
                     case PublicValue.TianGan.yi:
                         input.ShiShen = PublicValue.ShiShen.zhengyin;
                         break;
                     case PublicValue.TianGan.bing:
                         input.ShiShen = PublicValue.ShiShen.qisha;
                         break;
                     case PublicValue.TianGan.ding:
                         input.ShiShen = PublicValue.ShiShen.zhengguan;
                         break;
                     case PublicValue.TianGan.wu:
                         input.ShiShen = PublicValue.ShiShen.piancai;
                         break;
                     case PublicValue.TianGan.ji:
                         input.ShiShen = PublicValue.ShiShen.zhengcai;
                         break;
                     case PublicValue.TianGan.geng:
                         input.ShiShen = PublicValue.ShiShen.shishen;
                         break;
                     case PublicValue.TianGan.xin:
                         input.ShiShen = PublicValue.ShiShen.shangguan;
                         break;
                     case PublicValue.TianGan.ren:
                         input.ShiShen = PublicValue.ShiShen.bijian;
                         break;
                     case PublicValue.TianGan.gui:
                         input.ShiShen = PublicValue.ShiShen.jiecai;
                         break;
                 }
                 break;
             case PublicValue.TianGan.gui:
                 switch (input.TargetTG)
                 {
                     case PublicValue.TianGan.jia:
                         input.ShiShen = PublicValue.ShiShen.zhengyin;
                         break;
                     case PublicValue.TianGan.yi:
                         input.ShiShen = PublicValue.ShiShen.pianyin;
                         break;
                     case PublicValue.TianGan.bing:
                         input.ShiShen = PublicValue.ShiShen.zhengguan;
                         break;
                     case PublicValue.TianGan.ding:
                         input.ShiShen = PublicValue.ShiShen.qisha;
                         break;
                     case PublicValue.TianGan.wu:
                         input.ShiShen = PublicValue.ShiShen.zhengcai;
                         break;
                     case PublicValue.TianGan.ji:
                         input.ShiShen = PublicValue.ShiShen.piancai;
                         break;
                     case PublicValue.TianGan.geng:
                         input.ShiShen = PublicValue.ShiShen.shangguan;
                         break;
                     case PublicValue.TianGan.xin:
                         input.ShiShen = PublicValue.ShiShen.shishen;
                         break;
                     case PublicValue.TianGan.ren:
                         input.ShiShen = PublicValue.ShiShen.jiecai;
                         break;
                     case PublicValue.TianGan.gui:
                         input.ShiShen = PublicValue.ShiShen.bijian;
                         break;
                 }
                 break;
         }
     }
     #endregion
     #region 地支与地支
     #endregion
     return input;
 }